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
9bc9e68d
Unverified
Commit
9bc9e68d
authored
Apr 14, 2023
by
Kirthi Shankar Sivamani
Committed by
GitHub
Apr 14, 2023
Browse files
Turn off default async amax reduction (#148)
Signed-off-by:
Kirthi Shankar Sivamani
<
ksivamani@nvidia.com
>
parent
b921c0d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
transformer_engine/pytorch/module.py
transformer_engine/pytorch/module.py
+1
-1
No files found.
transformer_engine/pytorch/module.py
View file @
9bc9e68d
...
@@ -192,7 +192,7 @@ class TransformerEngineBaseModule(torch.nn.Module, ABC):
...
@@ -192,7 +192,7 @@ class TransformerEngineBaseModule(torch.nn.Module, ABC):
self
.
fp8_weight_shapes
=
[]
self
.
fp8_weight_shapes
=
[]
self
.
fp8_meta
[
"autocast_id_fwd_stack"
]
=
[]
self
.
fp8_meta
[
"autocast_id_fwd_stack"
]
=
[]
self
.
fp8_meta
[
"async_amax_reduction"
]
=
bool
(
self
.
fp8_meta
[
"async_amax_reduction"
]
=
bool
(
int
(
os
.
getenv
(
"NVTE_ASYNC_AMAX_REDUCTION"
,
"
1
"
))
int
(
os
.
getenv
(
"NVTE_ASYNC_AMAX_REDUCTION"
,
"
0
"
))
)
)
def
set_meta_tensor
(
self
,
fwd
:
bool
)
->
None
:
def
set_meta_tensor
(
self
,
fwd
:
bool
)
->
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