[Cohere] Misc changes to cohere model definitions (#50156)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
101c4477dd
commit
aa9903490c
@@ -208,7 +208,7 @@ class Cohere2MoeAttention(nn.Module):
|
||||
layer_types is not None
|
||||
and layer_types[self.layer_idx] == "sliding_attention"
|
||||
):
|
||||
self.sliding_window = config.sliding_window
|
||||
self.sliding_window = config.sliding_window + 1
|
||||
|
||||
# Prefix-dense layers have full attention (no sliding window). When
|
||||
# prefix_dense_sliding_window_pattern == 1, they keep RoPE even though
|
||||
|
||||
Reference in New Issue
Block a user