llama : fix build_ffn without gate

This commit is contained in:
Xuan Son Nguyen
2025-05-06 10:51:01 +02:00
parent 15a28ec8c7
commit 98ce93e776

View File

@ -782,7 +782,7 @@ ggml_tensor * llm_graph_context::build_ffn(
} break;
}
if (type_gate == LLM_FFN_PAR) {
if (gate && type_gate == LLM_FFN_PAR) {
cur = ggml_mul(ctx0, cur, tmp);
cb(cur, "ffn_gate_par", il);
}