Skip to content

Changed TrainCheckpointCallback to always save on_train_end#2020

Open
MJordahn wants to merge 1 commit into
facebookresearch:mainfrom
MJordahn:always-save-checkpoint-train-end
Open

Changed TrainCheckpointCallback to always save on_train_end#2020
MJordahn wants to merge 1 commit into
facebookresearch:mainfrom
MJordahn:always-save-checkpoint-train-end

Conversation

@MJordahn

@MJordahn MJordahn commented Jun 2, 2026

Copy link
Copy Markdown

Changed TrainCheckpointCallback to always save on_train_end if a TrainCheckpointCallback is passed to training config.

TrainEvalRunner automatically creates directory for saving checkpoint, so should not be necessary in TrainCheckpointCallback.

Fixes #2017.

…nCheckpointCallback is passed to training config
@meta-cla meta-cla Bot added the cla signed label Jun 2, 2026
@MJordahn MJordahn changed the title Changed TrainCheckpointCallback to always save on_train_end Changed TrainCheckpointCallback to always save on_train_end Jun 2, 2026
@lbluque lbluque added the patch Patch version release label Jun 4, 2026
@lbluque lbluque requested a review from rayg1234 June 4, 2026 19:03

@rayg1234 rayg1234 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, thanks for fixing!

@lbluque lbluque added the enhancement New feature or request label Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed enhancement New feature or request patch Patch version release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TrainCheckpointCallback does not save on train end, if checkpoint_every_n_steps not set

3 participants