Skip to content

Commit cc53104

Browse files
committed
Merge branch 'save_checkpoint_fix' into 'main'
Add missing num_floating_point_operations_so_far argument to save_checkpoint_and_time call See merge request ADLR/megatron-lm!1115 (cherry picked from commit 0f0279a) 2fb398c Add missing num_floating_point_operations_so_far argument to save_checkpoint_and_time call
1 parent 98da379 commit cc53104

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

megatron/training.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,8 @@ def track_e2e_metrics():
954954
assert get_num_microbatches() > num_microbatches, \
955955
"number of microbatches should be increasing due to batch size rampup"
956956
save_checkpoint_and_time(iteration, model, optimizer,
957-
opt_param_scheduler)
957+
opt_param_scheduler,
958+
num_floating_point_operations_so_far)
958959
num_microbatches = get_num_microbatches()
959960
update_num_microbatches(args.consumed_train_samples, consistency_check=True)
960961

0 commit comments

Comments
 (0)