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
8de7a1ce
Commit
8de7a1ce
authored
Apr 25, 2025
by
yuguo
Browse files
Merge branch 'main' of
http://10.6.10.68/dcutoolkit/deeplearing/TransformerEngine
parents
caf2fbf2
daa15293
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
transformer_engine/pytorch/module/_common.py
transformer_engine/pytorch/module/_common.py
+3
-2
No files found.
transformer_engine/pytorch/module/_common.py
View file @
8de7a1ce
...
@@ -88,8 +88,9 @@ def apply_normalization(
...
@@ -88,8 +88,9 @@ def apply_normalization(
normalization_func
=
_get_normalization_func
(
normalization
,
True
)
normalization_func
=
_get_normalization_func
(
normalization
,
True
)
inputs
=
(
inputmat
,
ln_weight
)
if
ln_bias
is
None
else
(
inputmat
,
ln_weight
,
ln_bias
)
inputs
=
(
inputmat
,
ln_weight
)
if
ln_bias
is
None
else
(
inputmat
,
ln_weight
,
ln_bias
)
if
enable_lightop
and
(
ln_bias
is
None
):
if
enable_lightop
and
(
ln_bias
is
None
)
and
normalization
==
"RMSNorm"
:
return
rmsnorm_forward
(
inputmat
,
ln_weight
,
ln_out
,
eps
,
True
)
out
,
rsigma
=
rmsnorm_forward
(
inputmat
,
ln_weight
,
ln_out
,
eps
,
True
)
return
out
,
None
,
rsigma
else
:
else
:
return
normalization_func
(
return
normalization_func
(
*
inputs
,
*
inputs
,
...
...
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