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
5c08a36c
Unverified
Commit
5c08a36c
authored
Jul 17, 2025
by
hzh0425
Committed by
GitHub
Jul 16, 2025
Browse files
[Fix] ensure DeepGEMM is only enabled for FP8_W8A8 models (#8110)
parent
9069884b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
python/sglang/srt/layers/moe/ep_moe/layer.py
python/sglang/srt/layers/moe/ep_moe/layer.py
+6
-0
No files found.
python/sglang/srt/layers/moe/ep_moe/layer.py
View file @
5c08a36c
...
...
@@ -1272,6 +1272,12 @@ class DeepEPMoE(EPMoE):
routed_scaling_factor
=
routed_scaling_factor
,
)
self
.
deepep_mode
=
deepep_mode
if
deep_gemm_wrapper
.
ENABLE_JIT_DEEPGEMM
:
assert
self
.
use_fp8_w8a8
,
(
"DeepGEMM requires an fp8_w8a8 model; "
"alternatively, you can disable DeepGEMM by turning off the ENABLE_JIT_DEEPGEMM environment variable."
)
if
self
.
deepep_mode
.
enable_low_latency
():
assert
(
deep_gemm_wrapper
.
ENABLE_JIT_DEEPGEMM
...
...
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