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

Fix Int4WeightEmbeddingQATQuantizer.convert path #2024

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

Conversation

andrewor14
Copy link
Contributor

@andrewor14 andrewor14 commented Apr 4, 2025

Summary: Fixes the issue where Int4WeightEmbeddingQATQuantizer's convert path assigned the scales and zero points to the wrong attributes ("scales" and "zeros" instead of "scale" and "zero point"), and also ensures the precisions are correctly set.

Test Plan:
python test/quantization/test_qat.py -k test_qat_4w_embedding

Copy link

pytorch-bot bot commented Apr 4, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 270a859 with merge base 5a78b70 (image):
💚 Looks good so far! There are no failures yet. 💚

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 Apr 4, 2025
@andrewor14 andrewor14 added the topic: bug fix Use this tag for PRs that fix bugs label Apr 4, 2025
**Summary:** Fixes the issue where
`Int4WeightEmbeddingQATQuantizer`'s convert path assigned the
scales and zero points to the wrong attributes ("scales" and
"zeros" instead of "scale" and "zero point"), and also ensures
the precisions are correctly set.

**Test Plan:**
python test/quantization/test_qat.py -k test_qat_4w_embedding
@facebook-github-bot
Copy link
Contributor

@andrewor14 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

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.

3 participants