-
Notifications
You must be signed in to change notification settings - Fork 13
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
Correctly save DP/DDP checkpooints #9
Comments
Fork out and make changes and then pull request, Li will look into it.
…On Mon, Jun 27, 2022 at 6:29 AM Petru-Daniel Tudosiu < ***@***.***> wrote:
The correct way of saving DP/DDP checkpoints is to access the module
parameter of the class.
Please do that instead of saving the whole DP/DDP class' state dict and
then trimming the name.
—
Reply to this email directly, view it on GitHub
<#9>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC53JXKZXN4G25IOK56QHT3VRF7CDANCNFSM5Z57XOQA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hi there, Thanks for your message. We followed the official PyTorch ImageNet training code for saving DP/DDP class' state dict. The name prefix trimming method is commonly adopted in other repos. We will add an annotation to this part. If you have further concerns, please initiate a pull request. Thanks, |
Hi Li, From my knowledge of Ignite/MONAI that's not the cleanest way. https://github.com/pytorch/ignite/blob/master/ignite/handlers/checkpoint.py#L463 Cheers, Dan |
The correct way of saving DP/DDP checkpoints is to access the module parameter of the class.
Please do that instead of saving the whole DP/DDP class' state dict and then trimming the name.
The text was updated successfully, but these errors were encountered: