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
OpenDAS
TransformerEngine
Commits
650cb815
Commit
650cb815
authored
Sep 28, 2025
by
dongchl
Browse files
bug fix
parent
6bdc5d69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
transformer_engine/pytorch/module/layernorm_linear.py
transformer_engine/pytorch/module/layernorm_linear.py
+1
-1
No files found.
transformer_engine/pytorch/module/layernorm_linear.py
View file @
650cb815
...
@@ -975,7 +975,7 @@ class _LayerNormLinear(torch.autograd.Function):
...
@@ -975,7 +975,7 @@ class _LayerNormLinear(torch.autograd.Function):
)
)
dgrad
=
dgrad
.
reshape
(
inputmat
.
size
())
dgrad
=
dgrad
.
reshape
(
inputmat
.
size
())
elif
ctx
.
normalization
==
"RMSNorm"
:
elif
ctx
.
normalization
==
"RMSNorm"
:
if
enable_lightop
and
(
rsigma
is
torch
.
bfloat16
or
rsigma
is
torch
.
float16
):
if
enable_lightop
and
(
rsigma
.
dtype
is
torch
.
bfloat16
or
rsigma
.
dtype
is
torch
.
float16
):
dgrad
,
dgamma
=
rmsnorm_backward
(
dgrad
,
inputmat
,
rsigma
,
ln_weight
)
dgrad
,
dgamma
=
rmsnorm_backward
(
dgrad
,
inputmat
,
rsigma
,
ln_weight
)
else
:
else
:
...
...
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