-
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
Remove nivida/apex #16149
Remove nivida/apex #16149
Conversation
⚡ Required checks status: All passing 🟢Groups summary🟢 pytorch_lightning: Tests workflowThese checks are required after the changes to 🟢 pytorch_lightning: Azure GPU
These checks are required after the changes to 🟢 pytorch_lightning: Azure HPU
These checks are required after the changes to 🟢 pytorch_lightning: Azure IPU
These checks are required after the changes to 🟢 pytorch_lightning: Docs
These checks are required after the changes to 🟢 pytorch_lightning: Docker
These checks are required after the changes to 🟢 mypy
These checks are required after the changes to 🟢 installThese checks are required after the changes to Thank you for your contribution! 💜
|
if "amp_scaling_state" in self._loaded_checkpoint: | ||
rank_zero_warn("This checkpoint contains apex AMP data, but apex support has been removed.") |
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.
Should we remove this as well?
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.
Fine with me either way. I thought having a warning could be useful
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.
Alternatively we could also have a migration that removes the key and warns that this state gets dropped. This would keep the main code base clean and move the "legacy" code to the migration utilities.
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.
Leaving this for a follow-up
Co-authored-by: Adrian Wälchli <[email protected]> Fixes #16149 (comment)
Co-authored-by: Adrian Wälchli <[email protected]> Fixes #16149 (comment)
Co-authored-by: Adrian Wälchli <[email protected]> Fixes #16149 (comment)
Co-authored-by: Adrian Wälchli <[email protected]> Fixes #16149 (comment)
Co-authored-by: Adrian Wälchli <[email protected]> Fixes #16149 (comment)
Co-authored-by: Adrian Wälchli <[email protected]> Fixes #16149 (comment)
Co-authored-by: Adrian Wälchli <[email protected]> Fixes #16149 (comment)
Co-authored-by: Adrian Wälchli <[email protected]> Fixes #16149 (comment)
Co-authored-by: Adrian Wälchli <[email protected]> Fixes #16149 (comment)
Co-authored-by: Adrian Wälchli <[email protected]> Fixes #16149 (comment)
Co-authored-by: Adrian Wälchli <[email protected]> Fixes #16149 (comment)
Co-authored-by: Adrian Wälchli <[email protected]> Fixes #16149 (comment)
Co-authored-by: Adrian Wälchli <[email protected]> Fixes #16149 (comment)
Co-authored-by: Adrian Wälchli <[email protected]> Fixes #16149 (comment)
Co-authored-by: Adrian Wälchli <[email protected]> Fixes #16149 (comment)
Co-authored-by: Adrian Wälchli <[email protected]> Fixes #16149 (comment)
Co-authored-by: Adrian Wälchli <[email protected]> Fixes #16149 (comment)
Co-authored-by: Adrian Wälchli <[email protected]> Fixes #16149 (comment)
What does this PR do?
See title
Does your PR introduce any breaking changes? If yes, please list them.
Removes apex support
cc @justusschock @awaelchli @Borda @carmocca