Skip to content

Commit

Permalink
Add new line switch before logging ***** Running {description} ***** (#…
Browse files Browse the repository at this point in the history
…31225)

✨ Add new line switch before logging "***** Running {description} *****".

Signed-off-by: jacklanda <[email protected]>
  • Loading branch information
jacklanda authored Jun 4, 2024
1 parent 4ba66fd commit 821b772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transformers/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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}")

Expand Down

0 comments on commit 821b772

Please sign in to comment.