mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-29 16:58:45 +08:00
black formatting
This commit is contained in:
parent
9d7f38abb8
commit
d7638e029c
@ -158,7 +158,7 @@ class CohereModel(nn.Module):
|
|||||||
|
|
||||||
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])
|
||||||
|
|
||||||
if cache is None:
|
if cache is None:
|
||||||
cache = [None] * len(self.layers)
|
cache = [None] * len(self.layers)
|
||||||
|
Loading…
Reference in New Issue
Block a user