-
Notifications
You must be signed in to change notification settings - Fork 649
Arm backend: Add support for QAT+per-channel combo #13511
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
Arm backend: Add support for QAT+per-channel combo #13511
Conversation
Fixes a bug where an unsupported observer was used for QAT combined with per-channel quantization. Signed-off-by: Oscar Andersson <oscar.andersson@arm.com> Change-Id: I1691d5d22b67c3c281e91d36a16137092933b927
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/13511
Note: Links to docs will display an error until the docs builds have been completed. ❌ 10 New Failures, 1 Cancelled Job, 4 Unrelated FailuresAs of commit 8d3c2e7 with merge base 85e5b6e ( NEW FAILURES - The following jobs have failed:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
# Set plain fake-quant with true min/max | ||
weight_observer_or_fake_quant_ctr = FakeQuantize | ||
if is_per_channel: | ||
weight_observer_or_fake_quant_ctr = PerChannelMinMaxObserver |
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.
Don't we need a FakeQuantize variant of this observer with qat?
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, you're right. Will look into a fix and proper testing of QAT.
Fixes a bug where an unsupported observer was used for QAT combined with per-channel quantization.
cc @digantdesai @freddan80 @per @zingo