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
f9a026ad
"...en/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "1a6a647e06592ba1157f620ec28efaf3c8b4509e"
Commit
f9a026ad
authored
Oct 27, 2025
by
maxiao
Browse files
fix fused_add_rms_norm bug
parent
b80ae5e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
python/sglang/srt/layers/layernorm.py
python/sglang/srt/layers/layernorm.py
+3
-2
No files found.
python/sglang/srt/layers/layernorm.py
View file @
f9a026ad
...
@@ -175,7 +175,7 @@ class RMSNorm(CustomOp):
...
@@ -175,7 +175,7 @@ class RMSNorm(CustomOp):
self
.
weight
.
data
,
self
.
weight
.
data
,
self
.
variance_epsilon
,
self
.
variance_epsilon
,
)
)
return
output
,
residual
_out
return
x
,
residual
except
TypeError
:
except
TypeError
:
fused_add_rms_norm
(
fused_add_rms_norm
(
output
,
output
,
...
@@ -185,7 +185,8 @@ class RMSNorm(CustomOp):
...
@@ -185,7 +185,8 @@ class RMSNorm(CustomOp):
self
.
weight
.
data
,
self
.
weight
.
data
,
self
.
variance_epsilon
,
self
.
variance_epsilon
,
)
)
return
x
,
residual
return
output
,
residual_out
out
=
torch
.
empty_like
(
x
)
out
=
torch
.
empty_like
(
x
)
rms_norm
(
out
,
x
,
self
.
weight
.
data
,
self
.
variance_epsilon
)
rms_norm
(
out
,
x
,
self
.
weight
.
data
,
self
.
variance_epsilon
)
...
...
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