mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-24 17:31:18 +08:00
revert
This commit is contained in:
parent
2d30f6787a
commit
37cd4a382b
@ -100,7 +100,7 @@ class Attention(nn.Module):
|
||||
if self.is_sliding and mask is not None:
|
||||
key_len = keys.shape[-2]
|
||||
if mask.shape[-1] != key_len:
|
||||
mask = mask[..., :key_len]
|
||||
mask = mask[..., -key_len:]
|
||||
|
||||
|
||||
output = mx.fast.scaled_dot_product_attention(
|
||||
|
Loading…
Reference in New Issue
Block a user