hparams : initialize arrays (#13728)

ggml-ci
This commit is contained in:
Georgi Gerganov 2025-05-23 20:16:13 +03:00 committed by GitHub
parent 8a2afb7520
commit d13d0f6135
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 7 deletions

View file

@ -2,10 +2,6 @@
#include "ggml.h"
llama_hparams::llama_hparams() {
swa_layers.fill(false);
}
void llama_hparams::set_swa_pattern(uint32_t n_pattern) {
for (uint32_t il = 0; il < n_layer; ++il) {
swa_layers[il] = n_pattern == 0 || (il % n_pattern < (n_pattern - 1));