Skip to content

Commit

Permalink
Undo metric_for_best_model update.
Browse files Browse the repository at this point in the history
  • Loading branch information
seanswyi committed Oct 19, 2024
1 parent dd7ab17 commit 1dbccfd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/transformers/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,9 +757,6 @@ def tokenizer(self, processing_class) -> None:
)
self.processing_class = processing_class

if not self.args.metric_for_best_model:
self.args.metric_for_best_model = "loss"

def _activate_neftune(self, model):
r"""
Activates the neftune as presented in this code: https://github.com/neelsjain/NEFTune and paper:
Expand Down

0 comments on commit 1dbccfd

Please sign in to comment.