Skip to content

Commit

Permalink
Revert incorrect fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredcasper committed Jan 29, 2022
1 parent 2a34e0e commit cd49955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megatron/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def average_losses_across_data_parallel_group(losses):
[loss.clone().detach().view(1) for loss in losses])
torch.distributed.all_reduce(averaged_losses,
group=mpu.get_data_parallel_group())
averaged_losses = averaged_losses /
averaged_losses = averaged_losses / \
torch.distributed.get_world_size(group=mpu.get_data_parallel_group())

return averaged_losses
Expand Down

0 comments on commit cd49955

Please sign in to comment.