-
Notifications
You must be signed in to change notification settings - Fork 795
[PyTorch/Jax] Fix attention mask definition, and sliding window for decoder #818
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
29 commits
Select commit
Hold shift + click to select a range
fae6572
fix inconsistency for attn mask; now True means participating in attn
cyanguwa dc6869d
fix sliding window window_size for decoder+padding combination
cyanguwa cca5f49
Merge branch 'NVIDIA:main' into fix_attn_masks
cyanguwa 81c4605
revert paddle changes regarding mask
cyanguwa 35de3be
Merge branch 'main' into fix_attn_masks
cyanguwa 4ca194c
revert softmax to 1-mask;0-keep
cyanguwa 3a4b377
enforce 1-mask out; 0-keep rule for jax masks
cyanguwa dfa0ece
fix jax lint
cyanguwa aa6eaca
revert pytorch mask changes; some kept in tests
cyanguwa 44062a9
revert to jax fused attn on main
cyanguwa 1c8a073
inverse mask logic for get_cu_seqlens/_and_indices in PyTorch impleme…
cyanguwa 19f271c
temporarily disable update_weight_scale_inv
cyanguwa 2a489bf
enforce window_size for decoder
cyanguwa 87d02b6
add docstring for mask definition 1-mask out;0-keep
cyanguwa ea06868
Merge branch 'main' into fix_attn_masks
cyanguwa 0489d74
Merge branch 'main' into fix_attn_masks
cyanguwa d759aee
add aux_ctx_tensors to save_for_backward
cyanguwa 6b42b93
Merge branch 'main' into fix_attn_masks
cyanguwa d1b9ecb
Merge branch 'main' into fix_attn_masks
cyanguwa 2e84099
tweak make_decoder_mask and make_mask in jax tests
cyanguwa 49a38f0
skip dBias for shapes other than 1HSS; otherwise dq/dk/dv NaNs
cyanguwa 5bd7a1a
expand attn_biases from list to variables in save_for_backward
cyanguwa bf9a851
fix use of variable before assignment in jax dact_lu
cyanguwa 84aa282
remove window size definition for decoder
cyanguwa 3911898
Merge branch 'main' into fix_attn_masks
cyanguwa 37f25c3
add change notes in README for padding mask in PyTorch
cyanguwa 87cea82
tweak padding mask notes in README
cyanguwa 5e65f15
Merge branch 'main' into fix_attn_masks
cyanguwa f07b0bf
expand list to tensors for save_for_backwards
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
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
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
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.