mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-08-03 07:47:40 -04:00
@@ -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));
|
||||
|
Reference in New Issue
Block a user