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
b67fe451
Unverified
Commit
b67fe451
authored
Jan 27, 2023
by
Kirthi Shankar Sivamani
Committed by
GitHub
Jan 27, 2023
Browse files
Add docs for FP8 calibration (#61)
Signed-off-by:
Kirthi Shankar Sivamani
<
ksivamani@nvidia.com
>
parent
677de00d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
transformer_engine/pytorch/fp8.py
transformer_engine/pytorch/fp8.py
+5
-0
No files found.
transformer_engine/pytorch/fp8.py
View file @
b67fe451
...
@@ -224,6 +224,11 @@ def fp8_autocast(
...
@@ -224,6 +224,11 @@ def fp8_autocast(
----------
----------
enabled: bool, default = `False`
enabled: bool, default = `False`
whether or not to enable fp8
whether or not to enable fp8
calibrating: bool, default = `False`
calibration mode allows collecting statistics such as amax and scale
data of fp8 tensors even when executing without fp8 enabled. This is
useful for saving an inference ready fp8 checkpoint while training
using a higher precision.
fp8_recipe: recipe.DelayedScaling, default = `None`
fp8_recipe: recipe.DelayedScaling, default = `None`
recipe used for FP8 training.
recipe used for FP8 training.
fp8_group: torch._C._distributed_c10d.ProcessGroup, default = `None`
fp8_group: torch._C._distributed_c10d.ProcessGroup, default = `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