Skip to content

Commit 2f54e34

Browse files
authored
llama : fix build_ffn without gate (#13336)
* llama : fix build_ffn without gate * fix build on windows * Revert "fix build on windows" This reverts commit fc420d3.
1 parent 2356fb1 commit 2f54e34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama-graph.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ ggml_tensor * llm_graph_context::build_ffn(
782782
} break;
783783
}
784784

785-
if (type_gate == LLM_FFN_PAR) {
785+
if (gate && type_gate == LLM_FFN_PAR) {
786786
cur = ggml_mul(ctx0, cur, tmp);
787787
cb(cur, "ffn_gate_par", il);
788788
}

0 commit comments

Comments
 (0)