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 Train Step calculations for Checkpointing #279

Merged
merged 3 commits into from
Mar 16, 2020

Conversation

tanaysoni
Copy link
Contributor

Currently, the checkpointing during training is implemented at the beginning of the train loop. This causes a training step overlap. For instance, consider a case when checkpoint_every is set to 100 and a checkpoint is saved at step 300. Then, a training resumed from the saved checkpoint will start at step 300, causing step 300 to be executed twice.

This PR moves the checkpoint at the end of the training loop. Thus, when the training resumes from a checkpoint saved at step 300, it'd start from step 301.

farm/train.py Outdated Show resolved Hide resolved
@tanaysoni tanaysoni requested a review from tholor March 16, 2020 11:47
@tanaysoni tanaysoni merged commit 5d78cbe into master Mar 16, 2020
@tanaysoni tanaysoni deleted the fix-train-checkpoint-steps branch March 16, 2020 12:49
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.

2 participants