Removed unnecessary conditional branches
This commit is contained in:
parent
1f6929e557
commit
8a15f932af
1 changed files with 1 additions and 9 deletions
10
llama.cpp
10
llama.cpp
|
@ -8185,15 +8185,7 @@ struct llm_build_context {
|
|||
cb(cur, "ffn_out", il);
|
||||
}
|
||||
|
||||
if (model.layers[il].ffn_norm) {
|
||||
// non-parallel residual
|
||||
cur = ggml_add(ctx0, cur, ffn_inp);
|
||||
} else {
|
||||
// add together residual + FFN + self-attention
|
||||
cur = ggml_add(ctx0, cur, inpL);
|
||||
cur = ggml_add(ctx0, cur, attn_out);
|
||||
}
|
||||
|
||||
cur = ggml_add(ctx0, cur, ffn_inp);
|
||||
cb(cur, "l_out", il);
|
||||
|
||||
// input for next layer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue