Skip to content

Commit

Permalink
Update comment based on sourab feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerzr committed May 15, 2024
1 parent 370e6cf commit 4002cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/trainer_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ def on_step_end(self, args: TrainingArguments, state: TrainerState, control: Tra
# End training
if state.global_step >= state.max_steps:
control.should_training_stop = True
# Save the best model at the end if we have a save strategy
# Save the model at the end if we have a save strategy
if args.save_strategy != IntervalStrategy.NO:
control.should_save = True

Expand Down

0 comments on commit 4002cb8

Please sign in to comment.