]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
Fix `glm4moe` bug (#15088)
authorJuk Armstrong <redacted>
Tue, 5 Aug 2025 12:56:44 +0000 (13:56 +0100)
committerGitHub <redacted>
Tue, 5 Aug 2025 12:56:44 +0000 (13:56 +0100)
src/llama-model.cpp

index 44f89003b3917ce2d1eb2d0c615ee836b01e9a9d..f53fa2f8789180731ff4cca53fac83eb98dd94f7 100644 (file)
@@ -13800,10 +13800,6 @@ struct llm_build_glm4_moe : public llm_graph_context {
                         LLM_FFN_SILU, LLM_FFN_PAR, il);
                 cb(cur, "ffn_out", il);
             } else {
-                // MoE layer with shared experts
-                const int64_t n_expert      = hparams.n_expert;
-                const int64_t n_expert_used = hparams.n_expert_used;
-
                 // Process routed experts using existing MoE infrastructure
                 ggml_tensor * routed_out = build_moe_ffn(cur,
                         model.layers[il].ffn_gate_inp,