on_save#
- RayTrainReportCallback.on_save(args: TrainingArguments, state: TrainerState, control: TrainerControl, **kwargs: Any) None[source]#
Event called after a checkpoint save.
- Parameters:
args (TrainingArguments) – The trainer’s training arguments. The callback reads the latest checkpoint from
args.output_dir.state (TrainerState) – The trainer’s state. The callback merges the entries of
state.log_historyinto the metrics it reports.control (TrainerControl) – The trainer’s control object. Unused.
**kwargs (Any) – Other keyword arguments from the Transformers callback handler. Unused.