-
Notifications
You must be signed in to change notification settings - Fork 828
Parakeet: Support quantization on XNNPACK #17175
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
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/17175
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 22e744b with merge base eee5d96 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
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.
Pull request overview
This PR adds support for dynamic quantization (8da4w) on the XNNPACK backend for the Parakeet TDT speech recognition model.
Changes:
- Adds HQQ (Half-Quadratic Quantization) scale-only algorithm for 8da4w quantization configuration
- Enables XNNPACK backend to handle both dynamically quantized operations and remaining floating-point operations using dual partitioners
- Adds documentation and examples for using dynamic quantization with XNNPACK
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| examples/models/parakeet/quantize.py | Adds intx_choose_qparams_algorithm="hqq_scale_only" parameter to 8da4w quantization config for improved quantization quality with grouped quantization |
| examples/models/parakeet/export_parakeet_tdt.py | Imports and uses XnnpackDynamicallyQuantizedPartitioner alongside XnnpackPartitioner for handling dynamic quantization ops; enables quantization fusion and constant propagation |
| examples/models/parakeet/README.md | Adds documentation and example command for using 8da4w dynamic quantization with XNNPACK backend |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
model.pte is 719.2 MB
Runtime output: