Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion problems/amd_distributed/all2all/submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def dispatch(self, dp_x: torch.Tensor, indices: torch.Tensor):
) # srcGobalExpert, srcRank, srcIndex, expert index

send_counts_t = torch.tensor(send_counts, dtype=torch.long, device=device)
# 1.3 token nums to recv from each rank
# 1.4 token nums to recv from each rank
recv_counts_t = torch.empty(self.world_size, dtype=torch.long, device=device)
dist.all_to_all_single(recv_counts_t, send_counts_t)
# ---------2. send and recv buffer, order by tokens on each rank ----------
Expand Down