metal : use bf16 math for mxfp4 mul-mat (#29770)

This commit is contained in:
Georgi Gerganov authored and GitHub committed 2026-10-01 08:19:24 +03:00
1 parent 79625e056e
commit 2232bc8b5f
3 files changed
+20 -9

No files matched your search

+2 -1
View File
@@ -5215,7 +5215,8 @@ static void init_mul_mat_id_tensors(ggml_context * ctx, int n_mats, float amax =
for (ggml_tensor * t = ggml_get_first_tensor(ctx); t != NULL; t = ggml_get_next_tensor(ctx, t)) {
if (t->type == GGML_TYPE_I32) {
continue;
} else if (amax != 1.0f && t->type == GGML_TYPE_F32) {
}
if (amax != 1.0f && t->type == GGML_TYPE_F32) {
init_tensor_uniform(t, -amax, amax);
} else {
init_tensor_uniform(t);