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
6936be32
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
Show 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):
...
@@ -254,9 +254,8 @@ class MoEGate(nn.Module):
and
self
.
weight
.
shape
[
0
]
==
256
and
self
.
weight
.
shape
[
0
]
==
256
and
_device_sm
>=
90
and
_device_sm
>=
90
):
):
logits
=
dsv3_router_gemm
(
hidden_states
,
self
.
weight
).
to
(
# router gemm output float32
hidden_states
.
dtype
logits
=
dsv3_router_gemm
(
hidden_states
,
self
.
weight
)
)
else
:
else
:
logits
=
F
.
linear
(
hidden_states
,
self
.
weight
,
None
)
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