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
06d0a3d9
Unverified
Commit
06d0a3d9
authored
Apr 17, 2025
by
Xuchun Shang
Committed by
GitHub
Apr 17, 2025
Browse files
[Bug fix] use correct func path in deepseek (#5496)
Signed-off-by:
Xuchun Shang
<
xuchun.shang@linux.alibaba.com
>
parent
22c2a79d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/models/deepseek.py
python/sglang/srt/models/deepseek.py
+1
-1
No files found.
python/sglang/srt/models/deepseek.py
View file @
06d0a3d9
...
@@ -170,7 +170,7 @@ class DeepseekMoE(nn.Module):
...
@@ -170,7 +170,7 @@ class DeepseekMoE(nn.Module):
shared_output
=
self
.
shared_experts
(
hidden_states
)
shared_output
=
self
.
shared_experts
(
hidden_states
)
# router_logits: (num_tokens, n_experts)
# router_logits: (num_tokens, n_experts)
router_logits
,
_
=
self
.
gate
(
hidden_states
)
router_logits
,
_
=
self
.
gate
(
hidden_states
)
final_hidden_states
=
fused_moe
(
final_hidden_states
=
fused_moe
.
fused_moe
(
hidden_states
,
hidden_states
,
self
.
w1
,
self
.
w1
,
self
.
w2
,
self
.
w2
,
...
...
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