Skip to content
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

Add hardware check to fp8 quant #1314

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Add hardware check to fp8 quant #1314

wants to merge 1 commit into from

Conversation

jainapurva
Copy link
Contributor

Add hardware check to ensure fp8 quantization only attempts runs on compatible hardware.

Issue: #1188

Copy link

pytorch-bot bot commented Nov 19, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/1314

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 4 New Failures

As of commit 88b6ba1 with merge base b714026 (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 19, 2024
@jainapurva jainapurva added the topic: bug fix Use this tag for PRs that fix bugs label Nov 19, 2024
@@ -939,6 +940,9 @@ def float8_dynamic_activation_float8_weight(
mm_config (Float8MMConfig): Configuration for the matrix multiplication. Default uses fast accumulation.

"""
assert (
is_cuda_8_9
), "Float8 dynamic activation quantization is only supported on CUDA 8.9 and above"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should also be supported on AMD. We should probably update this check.

cc @jeffdaily

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: bug fix Use this tag for PRs that fix bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants