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
a8b91f6b
"torchvision/vscode:/vscode.git/clone" did not exist on "34810c0c8e192caf29f05d7e4a02f36a9e9ebc02"
Unverified
Commit
a8b91f6b
authored
Oct 28, 2025
by
Haichao Zhu
Committed by
GitHub
Oct 28, 2025
Browse files
improve mimax-m2 rmsnorm precision (#12186)
parent
959d1ab8
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/minimax_m2.py
python/sglang/srt/models/minimax_m2.py
+1
-1
No files found.
python/sglang/srt/models/minimax_m2.py
View file @
a8b91f6b
...
...
@@ -122,7 +122,7 @@ class MiniMaxM2RMSNormTP(nn.Module):
# Normalize and apply local weight shard
x
=
x
*
torch
.
rsqrt
(
variance
+
self
.
variance_epsilon
)
x
=
x
.
to
(
orig_dtype
)
*
self
.
weight
x
=
(
x
*
self
.
weight
)
.
to
(
orig_dtype
)
return
x
...
...
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