Add F16/BF16 type

This commit is contained in:
Ed Addario 2025-08-20 09:41:39 +01:00
parent b33abae231
commit 5cd69a6809
No known key found for this signature in database
GPG Key ID: E7875815A3230993
1 changed files with 7 additions and 1 deletions

View File

@ -630,7 +630,13 @@ static std::unordered_map<std::string, ggml_type> target_bpw_type(
GGML_TYPE_Q5_1,
GGML_TYPE_Q5_K,
GGML_TYPE_Q6_K,
GGML_TYPE_Q8_0
GGML_TYPE_Q8_0,
// TODO: find better way to handle F16/BF16
#ifdef GGML_USE_METAL
GGML_TYPE_F16
#else
GGML_TYPE_BF16
#endif
};
auto can_quantize = [&](const ggml_tensor * t) -> bool {