diff --git a/src/transformers/trainer.py b/src/transformers/trainer.py index 3b69d0114321e3..da62cd46fa7c86 100755 --- a/src/transformers/trainer.py +++ b/src/transformers/trainer.py @@ -4645,7 +4645,7 @@ def create_accelerator_and_postprocess(self): # `auto_find_batch_size` isn't yet supported with DeepSpeed if self.is_deepspeed_enabled and self.args.auto_find_batch_size: - raise NotImplementedError(f"`DeepSpeed` doesn't support `auto_find_batch_size`.") + raise NotImplementedError("`DeepSpeed` doesn't support `auto_find_batch_size`.") def propagate_args_to_deepspeed(self, auto_find_batch_size=False): """