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
0297773a
Unverified
Commit
0297773a
authored
Oct 29, 2025
by
Gao016
Committed by
GitHub
Oct 28, 2025
Browse files
a tiny fix for support deepseek bf16 weights (#12313)
Co-authored-by:
gaochang
<
gaochang@U-19PX2WQ1-0350.local
>
parent
587deb15
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/models/deepseek_v2.py
python/sglang/srt/models/deepseek_v2.py
+1
-1
No files found.
python/sglang/srt/models/deepseek_v2.py
View file @
0297773a
...
@@ -2998,7 +2998,7 @@ class DeepseekV2ForCausalLM(nn.Module):
...
@@ -2998,7 +2998,7 @@ class DeepseekV2ForCausalLM(nn.Module):
disable_reason
=
"Only Deepseek V3/R1 on NV-platform with capability >= 80 can use shared experts fusion optimization."
disable_reason
=
"Only Deepseek V3/R1 on NV-platform with capability >= 80 can use shared experts fusion optimization."
elif
get_moe_expert_parallel_world_size
()
>
1
:
elif
get_moe_expert_parallel_world_size
()
>
1
:
disable_reason
=
"Deepseek V3/R1 can not use shared experts fusion optimization under expert parallelism."
disable_reason
=
"Deepseek V3/R1 can not use shared experts fusion optimization under expert parallelism."
elif
self
.
quant_config
.
get_name
()
==
"w4afp8"
:
elif
self
.
quant_config
and
self
.
quant_config
.
get_name
()
==
"w4afp8"
:
disable_reason
=
"Deepseek V3/R1 W4AFP8 model uses different quant method for routed experts and shared experts."
disable_reason
=
"Deepseek V3/R1 W4AFP8 model uses different quant method for routed experts and shared experts."
if
disable_reason
is
not
None
:
if
disable_reason
is
not
None
:
...
...
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