mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-29 06:54:39 +08:00
format
This commit is contained in:
parent
0e908bddff
commit
89c49d6e23
@ -158,7 +158,7 @@ class CohereModel(nn.Module):
|
|||||||
|
|
||||||
if cache is None:
|
if cache is None:
|
||||||
cache = [None] * len(self.layers)
|
cache = [None] * len(self.layers)
|
||||||
|
|
||||||
if mask is None:
|
if mask is None:
|
||||||
j = self.args.sliding_window_pattern
|
j = self.args.sliding_window_pattern
|
||||||
mask = create_attention_mask(h, cache[j - 1 : j])
|
mask = create_attention_mask(h, cache[j - 1 : j])
|
||||||
|
Loading…
Reference in New Issue
Block a user