-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Flex + NJT: cross attention support #140723
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
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/140723
Note: Links to docs will display an error until the docs builds have been completed. ❗ 2 Active SEVsThere are 2 currently active SEVs. If your PR is affected, please view them below:
✅ No FailuresAs of commit 35d6575 with merge base 2675ef8 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Fixes #140598 Allows ragged structures for query and key+value to differ (i.e. supports cross attention for Flex + NJT). Technically, this is BC-breaking thanks to positional arg reordering in `create_nested_block_mask()`, but Flex + NJT support isn't in a major release yet so I'm hoping we can just do it. [ghstack-poisoned]
Fixes #140598 Allows ragged structures for query and key+value sequence lengths to differ (i.e. supports cross attention for Flex + NJT). Technically, this is BC-breaking thanks to arg renaming and positional arg reordering in `create_nested_block_mask()`, but Flex + NJT support isn't in a major release yet so I'm hoping we can just do it. [ghstack-poisoned]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I would turn on ROCM jobs just to be sure there aren't any failures
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Fixes pytorch#140598 Allows ragged structures for query and key+value sequence lengths to differ (i.e. supports cross attention for Flex + NJT). Technically, this is BC-breaking thanks to arg renaming and positional arg reordering in `create_nested_block_mask()`, but Flex + NJT support isn't in a major release yet so I'm hoping we can just do it. Pull Request resolved: pytorch#140723 Approved by: https://github.com/drisspg
Fixes pytorch#140598 Allows ragged structures for query and key+value sequence lengths to differ (i.e. supports cross attention for Flex + NJT). Technically, this is BC-breaking thanks to arg renaming and positional arg reordering in `create_nested_block_mask()`, but Flex + NJT support isn't in a major release yet so I'm hoping we can just do it. Pull Request resolved: pytorch#140723 Approved by: https://github.com/drisspg
Stack from ghstack (oldest at bottom):
Fixes #140598
Allows ragged structures for query and key+value sequence lengths to differ (i.e. supports cross attention for Flex + NJT).
Technically, this is BC-breaking thanks to arg renaming and positional arg reordering in
create_nested_block_mask(), but Flex + NJT support isn't in a major release yet so I'm hoping we can just do it.