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
f29efb77
Unverified
Commit
f29efb77
authored
Aug 18, 2023
by
Sudhakar Singh
Committed by
GitHub
Aug 18, 2023
Browse files
fix for amax_and_scale_update when reduce_amax=False (#386)
Signed-off-by:
Sudhakar Singh
<
sudhakars@nvidia.com
>
parent
7444946d
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/base.py
transformer_engine/pytorch/module/base.py
+1
-1
No files found.
transformer_engine/pytorch/module/base.py
View file @
f29efb77
...
...
@@ -78,7 +78,7 @@ def _prepare_backward(
# Update amax and scale; Skip all setup for global amax reduction
if
not
fp8_meta
[
"recipe"
].
reduce_amax
:
FP8GlobalStateManager
.
amax_and_scale_update
(
fp8_meta
,
False
)
amax_and_scale_update
(
fp8_meta
,
False
)
else
:
# From previous iteration
FP8GlobalStateManager
.
copy_amax_from_global_buffer
(
fp8_meta
,
forward
=
False
)
...
...
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