Merge pull request #1974 from Nexesenex/fix_muge_crash_minimax_m3

Fix Minimax M3 crash when -muge merges up/gate experts
This commit is contained in:
Kawrakow 2026-06-15 15:07:49 +02:00 committed by GitHub
commit 37ea89cabf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,7 +52,7 @@ ggml_cgraph* llm_build_context::build_minimaxm3() {
hparams.expert_weights_scale != 0.0f, hparams.expert_weights_scale, hparams.expert_weights_scale != 0.0f, hparams.expert_weights_scale,
(llm_expert_gating_func_type) hparams.expert_gating_func, (llm_expert_gating_func_type) hparams.expert_gating_func,
LLM_FFN_SWIGLU_OAI, LLM_FFN_SWIGLU_OAI,
cb, il, gf, true); cb, il, gf, true, model.layers[il].ffn_up_gate_exps);
} }
cur = lctx.cvec.apply_to(ctx0, cur, il); cur = lctx.cvec.apply_to(ctx0, cur, il);