Skip to content

Commit 8a62df3

Browse files
Address review's comment
1 parent c7039b9 commit 8a62df3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

megatron/core/distributed/param_and_grad_buffer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ def _does_param_require_new_bucket(param):
721721
# Since nccl communicator group is created lazily, we need to perform a warmup call to
722722
# initialize NCCL comm buffers for this dp_group before doing buffer registration.
723723
torch.distributed.barrier()
724-
tmp_warmup_tensor = torch.tensor([0.0], device="cuda")
724+
tmp_warmup_tensor = torch.zeros([1], device="cuda")
725725
torch.distributed.all_reduce(tmp_warmup_tensor, group=self.data_parallel_group)
726726
torch.distributed.barrier()
727727
else:

0 commit comments

Comments
 (0)