We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d48ccd commit 2c170bbCopy full SHA for 2c170bb
exllamav2/model.py
@@ -111,7 +111,7 @@ def __init__(
111
if cfg.arch.lm.alternating_swa:
112
if cfg.sliding_window_pattern > 1:
113
swa = cfg.sliding_window if (layer_idx + 1) % cfg.sliding_window_pattern != 0 else 0
114
- if cfg.rotary_embedding_base_alt:
+ if swa and cfg.rotary_embedding_base_alt:
115
rope_index = 1
116
else:
117
swa = cfg.sliding_window if not bool(layer_idx % 2) else 0
0 commit comments