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

Resuming training via --load_step #30

Open
justinchiu opened this issue Dec 30, 2023 · 0 comments
Open

Resuming training via --load_step #30

justinchiu opened this issue Dec 30, 2023 · 0 comments

Comments

@justinchiu
Copy link

justinchiu commented Dec 30, 2023

Thanks for the code release!

Heads up for other users who want to resume training from a checkpoint: you will want to

  1. de-indent DDP_main.py:80 so that all devices can load the checkpoint
  2. load the optimizer and scheduler states on line DDP_main:146
  3. set the index of the dataloader to the correct example before actually training

I'm not totally sure this solves everything like logging, but might work ok.

Note: There's also a separate issue that your checkpoints might get overwritten between epochs, so be sure you're loading the right thing and saving where you want.

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

No branches or pull requests

1 participant