change metric_key_prefix in seq2seq_trainer.py (#15099)

It solves the problem that metric_key_prefix is different from trainer.
This commit is contained in:
JejuWayfarer 2022-01-11 21:44:29 +09:00 committed by GitHub
parent c4fa908fa9
commit 285131bfb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ class Seq2SeqTrainer(Trainer):
self,
test_dataset: Dataset,
ignore_keys: Optional[List[str]] = None,
metric_key_prefix: str = "eval",
metric_key_prefix: str = "test",
max_length: Optional[int] = None,
num_beams: Optional[int] = None,
) -> PredictionOutput: