Skip to content

Comments

Fix the bug that checkpoint saving.#134

Open
qing-yuan233 wants to merge 2 commits intoTencent:mainfrom
qing-yuan233:fix_ckpt_save
Open

Fix the bug that checkpoint saving.#134
qing-yuan233 wants to merge 2 commits intoTencent:mainfrom
qing-yuan233:fix_ckpt_save

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