Skip to content

Commit ef9c9e7

Browse files
committed
print to warn_rank_0
1 parent 521bfcf commit ef9c9e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

megatron/training/arguments.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,10 +1107,10 @@ def validate_args(args, defaults={}):
11071107
assert args.moe_token_dispatcher_type != "flex", "Fake process group is not supported with flex token dispatcher."
11081108
# Disable nan check for fake process group
11091109
args.check_for_nan_in_loss_and_grad = False
1110-
print('Warning: check_for_nan_in_loss_and_grad is set to False for fake process group.')
1110+
warn_rank_0('check_for_nan_in_loss_and_grad is set to False for fake process group.')
11111111
# Disable gloo process groups for fake process group
11121112
args.enable_gloo_process_groups = False
1113-
print('Warning: enable_gloo_process_groups is set to False for fake process group.')
1113+
warn_rank_0('enable_gloo_process_groups is set to False for fake process group.')
11141114

11151115
# Checkpointing
11161116
if args.ckpt_fully_parallel_save_deprecated and args.rank == 0:

0 commit comments

Comments
 (0)