MCPcopy Create free account
hub / github.com/OpenMOSS/rope_pp / on_evaluate

Method on_evaluate

utils/callback_utils.py:67–69  ·  view source on GitHub ↗
(self, args: TrainingArguments, state: TrainerState, control: TrainerControl, metrics=None, **kwargs)

Source from the content-addressed store, hash-verified

65 f"[{str(total_time)} / {str(final_time)}] validation ", end='')
66
67 def on_evaluate(self, args: TrainingArguments, state: TrainerState, control: TrainerControl, metrics=None, **kwargs):
68 if f'eval_{self.valid_dataset_abbr}_runtime' in metrics:
69 self.valid_total_time += metrics[f'eval_{self.valid_dataset_abbr}_runtime']
70
71
72class CheckpointingCallback(TrainerCallback):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected