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

Adding Resume Training Functionality #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yousefelsharkawy
Copy link

@yousefelsharkawy yousefelsharkawy commented Oct 3, 2024

  • Saved the data loader and optimizer states to resume training from where the model stopped
  • There are functions to save and load the rng states, but they seem to work on CPU only (refer to https://pytorch.org/docs/stable/random.html#torch.random.fork_rng). HOWEVER, saving and loading the model, optimizer, and data loader states seems to be sufficient to capture the state of training (I Trained the code for N steps on a single run, then did that again but for multiple runs using the resume training functionality, and I got the same loss and norms)

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.

1 participant