Skip to content

Commit 0c09099

Browse files
committed
bug fix
1 parent 0e5c16b commit 0c09099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/models/attention_dispatch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ def _all_to_all_single(x: torch.Tensor, group) -> torch.Tensor:
10221022
return x
10231023

10241024
def _all_to_all_dim_exchange(x: torch.Tensor, scatter_idx: int = 2, gather_idx: int = 1, group=None) -> torch.Tensor:
1025-
group_world_size = funcol.get_world_size(group)
1025+
group_world_size = torch.distributed.get_world_size(group)
10261026

10271027
if scatter_idx == 2 and gather_idx == 1:
10281028
B, S_LOCAL, H, D = x.shape

0 commit comments

Comments
 (0)