Skip to content

[BAD VERSION] Make module swap the main QAT flow again #989

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

Closed
wants to merge 1 commit into from

Conversation

andrewor14
Copy link
Contributor

Summary: Following #987, this commit makes module swap the main QAT flow today. We remove all tensor subclass fake quantize injection logic since this is not needed in both the long term and the short term plans for QAT. In the short term, we will continue to use a full module swap flow, and only migrate to the long term flow once there is general distributed support for tensor subclasses and when tensor subclass composability provides meaningful benefits.

Test Plan:
python test/quantization/test_qat.py

Copy link

pytorch-bot bot commented Oct 1, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 208fd4e with merge base 5a4857e (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 Oct 1, 2024
Summary: Following #987, this
commit makes module swap the main QAT flow today. We remove all
tensor subclass fake quantize injection logic since this is not
needed in both the long term and the short term plans for QAT.
In the short term, we will continue to use a full module swap
flow, and only migrate to the long term flow once there is
general distributed support for tensor subclasses and when
tensor subclass composability provides meaningful benefits.

Test Plan:
python test/quantization/test_qat.py
@andrewor14 andrewor14 force-pushed the remove_subclass_flow branch from 868ebb3 to 208fd4e Compare October 1, 2024 21:39
@andrewor14 andrewor14 requested a review from jerryzh168 October 1, 2024 21:40
@andrewor14
Copy link
Contributor Author

Closing this in favor of #1019 (exact same PR)

@andrewor14 andrewor14 closed this Oct 4, 2024
@andrewor14 andrewor14 changed the title Make module swap the main QAT flow again [BAD VERSION] Make module swap the main QAT flow again Oct 4, 2024
@andrewor14 andrewor14 deleted the remove_subclass_flow branch October 4, 2024 22:53
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