Skip to content

Commit

Permalink
commit change
Browse files Browse the repository at this point in the history
  • Loading branch information
j316chuck committed Jan 26, 2024
1 parent 322e90f commit 1a0685f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer/core/precision.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def get_precision_context(precision: Union[str, Precision],
}
fp8_recipe = DelayedScaling(**precision_config)
with te.fp8_autocast(enabled=True, fp8_recipe=fp8_recipe):
yield
with te.onnx_export(enabled=True):
yield
else:
if te_installed:
raise RuntimeError('AMP_FP8 precision is used but current device does not support it.')
Expand Down

0 comments on commit 1a0685f

Please sign in to comment.