Lat fix for Ray HP search
diff --git a/src/transformers/trainer.py b/src/transformers/trainer.py
index 97072e689eaba..350375fe00b7d 100755
--- a/src/transformers/trainer.py
+++ b/src/transformers/trainer.py
@@ -843,6 +843,8 @@ def _objective(trial):
             if getattr(self, "objective", None) is None:
                 metrics = self.evaluate()
                 self.objective = self.compute_objective(metrics)
+                if self.hp_search_backend == HPSearchBackend.RAY:
+                    tune.report(objective=self.objective)
             return self.objective
 
         if self.hp_search_backend == HPSearchBackend.OPTUNA:
