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
930a2414
Unverified
Commit
930a2414
authored
Sep 02, 2025
by
Wentao Ye
Committed by
GitHub
Sep 02, 2025
Browse files
[Bug] R1 Accuracy: Fix `routed_scaling_factor` Double Mul Issue (#24119)
Signed-off-by:
yewentao256
<
zhyanwentao@126.com
>
parent
457e4719
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vllm/model_executor/models/deepseek_v2.py
vllm/model_executor/models/deepseek_v2.py
+2
-1
No files found.
vllm/model_executor/models/deepseek_v2.py
View file @
930a2414
...
@@ -160,7 +160,8 @@ class DeepseekV2MoE(nn.Module):
...
@@ -160,7 +160,8 @@ class DeepseekV2MoE(nn.Module):
topk_group
=
config
.
topk_group
,
topk_group
=
config
.
topk_group
,
prefix
=
f
"
{
prefix
}
.experts"
,
prefix
=
f
"
{
prefix
}
.experts"
,
scoring_func
=
config
.
scoring_func
,
scoring_func
=
config
.
scoring_func
,
routed_scaling_factor
=
self
.
routed_scaling_factor
,
# we do scaling outside, set factor to 1.0 to avoid double mul
routed_scaling_factor
=
1.0
,
e_score_correction_bias
=
self
.
gate
.
e_score_correction_bias
,
e_score_correction_bias
=
self
.
gate
.
e_score_correction_bias
,
enable_eplb
=
self
.
enable_eplb
,
enable_eplb
=
self
.
enable_eplb
,
num_redundant_experts
=
self
.
n_redundant_experts
)
num_redundant_experts
=
self
.
n_redundant_experts
)
...
...
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