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
Fix FSDP summon_full_params(..., with_grads=True)
when grad precision is not fp32
#112746
Fix FSDP summon_full_params(..., with_grads=True)
when grad precision is not fp32
#112746
Conversation
|
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/112746
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 86f9d5c with merge base 51a3838 (): 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.
This makes sense! Thanks for the fix.
We can land if CI is green.
I there still a blocker I can resolve? @awgu |
@konstantinjdobler Really sorry about this. We can try to land (and rebase if needed). |
@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 |
No worries, thanks 🚀 |
…on is not `fp32` (pytorch#112746) Fixes pytorch#112717 I moved the `torch.empty` call after the conditional so that we don't need to check whether `flat_param.grad` is None Pull Request resolved: pytorch#112746 Approved by: https://github.com/awgu
Fixes #112717
I moved the
torch.empty
call after the conditional so that we don't need to check whetherflat_param.grad
is Nonecc @awgu