Conversation
…nd configuration conversion Signed-off-by: Xin He <xin3.he@intel.com>
wenhuach21
approved these changes
Jul 3, 2026
wenhuach21
left a comment
Contributor
There was a problem hiding this comment.
I am not familiar with this part, and this change does not affect the major logic. So looks good to me
…hods Signed-off-by: Xin He <xin3.he@intel.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for using AutoScheme in model-free quantization by resolving mixed-bit per-layer choices via a brief delta-loss scoring phase, then performing shard-by-shard packing without keeping the full model resident. This also updates auto-routing logic, documentation, and CPU tests.
Changes:
- Implement AutoScheme detection/validation + conversion of generated
layer_configinto model-free inputs (two-phase selection → packing). - Extend
is_model_free_routeto route AutoScheme runs based on option “family” (INT vs MXFP) and export format. - Add docs and tests covering AutoScheme + model-free workflows and validation constraints.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| auto_round/compressors/model_free.py | Adds AutoScheme validation/conversion and a two-phase selection→packing workflow in model-free mode. |
| auto_round/utils/model.py | Updates model-free auto-routing to recognize and validate AutoScheme + format constraints. |
| docs/step_by_step.md | Documents AutoScheme + model-free usage, constraints, and examples. |
| docs/step_by_step_CN.md | Adds partial CN documentation updates for AutoScheme + model-free. |
| test/test_cpu/quantization/test_model_free.py | Adds unit + e2e tests for AutoScheme support in model-free mode. |
Contributor
|
/azp run Unit-Test-CUDA-AutoRound |
|
Azure Pipelines successfully started running 1 pipeline(s). |
…-free quantization Signed-off-by: Xin He <xin3.he@intel.com>
…iled assertions Signed-off-by: Xin He <xin3.he@intel.com>
Signed-off-by: Xin He <xin3.he@intel.com>
Contributor
|
/azp run Unit-Test-CUDA-AutoRound |
|
Azure Pipelines successfully started running 1 pipeline(s). |
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.
Description
This pull request introduces comprehensive support for using
AutoScheme(automatic mixed-bit quantization selection) in model-free mode, enabling a two-phase workflow: first, a brief model load for delta-loss scoring to select per-layer bit-widths, followed by efficient shard-by-shard packing without keeping the model in memory. The changes include both implementation and documentation updates, as well as new tests to ensure correct behavior and constraints.Key changes:
Model-Free + AutoScheme Integration
_looks_like_auto_scheme,_validate_auto_scheme_options,_convert_auto_scheme_layer_config) to detect, validate, and processAutoSchemeobjects for model-free quantization, ensuring only supported option families (INT or MXFP) are allowed and not mixed. (auto_round/compressors/model_free.pyauto_round/compressors/model_free.pyR1488-R1598)auto_round/compressors/model_free.py[1] [2] [3] [4]Utilities and Routing
is_model_free_routeto recognize and correctly routeAutoSchemeobjects, including family validation and format restrictions. (auto_round/utils/model.py[1] [2]Documentation
AutoSchemewith model-free mode, including constraints and supported option families, in both English and Chinese guides. (docs/step_by_step.md[1] [2] [3];docs/step_by_step_CN.md[4] [5]Testing
test/test_cpu/quantization/test_model_free.pytest/test_cpu/quantization/test_model_free.pyR1310-R1391)These changes ensure that users can now perform automatic mixed-bit quantization in model-free mode with robust validation, clear documentation, and strong test coverage.
Type of Change
Enhancement
Related Issues
Fixes or relates to #910
Checklist Before Submitting
/azp run Unit-Test-CUDA-AutoRound.