Skip to content

Commit 36f8bd5

Browse files
authored
Fix typo in readme (#64)
stack-info: PR: #64, branch: drisspg/stack/1
1 parent 5475578 commit 36f8bd5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ cd attention-gym
3434
pip install .
3535
```
3636

37-
## 💻 Usage
37+
## 💻 Usage
3838

3939
There are two main ways to use Attention Gym:
4040

@@ -48,10 +48,10 @@ There are two main ways to use Attention Gym:
4848
```python
4949
from torch.nn.attention.flex_attention import flex_attention, create_block_mask
5050
from attn_gym.masks import generate_sliding_window
51-
51+
5252
# Use the imported function in your code
53-
sliding_window_mask = generate_sliding_window(window_size=1024)
54-
block_mask = create_block_mask(mask_mod, 1, 1, S, S, device=device)
53+
sliding_window_mask_mod = generate_sliding_window(window_size=1024)
54+
block_mask = create_block_mask(sliding_window_mask_mod, 1, 1, S, S, device=device)
5555
out = flex_attention(query, key, value, block_mask=block_mask)
5656
```
5757

0 commit comments

Comments
 (0)