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 the bug that checkpoint saving. #134

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

qing-yuan233
Copy link

Fix the bug that the final checkpoint will not be saved when the total steps cannot be divided evenly by save_checkpoint_steps.
Since the number of total steps needs to be manually calculated and set according to the number of epochs, the sample size, the batch size and the number of workers, it is highly likely that the value of steps is not a perfect integer and may not meet the requirements for saving all checkpoints. Therefore, this fix is necessary.

qing-yuan233 added 2 commits December 27, 2024 10:38
…l steps cannot be divided evenly by save_checkpoint_steps.
…l steps cannot be divided evenly by save_checkpoint_steps.
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