-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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: model weight updates with automatic_optimization=False in mixed precision training #20460
fix: model weight updates with automatic_optimization=False in mixed precision training #20460
Conversation
for more information, see https://pre-commit.ci
Thank you for the contribution, will review today |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #20460 +/- ##
=========================================
- Coverage 88% 79% -9%
=========================================
Files 267 265 -2
Lines 23276 23288 +12
=========================================
- Hits 20383 18322 -2061
- Misses 2893 4966 +2073 |
something must have happened when submitting the PR, changes need to go in here but they appear as a stand-alone file https://github.com/Lightning-AI/pytorch-lightning/pull/20460/files#diff-77ef63a4f3cecc394dba6f10386a36ba11362b5e4086b71fca4a4561caf8b0c8, with the method outside the class |
@iamarunbrahma looking at the signature for |
ok the more I look at this the more puzzled I am, can you clarify the code in the PR @iamarunbrahma, how it fits with the plugin |
BTW the title is contradicting the issue: the issue describes something happening with |
What does this PR do?
Fixes an issue where model weights were not being properly updated when using automatic_optimization=False with mixed precision training (16-mixed precision). The core issues were:
The changes include:
Fixes #20215
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:
Reviewer checklist
📚 Documentation preview 📚: https://pytorch-lightning--20460.org.readthedocs.build/en/20460/