mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-03 03:31:05 +06:00
Fix save when laod_best_model_at_end=True (#14054)
This commit is contained in:
parent
2c60ff2fe2
commit
2024faf171
@ -418,8 +418,6 @@ class DefaultFlowCallback(TrainerCallback):
|
||||
# Evaluate
|
||||
if args.evaluation_strategy == IntervalStrategy.STEPS and state.global_step % args.eval_steps == 0:
|
||||
control.should_evaluate = True
|
||||
if args.load_best_model_at_end:
|
||||
control.should_save = True
|
||||
|
||||
# Save
|
||||
if (
|
||||
|
Loading…
Reference in New Issue
Block a user