Skip to content

Commit

Permalink
Update megatron/training_log.py
Browse files Browse the repository at this point in the history
  • Loading branch information
saforem2 committed Sep 13, 2024
1 parent 2113dbc commit 7f71572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megatron/training_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def training_log(
opt_stats, group=mpu.get_pipeline_model_parallel_group()
)
# opt_stats_2 = opt_stats_2.clone().detach()
opt_stats_2 = accelerator.get_accelerator().FloatTensor(opt_stats_2)
opt_stats_2 = accelerator.FloatTensor(opt_stats_2)
torch.distributed.all_reduce(
opt_stats_2,
op=torch.distributed.ReduceOp.MAX,
Expand Down

0 comments on commit 7f71572

Please sign in to comment.