Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
578d3e97
Commit
578d3e97
authored
Sep 06, 2025
by
王敏
Browse files
修复all2all报维度不匹配问题
parent
cde83ab0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
vllm/model_executor/layers/fused_moe/ep_moe/ep_moe_utlis.py
vllm/model_executor/layers/fused_moe/ep_moe/ep_moe_utlis.py
+2
-4
vllm/model_executor/layers/fused_moe/ep_moe/layer.py
vllm/model_executor/layers/fused_moe/ep_moe/layer.py
+1
-1
No files found.
vllm/model_executor/layers/fused_moe/ep_moe/ep_moe_utlis.py
View file @
578d3e97
...
@@ -327,8 +327,7 @@ def all_to_all(group, input, output_split_sizes, input_split_sizes):
...
@@ -327,8 +327,7 @@ def all_to_all(group, input, output_split_sizes, input_split_sizes):
output
=
input
.
new_empty
(
output
=
input
.
new_empty
(
size
=
[
sum
(
output_split_sizes
)]
+
list
(
input
.
size
()[
1
:]),
size
=
[
sum
(
output_split_sizes
)]
+
list
(
input
.
size
()[
1
:]),
dtype
=
input
.
dtype
,
dtype
=
input
.
dtype
,
#device=torch.cuda.current_device(),
device
=
torch
.
cuda
.
current_device
()
device
=
input
.
device
,
)
)
torch
.
distributed
.
all_to_all_single
(
torch
.
distributed
.
all_to_all_single
(
...
@@ -336,8 +335,7 @@ def all_to_all(group, input, output_split_sizes, input_split_sizes):
...
@@ -336,8 +335,7 @@ def all_to_all(group, input, output_split_sizes, input_split_sizes):
input
,
input
,
output_split_sizes
=
output_split_sizes
,
output_split_sizes
=
output_split_sizes
,
input_split_sizes
=
input_split_sizes
,
input_split_sizes
=
input_split_sizes
,
group
=
group
,
group
=
group
async_op
=
True
)
)
return
output
return
output
vllm/model_executor/layers/fused_moe/ep_moe/layer.py
View file @
578d3e97
...
@@ -180,7 +180,7 @@ class EPMoE(FusedMoE):
...
@@ -180,7 +180,7 @@ class EPMoE(FusedMoE):
routed_scaling_factor
:
Optional
[
float
]
=
None
,
routed_scaling_factor
:
Optional
[
float
]
=
None
,
enable_eplb
:
bool
=
False
,
enable_eplb
:
bool
=
False
,
num_redundant_experts
:
int
=
0
,
num_redundant_experts
:
int
=
0
,
moe_permute_fusion
:
bool
=
Tru
e
,
moe_permute_fusion
:
bool
=
Fals
e
,
moe_shared_expert_overlap
:
bool
=
False
moe_shared_expert_overlap
:
bool
=
False
):
):
super
().
__init__
(
num_experts
,
top_k
,
hidden_size
,
super
().
__init__
(
num_experts
,
top_k
,
hidden_size
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment