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
93548076
Commit
93548076
authored
Feb 19, 2026
by
王敏
Browse files
支持非deepseek模型使用moe_fused_gate
parent
2799735a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vllm/model_executor/layers/fused_moe/layer.py
vllm/model_executor/layers/fused_moe/layer.py
+3
-3
No files found.
vllm/model_executor/layers/fused_moe/layer.py
View file @
93548076
...
...
@@ -602,9 +602,9 @@ class FusedMoE(CustomOp):
# moe_fused_gate kernel ensure that num_experts/num_expert_group does not exceed MAX_VPT=32 now. And when kernel can handle MAX_VPT > 32, we can remove this assertion.
self
.
use_fused_gate
=
envs
.
VLLM_ENABLE_MOE_FUSED_GATE
\
and
self
.
e_score_correction_bias
is
not
None
\
and
num_expert_group
is
not
None
\
and
self
.
global_num_experts
//
num_expert_group
<=
32
\
and
is_power_of_two
(
e_score_correction_bias
.
shape
[
0
])
and
num_expert_group
is
not
None
#
\
#
and self.global_num_experts // num_expert_group <= 32 \
#
and is_power_of_two(e_score_correction_bias.shape[0])
self
.
router
=
create_fused_moe_router
(
top_k
=
top_k
,
...
...
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