Skip to content

Commit ec0396e

Browse files
committed
fix
1 parent effd8b7 commit ec0396e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

moshi/moshi/quantization/core_vq.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ def _average_tensors(tensors: tp.Sequence[torch.Tensor]) -> None:
6666
world_size = distributed.get_world_size()
6767
handles = []
6868
for tensor in tensors:
69-
handle = torch.distributed.all_reduce(
70-
tensor.data, op=torch.distributed.ReduceOp.SUM, async_op=True)
69+
handle = distributed.all_reduce(
70+
tensor.data, op=distributed.ReduceOp.SUM, async_op=True)
7171
handles.append(handle)
7272
for tensor, handle in zip(tensors, handles):
7373
handle.wait()

0 commit comments

Comments
 (0)