-
Notifications
You must be signed in to change notification settings - Fork 23.5k
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
[dtensor][fix] fix _scaled_dot_product_flash_attention sharding #148125
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/148125
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 5a8391c with merge base 2978771 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
ghstack-source-id: 47c426b771a7515a3057e4b1d100dac640933265 Pull Request resolved: #148125
cc H-Huang awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k c-p-i-o [ghstack-poisoned]
ghstack-source-id: 408ec85127af2c09bde0248956fb6bc2456e858b Pull Request resolved: #148125
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.
lgtm
@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 |
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.
Thanks for the fix!
…as been fixed (#912) Stack from [ghstack](/~https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #912 ### Summary This PR undo #898 and re-enables CP tests in CI as pytorch/pytorch#148125 fixed the DTensor sdp flash attention op. ### Test CI
#921) …as been fixed (#912) Stack from [ghstack](/~https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #912 ### Summary This PR undo #898 and re-enables CP tests in CI as pytorch/pytorch#148125 fixed the DTensor sdp flash attention op. ### Test CI Co-authored-by: Xilun Wu <12968408+XilunWu@users.noreply.github.com>
Stack from ghstack (oldest at bottom):
Summary
#146372 changed the op signature of
_scaled_dot_product_flash_attention
and as a consequence DTensor needs to change its sharding defined atpytorch/torch/distributed/tensor/_ops/_matrix_ops.py
Line 232 in 40ad5e0
Test
pytest test/distributed/tensor/test_attention.py
Follow-up
It's still unclear why the CP unit tests were not run over the original PR which is BC-breaking.
cc @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o @tianyu-l