Enforce string-formatting with f-strings (#10980)
* First third * Styling and fix mistake * Quality * All the rest * Treat %s and %d * typo * Missing ) * Apply suggestions from code review Co-authored-by: Lysandre Debut <lysandre@huggingface.co> Co-authored-by: Lysandre Debut <lysandre@huggingface.co>
This commit is contained in:
@@ -69,10 +69,8 @@ def main():
|
||||
training_args = parser.parse_args_into_dataclasses()[0]
|
||||
|
||||
logger.warning(
|
||||
"Process rank: %s, device: %s, tpu_num_cores: %s",
|
||||
training_args.local_rank,
|
||||
training_args.device,
|
||||
training_args.tpu_num_cores,
|
||||
f"Process rank: {training_args.local_rank}, device: {training_args.device}, "
|
||||
f"tpu_num_cores: {training_args.tpu_num_cores}",
|
||||
)
|
||||
|
||||
# Essentially, what we want to verify in the distributed case is
|
||||
|
||||
Reference in New Issue
Block a user