-
Notifications
You must be signed in to change notification settings - Fork 314
Test PARQ with torchao activation quantization #2370
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/2370
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 1 PendingAs of commit ec68ca9 with merge base 5bdc25d ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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 great, thanks!
self._dequantize = dequantize_affine | ||
elif zero_point_domain == ZeroPointDomain.NONE: | ||
self._quantize = quantize_affine_no_zero_point | ||
self._dequantize = dequantize_affine_no_zero_point |
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.
These changes aren't required to make the test pass right, just for clean ups? (we can keep them in this PR, just wanted to ask for my understanding)
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.
Yes, this is just for simplification!
Added a test case to show numerical equivalency between quantizing:
UnifTorchaoQuantizer
+ int8 activations with torchao'sFakeQuantizeConfig
Int8DynamicActivationIntxWeightConfig
Next steps with target
EmbeddingQuantizer
andPackedLinearInt8DynamicActivationIntxWeightLayout
.