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
f3c7941e
Unverified
Commit
f3c7941e
authored
Apr 09, 2026
by
Kai Song
Committed by
GitHub
Apr 09, 2026
Browse files
[Bugfix]Fix EP precision for Qwen3.5, Qwen3-Next (#39181)
Signed-off-by:
Song Kai
<
songkai05@baidu.com
>
parent
3352bf8b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
vllm/model_executor/models/qwen2_moe.py
vllm/model_executor/models/qwen2_moe.py
+3
-0
vllm/model_executor/models/qwen3_next.py
vllm/model_executor/models/qwen3_next.py
+1
-0
No files found.
vllm/model_executor/models/qwen2_moe.py
View file @
f3c7941e
...
...
@@ -80,6 +80,7 @@ class Qwen2MoeMLP(nn.Module):
quant_config
:
QuantizationConfig
|
None
=
None
,
reduce_results
:
bool
=
True
,
expert_gate
:
torch
.
nn
.
Linear
|
None
=
None
,
is_sequence_parallel
:
bool
=
False
,
prefix
:
str
=
""
,
)
->
None
:
super
().
__init__
()
...
...
@@ -88,6 +89,7 @@ class Qwen2MoeMLP(nn.Module):
[
intermediate_size
]
*
2
,
bias
=
False
,
quant_config
=
quant_config
,
disable_tp
=
is_sequence_parallel
,
prefix
=
f
"
{
prefix
}
.gate_up_proj"
,
)
self
.
down_proj
=
RowParallelLinear
(
...
...
@@ -96,6 +98,7 @@ class Qwen2MoeMLP(nn.Module):
bias
=
False
,
quant_config
=
quant_config
,
reduce_results
=
reduce_results
,
disable_tp
=
is_sequence_parallel
,
prefix
=
f
"
{
prefix
}
.down_proj"
,
)
if
hidden_act
!=
"silu"
:
...
...
vllm/model_executor/models/qwen3_next.py
View file @
f3c7941e
...
...
@@ -140,6 +140,7 @@ class Qwen3NextSparseMoeBlock(nn.Module):
quant_config
=
quant_config
,
reduce_results
=
False
,
expert_gate
=
self
.
shared_expert_gate
,
is_sequence_parallel
=
self
.
is_sequence_parallel
,
prefix
=
f
"
{
prefix
}
.shared_expert"
,
)
else
:
...
...
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