]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
hparams : add check for layer index in is_recurrent (#16511)
authorDaniel Bevenius <redacted>
Sun, 12 Oct 2025 05:19:06 +0000 (07:19 +0200)
committerGitHub <redacted>
Sun, 12 Oct 2025 05:19:06 +0000 (07:19 +0200)
commita2fba89a426ff8005d303c73f0436e7e67368b70
tree829047265276c0f1b2d40b6ef27610d085a5218e
parent20cc625edc2264aae2779e71bef1593e6a4e8c43
hparams : add check for layer index in is_recurrent (#16511)

* hparams : add check for layer index in is_recurrent

This commit adds a check in the is_recurrent method to ensure that the
provided layer index is within the valid range.

The motivation for this change is to prevent potential out-of-bounds
and also be consistent with other methods in the class that perform
similar checks, like is_swa.
src/llama-hparams.cpp