Fix save when laod_best_model_at_end=True (#14054)

This commit is contained in:
Sylvain Gugger 2021-10-18 10:22:57 -04:00 committed by GitHub
parent 2c60ff2fe2
commit 2024faf171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 (