Files
HuggingFace_transformer/tests
Sean (Seok-Won) Yi 691d1b52c3 Fix/best model checkpoint fix (#35885)
* Set best_model_checkpoint only when ckpt exists.

Rather than set it explicitly without checking if the checkpoint directory even exists as before, now we moved the setting logic inside of _save_checkpoint and are only setting it if it exists.

* Added best_global_step to TrainerState.

* Added tests for best_model_checkpoint.

* Fixed hard-coded values in test to prevent fail.

* Added helper func and removed hard-coded best_step.

* Added side effect patch generator for _eval.

* Added evaluate side effect func.

* Removed erroneous patching.

* Fixed minor bug.

* Applied Ruff.

* Fixed Ruff problem in make style.

* Used Trainer.set_initial_training_values.
2025-03-14 14:24:53 +01:00
..
2025-03-12 09:08:12 +01:00
2025-03-12 09:08:12 +01:00
2025-03-14 13:07:55 +01:00
2025-03-05 15:04:06 -08:00
2025-03-13 17:26:09 +00:00
2025-03-12 09:06:17 +01:00