From 3eceaa3637197fa78dd3525cb3df57fcaf5ba00d Mon Sep 17 00:00:00 2001 From: jheitmann Date: Tue, 10 Oct 2023 20:49:10 +0200 Subject: [PATCH] Fix source_prefix default value (#26654) --- examples/pytorch/summarization/run_summarization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pytorch/summarization/run_summarization.py b/examples/pytorch/summarization/run_summarization.py index 74c83eee49..5f20aac6cb 100755 --- a/examples/pytorch/summarization/run_summarization.py +++ b/examples/pytorch/summarization/run_summarization.py @@ -264,7 +264,7 @@ class DataTrainingArguments: }, ) source_prefix: Optional[str] = field( - default="", metadata={"help": "A prefix to add before every source text (useful for T5 models)."} + default=None, metadata={"help": "A prefix to add before every source text (useful for T5 models)."} ) forced_bos_token: Optional[str] = field(