Add max_num_iterations parameter for accuracy-aware quantization#6986
Merged
A-Artemis merged 4 commits intoJul 10, 2026
Merged
Conversation
📊 Test coverage report
|
🐳 Docker image sizes
|
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
⏱️ Backend import time —
|
| Accelerator | Cumulative (s) | Self (s) |
|---|---|---|
cpu |
5.082 | 0.004 |
cuda |
4.121 | 0.003 |
xpu |
4.624 | 0.003 |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for configuring max_num_iterations for accuracy-aware quantization end-to-end (UI → backend job API → GetiTune/OpenVINO quantization), wiring it into NNCF’s advanced accuracy restorer settings and expanding test coverage across components.
Changes:
- Library: extend OV PTQ optimization to accept
max_num_iterationsand translate it into NNCFAdvancedAccuracyRestorerParametersfor accuracy-aware PTQ. - Backend: accept/propagate
max_num_iterationsthrough quantization job request/params/execution and include it in job metadata. - UI: add a new quantization dialog field and extend Playwright tests to validate the new parameter is submitted.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
library/tests/unit/backend/openvino/test_engine.py |
Adds unit assertions for max_num_iterations handling in PTQ config. |
library/src/getitune/backend/openvino/models/base.py |
Pops max_num_iterations and maps it to NNCF advanced accuracy restorer parameters. |
library/src/getitune/backend/openvino/engine.py |
Extends OVEngine.optimize() API to accept and forward max_num_iterations. |
application/ui/tests/models/models-page.ts |
Adds page object accessor for the new iterations input. |
application/ui/tests/models/model-details.spec.ts |
Extends UI test to submit/verify max_num_iterations in quantization job payload. |
application/ui/src/features/models/model-listing/model-variants/quantization-dialog/quantization-fields.component.tsx |
Adds the new “Max number of iterations” field and default parameter. |
application/ui/src/features/models/model-listing/model-variants/quantization-dialog/quantization-dialog.component.tsx |
Wires the new UI state into the quantize job request body. |
application/backend/tests/unit/execution/quantization/test_getitune_quantizer.py |
Extends unit tests to assert propagation of max_num_iterations. |
application/backend/tests/unit/api/routers/test_jobs.py |
Extends router tests to include/validate the new parameter. |
application/backend/app/models/jobs/quantization_job.py |
Adds max_num_iterations to quantization job params model. |
application/backend/app/execution/quantization/getitune_quantizer.py |
Propagates max_num_iterations through quantization execution into OVEngine. |
application/backend/app/api/schemas/jobs/quantization.py |
Adds request and metadata schema support for max_num_iterations. |
application/backend/app/api/routers/jobs.py |
Passes the new parameter when creating quantization jobs. |
dwesolow
approved these changes
Jul 7, 2026
itallix
approved these changes
Jul 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a NumberField to the quantization options for the new parameter, and accepts the new parameter on the backend.
Checklist