diff --git a/tests/trainer/test_trainer.py b/tests/trainer/test_trainer.py index ae30cb28ce45cc..e47440650921cb 100644 --- a/tests/trainer/test_trainer.py +++ b/tests/trainer/test_trainer.py @@ -4089,7 +4089,6 @@ def test_save_best_checkpoint(self): save_strategy="best", compute_metrics=AlmostAccuracy(), ) - self.assertTrue(trainer.args.metric_for_best_model == "loss") # Patch the `_evaluate` method to control the metrics returned during evaluation with patch.object(