-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[dtensor] add foreach_zero_ support #113897
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
This PR add foreach_zero_ op support, to fix when optim.zero_grad(set_to_none=False) hit this op and erroring out the device mesh not found issue. Also move the test to use zero_grad as the last step as that's when we going to have dtensor as grads [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/113897
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit b564a0a with merge base 0d6d97d ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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.
Thank you!
This PR add foreach_zero_ op support, to fix when optim.zero_grad(set_to_none=False) hit this op and erroring out the device mesh not found issue. Also move the test to use zero_grad as the last step as that's when we going to have dtensor as grads cc H-Huang awgu kwen2501 fegin fduwjj wz337 wconstab mrshenli zhaojuanmao rohan-varma kiukchung d4l3k lucasllc XilunWu [ghstack-poisoned]
This PR add foreach_zero_ op support, to fix when optim.zero_grad(set_to_none=False) hit this op and erroring out the device mesh not found issue. Also move the test to use zero_grad as the last step as that's when we going to have dtensor as grads ghstack-source-id: 652f76d Pull Request resolved: #113897
|
@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 |
Stack from ghstack (oldest at bottom):
This PR add foreach_zero_ op support, to fix when
optim.zero_grad(set_to_none=False) hit this op and erroring out the
device mesh not found issue.
Also move the test to use zero_grad as the last step as that's when we
going to have dtensor as grads
cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @penguinwu @fegin @XilunWu @fduwjj @wz337 @tianyu-l @wconstab @yf225 @kiukchung @d4l3k @LucasLLC