fix layer input for swin norm
This commit is contained in:
parent
f40cd2073a
commit
15260c5ba8
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
// self-attention
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue