-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Add state checkpointing to other training scripts #1687
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
Conversation
|
The documentation is not available anymore as the PR was closed or merged. |
examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py
Outdated
Show resolved
Hide resolved
examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py
Show resolved
Hide resolved
examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py
Outdated
Show resolved
Hide resolved
patrickvonplaten
left a comment
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.
Would maybe rephrase the help message a bit and possible even add an example of how to use intermediate checkpoints for inference
|
BTW @pcuenca , Let's maybe allow people to directly use it depending on the accelerate version? |
Co-authored-by: Patrick von Platen <[email protected]>
Yes! |
| --max_train_steps=800 | ||
| ``` | ||
|
|
||
| ### Saving checkpoints while training |
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.
Very nice!
patrickvonplaten
left a comment
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.
Perf thanks!
* Add state checkpointing to other training scripts * Fix first_epoch * Apply suggestions from code review Co-authored-by: Patrick von Platen <[email protected]> * Update Dreambooth checkpoint help message. * Dreambooth docs: checkpoints, inference from a checkpoint. * make style Co-authored-by: Patrick von Platen <[email protected]>
|
Sorry for that I am newbie in github Just want you to know that this line may have to be changed examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py 675 for epoch in range(first_epoch, args.num_epochs): |
|
I think you are right, @sanghyun0927, just opened #1885 to fix it. Thanks a lot! |
Bring dreambooth changes in #1668 to the rest of the training scripts.
Fixes #666.