Skip to content
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: saving model weights #556

Merged
merged 2 commits into from
Jul 26, 2022
Merged

fix: saving model weights #556

merged 2 commits into from
Jul 26, 2022

Conversation

csarron
Copy link
Contributor

@csarron csarron commented Jul 22, 2022

checkpointing not saving model weights if calling accelerator.prepare_model instead of accelerator.prepare
resolves issue: #555

checkpointing not saving model weights if calling `accelerator.prepare_model` instead of `accelerator.prepare`
resolves issue: #555
@muellerzr
Copy link
Collaborator

muellerzr commented Jul 22, 2022

Thanks! If we want to go this route, it would be good to update the rest of them as well. I.e. optimizer and scheduler

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jul 22, 2022

The documentation is not available anymore as the PR was closed or merged.

@csarron
Copy link
Contributor Author

csarron commented Jul 23, 2022

@muellerzr thanks for the comment, I updated the optimizer and scheduler as well. If any other changes are needed, please let me know.

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes the whole API less surprising to the user, thanks a lot for fixing all of those!

@sgugger sgugger merged commit 91ff425 into huggingface:main Jul 26, 2022
@csarron csarron deleted the patch-1 branch July 26, 2022 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants