Skip to content

Commit

Permalink
fix layer input for swin norm
Browse files Browse the repository at this point in the history
  • Loading branch information
nopperl committed Jul 18, 2024
1 parent f40cd20 commit 15260c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13838,12 +13838,14 @@ struct llm_build_context {
struct ggml_tensor * inpSA = inpL;

// norm
if (!hparams.swin_norm) {
if (hparams.swin_norm) {
cur = inpL;
} else {
cur = llm_build_norm(ctx0, inpL, hparams,
model.layers[il].attn_norm, NULL,
LLM_NORM_RMS, cb, il);
cb(cur, "attn_norm", il);
}
cb(cur, "attn_norm", il);

// self-attention
{
Expand Down

0 comments on commit 15260c5

Please sign in to comment.