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
zhaoyu6
sglang
Commits
6936be32
"vscode:/vscode.git/clone" did not exist on "9556ebcc076e696dfd698bda8e25698db0625036"
Unverified
Commit
6936be32
authored
Jul 21, 2025
by
Ke Bao
Committed by
GitHub
Jul 21, 2025
Browse files
Remve router gemm output dtype conversion (#8204)
parent
9b5de6cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
python/sglang/srt/models/deepseek_v2.py
python/sglang/srt/models/deepseek_v2.py
+2
-3
No files found.
python/sglang/srt/models/deepseek_v2.py
View file @
6936be32
...
...
@@ -254,9 +254,8 @@ class MoEGate(nn.Module):
and
self
.
weight
.
shape
[
0
]
==
256
and
_device_sm
>=
90
):
logits
=
dsv3_router_gemm
(
hidden_states
,
self
.
weight
).
to
(
hidden_states
.
dtype
)
# router gemm output float32
logits
=
dsv3_router_gemm
(
hidden_states
,
self
.
weight
)
else
:
logits
=
F
.
linear
(
hidden_states
,
self
.
weight
,
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