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
cab4877a
Commit
cab4877a
authored
Nov 21, 2025
by
shangxl
Browse files
fix SGLANG_USE_FUSED_SILU_MUL_QUANT bug
Signed-off-by:
wanghan
<
wanghan5@sugon.com
>
parent
31653dd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
python/sglang/srt/models/deepseek_v2.py
python/sglang/srt/models/deepseek_v2.py
+2
-1
No files found.
python/sglang/srt/models/deepseek_v2.py
View file @
cab4877a
...
@@ -459,7 +459,8 @@ class DeepseekV2MLP(nn.Module):
...
@@ -459,7 +459,8 @@ class DeepseekV2MLP(nn.Module):
x
=
(
x
,
None
,
y
)
x
=
(
x
,
None
,
y
)
gate_up
,
_
=
self
.
gate_up_proj
(
x
)
gate_up
,
_
=
self
.
gate_up_proj
(
x
)
if
_use_fused_silu_mul_quant
:
d
=
gate_up
.
shape
[
-
1
]
if
_use_fused_silu_mul_quant
and
d
%
8
==
0
and
d
<=
16384
:
x
,
_
=
self
.
down_proj
(
gate_up
,
skip_all_reduce
=
should_allreduce_fusion
or
use_reduce_scatter
,
use_fused_silu_mul_quant
=
True
)
x
,
_
=
self
.
down_proj
(
gate_up
,
skip_all_reduce
=
should_allreduce_fusion
or
use_reduce_scatter
,
use_fused_silu_mul_quant
=
True
)
else
:
else
:
x
=
self
.
act_fn
(
gate_up
)
x
=
self
.
act_fn
(
gate_up
)
...
...
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