From 821b772ab915e53870aabba6cb765e883501a1e6 Mon Sep 17 00:00:00 2001 From: Jacklanda Date: Tue, 4 Jun 2024 20:38:17 +0800 Subject: [PATCH] Add new line switch before logging ***** Running {description} ***** (#31225) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✨ Add new line switch before logging "***** Running {description} *****". Signed-off-by: jacklanda --- src/transformers/trainer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transformers/trainer.py b/src/transformers/trainer.py index e585520cf4ac8e..8c9b99191f632f 100755 --- a/src/transformers/trainer.py +++ b/src/transformers/trainer.py @@ -3759,7 +3759,7 @@ def evaluation_loop( batch_size = self.args.eval_batch_size - logger.info(f"***** Running {description} *****") + logger.info(f"\n***** Running {description} *****") if has_length(dataloader): logger.info(f" Num examples = {self.num_examples(dataloader)}") else: @@ -4343,7 +4343,7 @@ def prediction_loop( batch_size = dataloader.batch_size num_examples = self.num_examples(dataloader) - logger.info(f"***** Running {description} *****") + logger.info(f"\n***** Running {description} *****") logger.info(f" Num examples = {num_examples}") logger.info(f" Batch size = {batch_size}")