llama: dbrx: fix last normalization
This commit is contained in:
parent
0ab1bae854
commit
830e46d7ae
1 changed files with 3 additions and 3 deletions
|
@ -7242,6 +7242,9 @@ struct llm_build_context {
|
|||
cur = moe_out;
|
||||
}
|
||||
|
||||
cur = ggml_add(ctx0, cur, ffn_inp);
|
||||
cb(cur, "ffn_out", il);
|
||||
|
||||
// DbrxNormAttentionNorm
|
||||
{
|
||||
cur = llm_build_norm(ctx0, cur, hparams,
|
||||
|
@ -7250,9 +7253,6 @@ struct llm_build_context {
|
|||
cb(cur, "layer_out_norm", il);
|
||||
}
|
||||
|
||||
cur = ggml_add(ctx0, cur, ffn_inp);
|
||||
cb(cur, "ffn_out", il);
|
||||
|
||||
ggml_tensor * layer_dir = lctx.cvec.tensor_for(il);
|
||||
if (layer_dir != nullptr) {
|
||||
cur = ggml_add(ctx0, cur, layer_dir);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue