Skip to content

Commit 0f803e8

Browse files
author
Qirui Yang
committed
Fix EP group ranks
1 parent 09e199a commit 0f803e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/distributed/parallel_state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ def initialize_model_parallel(
12621262

12631263
global _EP
12641264
assert _EP is None, "expert parallel group is already initialized"
1265-
group_ranks = (all_ranks.transpose(1, 2).reshape(
1265+
group_ranks = (all_ranks.permute(0, 2, 3, 1, 4).reshape(
12661266
-1, data_parallel_size * tensor_model_parallel_size).unbind(0))
12671267
group_ranks = [x.tolist() for x in group_ranks]
12681268
_EP = init_model_parallel_group(group_ranks,

0 commit comments

Comments
 (0)