Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in README example #55

Open
francois-rozet opened this issue Oct 19, 2024 · 0 comments
Open

Typo in README example #55

francois-rozet opened this issue Oct 19, 2024 · 0 comments

Comments

@francois-rozet
Copy link

mask_mod is not defined in the README example. I assume that L53 should be mask_mod = generate_sliding_window(...).

attention-gym/README.md

Lines 53 to 55 in f7c93de

sliding_window_mask = generate_sliding_window(window_size=1024)
block_mask = create_block_mask(mask_mod, 1, 1, S, S, device=device)
out = flex_attention(query, key, value, block_mask=block_mask)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant