Skip to content

Commit 253e440

Browse files
committed
revert +1 in steps logging
1 parent f38b11e commit 253e440

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

large_language_model_pretraining/nemo/callbacks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def version(self):
148148
### MLPerf callbacks
149149
def compute_consumed_mllog_tokens(trainer, init_global_step, global_batch_size, seq_length):
150150
consumed_samples = (
151-
(trainer.global_step + 1) * global_batch_size # global steps are 0-indexed
151+
trainer.global_step * global_batch_size
152152
)
153153
return int(consumed_samples) # we log the epoch numbers in sequences, not tokens
154154

0 commit comments

Comments
 (0)