Skip to content

Commit

Permalink
Update src/transformers/trainer_callback.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sourab Mangrulkar <[email protected]>
  • Loading branch information
muellerzr and pacman100 authored Apr 29, 2024
1 parent 7e405f7 commit cc684e5
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 @@ -460,7 +460,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 cc684e5

Please sign in to comment.