Fixes qwen2 too
This commit is contained in:
parent
8e092616a9
commit
af2e033051
1 changed files with 7 additions and 0 deletions
|
@ -9442,6 +9442,13 @@ struct llm_build_context {
|
|||
cb(cur, "ffn_out", il);
|
||||
|
||||
cur = ggml_add(ctx0, cur, ffn_inp);
|
||||
|
||||
// add control vector
|
||||
ggml_tensor * layer_dir = lctx.cvec.tensor_for(il);
|
||||
if (layer_dir != nullptr) {
|
||||
cur = ggml_add(ctx0, cur, layer_dir);
|
||||
}
|
||||
|
||||
cb(cur, "l_out", il);
|
||||
|
||||
// input for next layer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue