Skip to content

Commit 22de429

Browse files
authored
Add tokens-per-second-per-gpu to the printed logs instead of just wandb logs
1 parent beaf2f2 commit 22de429

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

megatron/training.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,7 @@ def add_to_logging(name):
655655
log_string += ' number of nan iterations: {:3d} |'.format(
656656
total_loss_dict[nan_iters_key])
657657
log_string += ' TFLOPs: {:.2f} |'.format(tflops)
658+
log_string += ' tokens-per-second-per-gpu: {:.2f} |'.format(tokens_per_sec_per_gpu)
658659
total_loss_dict[advanced_iters_key] = 0
659660
total_loss_dict[skipped_iters_key] = 0
660661
total_loss_dict[nan_iters_key] = 0

0 commit comments

Comments
 (0)