From be2d9f2e477cce9ed4b91e10d792564c8738ac9d Mon Sep 17 00:00:00 2001 From: Meghan Cowan Date: Mon, 26 Jun 2023 02:59:07 -0700 Subject: [PATCH] Fix tpu_metrics_debug (#24452) fix for tpu metrics debugs string --- src/transformers/training_args.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/transformers/training_args.py b/src/transformers/training_args.py index b27e9bba4c..e8c2823f37 100644 --- a/src/transformers/training_args.py +++ b/src/transformers/training_args.py @@ -1561,7 +1561,10 @@ class TrainingArguments: " `--debug tpu_metrics_debug` instead", FutureWarning, ) - self.debug += " tpu_metrics_debug" + if self.debug is None: + self.debug = " tpu_metrics_debug" + else: + self.debug += " tpu_metrics_debug" self.tpu_metrics_debug = False if isinstance(self.debug, str):