Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
zhaoyu6
sglang
Commits
9f47d686
"vscode:/vscode.git/clone" did not exist on "f92b3ed746a91478c19524e4cc8823c7b8d0ae6f"
Unverified
Commit
9f47d686
authored
Aug 03, 2025
by
Liangsheng Yin
Committed by
GitHub
Aug 03, 2025
Browse files
Fix fused MoE when `routed_scaling_factor is None` (#8709)
parent
d9def43d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
python/sglang/srt/layers/moe/ep_moe/layer.py
python/sglang/srt/layers/moe/ep_moe/layer.py
+3
-1
No files found.
python/sglang/srt/layers/moe/ep_moe/layer.py
View file @
9f47d686
...
@@ -280,7 +280,9 @@ class EPMoE(FusedMoE):
...
@@ -280,7 +280,9 @@ class EPMoE(FusedMoE):
m_max
*
self
.
start_expert_id
,
m_max
*
self
.
start_expert_id
,
BLOCK_SIZE
=
512
,
BLOCK_SIZE
=
512
,
)
)
return
output
*
self
.
routed_scaling_factor
if
self
.
routed_scaling_factor
is
not
None
:
output
*=
self
.
routed_scaling_factor
return
output
class
DeepEPMoE
(
EPMoE
):
class
DeepEPMoE
(
EPMoE
):
...
...
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