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
0917c5da
"examples/vscode:/vscode.git/clone" did not exist on "896c98a2aedaa25a9b47c6b4f9cafd7b3f7f0f54"
Unverified
Commit
0917c5da
authored
Oct 21, 2025
by
fzyzcjy
Committed by
GitHub
Oct 21, 2025
Browse files
Support mixing cutedsl and deepgemm backend (#11807)
parent
184a4df6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
python/sglang/srt/layers/moe/ep_moe/layer.py
python/sglang/srt/layers/moe/ep_moe/layer.py
+5
-1
No files found.
python/sglang/srt/layers/moe/ep_moe/layer.py
View file @
0917c5da
...
@@ -191,11 +191,15 @@ class DeepEPMoE(FusedMoE):
...
@@ -191,11 +191,15 @@ class DeepEPMoE(FusedMoE):
assert
deep_gemm_wrapper
.
ENABLE_JIT_DEEPGEMM
and
self
.
use_fp8_w8a8
assert
deep_gemm_wrapper
.
ENABLE_JIT_DEEPGEMM
and
self
.
use_fp8_w8a8
return
self
.
forward_deepgemm_contiguous
(
dispatch_output
)
return
self
.
forward_deepgemm_contiguous
(
dispatch_output
)
elif
DispatchOutputChecker
.
format_is_deepep_ll
(
dispatch_output
):
elif
DispatchOutputChecker
.
format_is_deepep_ll
(
dispatch_output
):
if
get_moe_runner_backend
().
is_flashinfer_cutedsl
():
if
(
get_moe_runner_backend
().
is_flashinfer_cutedsl
()
and
self
.
quant_config
.
get_name
()
==
"modelopt_fp4"
):
return
self
.
forward_flashinfer_cutedsl
(
return
self
.
forward_flashinfer_cutedsl
(
dispatch_output
,
down_gemm_overlap_args
=
down_gemm_overlap_args
dispatch_output
,
down_gemm_overlap_args
=
down_gemm_overlap_args
)
)
assert
deep_gemm_wrapper
.
ENABLE_JIT_DEEPGEMM
and
self
.
use_fp8_w8a8
assert
deep_gemm_wrapper
.
ENABLE_JIT_DEEPGEMM
and
self
.
use_fp8_w8a8
assert
down_gemm_overlap_args
is
None
return
self
.
forward_deepgemm_masked
(
dispatch_output
)
return
self
.
forward_deepgemm_masked
(
dispatch_output
)
else
:
else
:
raise
ValueError
(
raise
ValueError
(
...
...
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