Skip to content

Commit

Permalink
Update recipe documentation (#465)
Browse files Browse the repository at this point in the history
Fix docs

Signed-off-by: Kirthi Shankar Sivamani <[email protected]>
  • Loading branch information
ksivaman authored Oct 10, 2023
1 parent 92d1ba0 commit 29b4670
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions transformer_engine/common/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,6 @@ def scaling_factor_compute(amax: Tensor,
FP8_MAX = maximum_representable_value(fp8_format)
new_scaling_factor = (FP8_MAX / amax) / (2 ^ margin)
* The scaling factor should always be a power of 2 to not introduce numerical
error during the conversion from FP8 to higher precision format.
"""

margin: int = 0
Expand Down

0 comments on commit 29b4670

Please sign in to comment.