-
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
Introduce Stateful
PrecisionPlugin
#11638
Introduce Stateful
PrecisionPlugin
#11638
Conversation
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.
as a follow up, please deprecate CheckpointHooks off the PrecisionPlugin interface: https://github.com/PyTorchLightning/pytorch-lightning/blob/86b177ebe5427725b35fde1a8808a7b59b8a277a/pytorch_lightning/plugins/precision/precision_plugin.py#L29
It is no longer needed following the Stateful change and should be removed in v1.8
for more information, see https://pre-commit.ci
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.
@carmocca let's merge this as it is and create an issue bout unifying the stateful mixin?
We can wait for @jjenniferdai to address comments. |
for more information, see https://pre-commit.ci
Co-authored-by: Rohit Gupta <[email protected]>
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.
Unfortunately we never had any tests around amp checkpointing (I couldn't find any?). I created this issue #11885 because we need some form of checks to be confident with refactors like these.
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
Co-authored-by: Rohit Gupta <[email protected]> Co-authored-by: ananthsub <[email protected]>
What does this PR do?
part of / Fixes #11429: introduce
Stateful
PrecisionPlugin (see Appendix code changes outlined in issue)Does your PR introduce any breaking changes? If yes, please list them.
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃