evaluation_strategy was fully deprecated in recent release (#2169) [skip ci]

This commit is contained in:
Wing Lian
2024-12-11 20:14:24 -05:00
committed by GitHub
parent d009ead101
commit 78a4aa86d6

View File

@@ -66,10 +66,7 @@ class EvalFirstStepCallback(
control: TrainerControl,
**kwargs,
):
if (
args.evaluation_strategy == IntervalStrategy.STEPS
and state.global_step == 1
):
if args.eval_strategy == IntervalStrategy.STEPS and state.global_step == 1:
control.should_evaluate = True
return control