-
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
Deprecate callback hooks on_pretrain_routine_start
and on_pretrain_routine_end
#11794
Deprecate callback hooks on_pretrain_routine_start
and on_pretrain_routine_end
#11794
Conversation
Thanks for the feedback gents. I am not sure what is expected in pytorch_lightning/callbacks/model_summary.py. Should the signature be changed to cc: @ananthsub @carmocca |
on_init_start
and on_init_end
on_pretrain_routine_start
and on_pretrain_routine_end
This logic needs to happen after the model is setup and after the checkpoint state is loaded. Either |
Will you make a separate PR for deprecating the LM hooks? |
for more information, see https://pre-commit.ci
…3/pytorch-lightning into deprecate-pretrain_routine
Yes. @daniellepintz I will make a separate PR for LM hooks. |
@krishnakalyan3 please address the last comments and then this will auto-merge. Are you still planning on making the PR for the LM hooks as well? |
Co-authored-by: Jirka Borovec <[email protected]> Co-authored-by: Danielle Pintz <[email protected]>
Co-authored-by: Jirka Borovec <[email protected]>
Could someone please rerun TPU tests? |
Thank you @rohitgr7 |
This is a breaking change because we changed callback implementations. The ModelCheckpoint callback in particular can be extended. By moving the logic from |
@ananthsub I'm curious if you see a better way we could have gone about this in this PR? |
What does this PR do?
Fixes #10984
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 🙃