-
Notifications
You must be signed in to change notification settings - Fork 796
[PyTorch] Add sliding window support to FlashAttention #551
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
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
69f568e
add sliding window to FA
cyanguwa 8f7121f
fix forward logic
cyanguwa f37e872
fix lint
cyanguwa 37f1469
change bert test to causal as unfused does not support padding
cyanguwa e278579
fix FlashAttention for v2-2.3 versions
cyanguwa 37c1caf
Merge branch 'main' into fa/sliding_window
cyanguwa 49e147e
verify FA swa works
cyanguwa 72447a1
merge main
cyanguwa 97f807f
fix mask related restrictions and duplicate code after merge
cyanguwa 603cb52
fix swa test
cyanguwa ce15516
Merge branch 'main' into fa/sliding_window
cyanguwa e2fcf1d
add docstring for get_swa func
cyanguwa 0f6b235
move repeated code into a function
cyanguwa f91d80d
Merge branch 'main' into fa/sliding_window
cyanguwa 67dd2d9
revert mask change
cyanguwa 576112d
add determinism filter and fix FA warning message
cyanguwa 9c7de54
add message for determinism filter
cyanguwa c8afd21
Merge branch 'main' into fa/sliding_window
cyanguwa 53bf1f5
simplify check_set_window_size()
cyanguwa 24252a2
fix check_set_window_size in transformer layers
cyanguwa 87c9826
fix indent
cyanguwa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.