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
22bfed75
Unverified
Commit
22bfed75
authored
Jun 20, 2025
by
Cheng Wan
Committed by
GitHub
Jun 20, 2025
Browse files
[DeepSeekNextN] fix: residual of head norm can be None (#7398)
parent
e879d8b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
python/sglang/srt/models/deepseek_nextn.py
python/sglang/srt/models/deepseek_nextn.py
+5
-1
No files found.
python/sglang/srt/models/deepseek_nextn.py
View file @
22bfed75
...
...
@@ -107,7 +107,11 @@ class DeepseekModelNextN(nn.Module):
)
if
not
forward_batch
.
forward_mode
.
is_idle
():
hidden_states
,
_
=
self
.
shared_head
.
norm
(
hidden_states
,
residual
)
if
residual
is
not
None
:
hidden_states
,
_
=
self
.
shared_head
.
norm
(
hidden_states
,
residual
)
else
:
hidden_states
=
self
.
shared_head
.
norm
(
hidden_states
)
return
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