When is the EarlyStoppingCallback being called?
Hi there.I’m wondering when the EarlyStoppingCallback is being called to check the metric?Is it ateval_stepsorlogging_steps?So for example if:early_stopping_patience=3,eval_steps=100,logging_steps=50Would the patience counter rise for no improvement after 50 or 100 steps?
2022-04-13T22:43:13Z
Answering myself after digging more into the code.It would check whenstate.global_step % args.eval_steps == 0.trainer_callback.DefaultFlowCallback.on_step_endif (
            args.evaluation_strategy == IntervalStrategy.STEPS
            and state.global_step % args.eval_steps == 0
            and args.eval_delay <= state.global_step
        ):
            control.should_evaluate = True