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
change
sglang
Commits
4aa39d72
Unverified
Commit
4aa39d72
authored
Sep 11, 2025
by
chenqianfzh
Committed by
GitHub
Sep 11, 2025
Browse files
fix the break in FlashInferFusedMoE (#10356)
Co-authored-by:
Ho-Ren (Jack) Chuang
<
horenchuang@bytedance.com
>
parent
b4c2c421
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
python/sglang/srt/layers/moe/fused_moe_triton/layer.py
python/sglang/srt/layers/moe/fused_moe_triton/layer.py
+4
-2
No files found.
python/sglang/srt/layers/moe/fused_moe_triton/layer.py
View file @
4aa39d72
...
@@ -26,6 +26,7 @@ from sglang.srt.layers.moe import (
...
@@ -26,6 +26,7 @@ from sglang.srt.layers.moe import (
from
sglang.srt.layers.moe.token_dispatcher.standard
import
(
from
sglang.srt.layers.moe.token_dispatcher.standard
import
(
CombineInput
,
CombineInput
,
StandardDispatcher
,
StandardDispatcher
,
StandardDispatchOutput
,
)
)
from
sglang.srt.layers.moe.topk
import
TopKOutput
,
TopKOutputChecker
from
sglang.srt.layers.moe.topk
import
TopKOutput
,
TopKOutputChecker
from
sglang.srt.layers.quantization.base_config
import
(
from
sglang.srt.layers.quantization.base_config
import
(
...
@@ -981,8 +982,9 @@ class FlashInferFusedMoE(FusedMoE):
...
@@ -981,8 +982,9 @@ class FlashInferFusedMoE(FusedMoE):
# Matrix multiply.
# Matrix multiply.
final_hidden_states
=
self
.
quant_method
.
apply_with_router_logits
(
final_hidden_states
=
self
.
quant_method
.
apply_with_router_logits
(
layer
=
self
,
layer
=
self
,
x
=
hidden_states
,
dispatch_output
=
StandardDispatchOutput
(
topk_output
=
topk_output
,
hidden_states
=
hidden_states
,
topk_output
=
topk_output
),
)
)
if
self
.
reduce_results
and
(
self
.
moe_tp_size
>
1
or
self
.
moe_ep_size
>
1
):
if
self
.
reduce_results
and
(
self
.
moe_tp_size
>
1
or
self
.
moe_ep_size
>
1
):
...
...
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