llama: rwkv6: Avoid division by zero
Co-authored-by: compilade <git@compilade.net>
This commit is contained in:
parent
59dc2e7099
commit
5175375715
1 changed files with 1 additions and 1 deletions
|
@ -15156,7 +15156,7 @@ struct llm_build_context {
|
|||
)
|
||||
);
|
||||
|
||||
if ((il + 1) % hparams.rescale_every_n_layers == 0) {
|
||||
if (hparams.rescale_every_n_layers != 0 && (il + 1) % hparams.rescale_every_n_layers == 0) {
|
||||
cur = ggml_scale(ctx0, cur, 0.5F);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue