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
de1350ea
"src/vscode:/vscode.git/clone" did not exist on "dc86bd421ed98777112c64f61940321631c11806"
Unverified
Commit
de1350ea
authored
Jun 09, 2025
by
fzyzcjy
Committed by
GitHub
Jun 08, 2025
Browse files
Minor remove one kernel for DeepSeek (#6977)
parent
86fe943b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
python/sglang/srt/models/deepseek_v2.py
python/sglang/srt/models/deepseek_v2.py
+5
-2
No files found.
python/sglang/srt/models/deepseek_v2.py
View file @
de1350ea
...
@@ -421,10 +421,13 @@ class DeepseekV2MoE(nn.Module):
...
@@ -421,10 +421,13 @@ class DeepseekV2MoE(nn.Module):
topk_weights
=
topk_weights
,
topk_weights
=
topk_weights
,
forward_mode
=
forward_mode
,
forward_mode
=
forward_mode
,
)
)
final_hidden_states
*=
self
.
routed_scaling_factor
if
shared_output
is
not
None
:
if
shared_output
is
not
None
:
final_hidden_states
=
final_hidden_states
+
shared_output
x
=
shared_output
x
.
add_
(
final_hidden_states
,
alpha
=
self
.
routed_scaling_factor
)
final_hidden_states
=
x
else
:
final_hidden_states
*=
self
.
routed_scaling_factor
return
final_hidden_states
return
final_hidden_states
...
...
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