-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ROCm OCP FP8 Support #1677
base: main
Are you sure you want to change the base?
ROCm OCP FP8 Support #1677
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/1677
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 438f2c5 with merge base ea7910e ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
for arch in mxArchName: | ||
if arch in archName: | ||
return True | ||
return False | ||
|
||
|
||
def is_MI350(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optional: if there is any public info (spec sheet, etc) we can link to about this hardware from the docblock, I think that would be awesome! same for below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good if CI passes!
TLDR: Quick fix for ROCm device check. OCP FP8 support status update.
This pull request includes changes to improve the handling of imports, update configurations, and add new utility functions in the
torchao
library. The most important changes include removing comments to avoid circular imports, updating the configuration for supported float8 types, and adding utility functions to check for specific GPU architectures.refer to : pytorch/pytorch#146632
Configuration updates:
torchao/float8/config.py
: Updated the configuration for selecting the preferred float8 type pair to include support for OCP F8 variants in MI350/Navi4.New utility functions:
torchao/utils.py
: Added new utility functionsis_MI350
andis_Navi4
to check for specific GPU architectures.Improvements to import handling:
torchao/dtypes/uintx/marlin_qqq_tensor.py
: Removed comments to avoid circular imports in the__tensor_unflatten__
andfrom_plain
methods. [1] [2]torchao/dtypes/uintx/marlin_sparse_layout.py
: Removed comments to avoid circular imports in the__tensor_unflatten__
andfrom_plain
methods. [1] [2]