Skip to content

[not for land] towards QAT with exact forward pass #2466

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

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

Conversation

vkuzo
Copy link
Contributor

@vkuzo vkuzo commented Jul 1, 2025

Summary:

Exploration for QAT with exact (not emulated) forward pass, WIP and not ready for review.

Test Plan:

(pytorch) [[email protected] ~/local/ao (20250701_qat_exact_fwd_pass)]$ python torchao/prototype/qat_exact/main.py 
# SQNR between high precision and emulated quantization
sqnr_hp_qref tensor(23.3884, device='cuda:0')
# SQNR between high precision and real quantization (the new "kernel" in this PR)
sqnr_hp_q tensor(23.3884, device='cuda:0')
# SQNR between emulated quantization and real quantization (the new "kernel" in this PR)
sqnr_qref_q tensor(136.4019, device='cuda:0')

Reviewers:

Subscribers:

Tasks:

Tags:

Summary:

Exploration for QAT with exact (not emulated) forward pass, WIP and not
ready for review.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
Copy link

pytorch-bot bot commented Jul 1, 2025

🔗 Helpful Links

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

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

❌ 6 New Failures

As of commit ff8cb2e with merge base c2a6568 (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 Jul 1, 2025
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants