fix bug of gguf alg ext#1796
Merged
Merged
Conversation
Signed-off-by: n1ck-guo <heng.guo@intel.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a GGUF algorithm-extension initialization bug by ensuring format-driven overrides (e.g., gguf:q2_k_s forcing data_type=int_asym_dq) are applied before constructing the quantizer, so the correct wrapper implementation is selected.
Changes:
- Reordered the
post_init()pipeline to create the quantizer after_resolve_formats()and introduced a dedicated_create_quantizer()phase. - Synced format-driven attribute overrides back into
quantize_configprior to quantizer creation (instead of mutating an already-created quantizer). - Added a CUDA regression test asserting
enable_alg_ext + gguf:q2_k_sselectsdq_wrapper_block(DQ wrapper path).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
auto_round/compressors_new/base.py |
Moves quantizer construction to a new phase after format resolution; adds inplace defaulting in hardware setup; updates pipeline documentation. |
test/test_cuda/algorithms/test_alg_ext.py |
Adds a regression test to ensure GGUF format overrides lead to selecting dq_wrapper_block when alg-ext is enabled. |
wenhuach21
reviewed
May 11, 2026
wenhuach21
reviewed
May 11, 2026
Contributor
Author
|
/azp run Unit-Test-CUDA-AutoRound |
|
Azure Pipelines successfully started running 1 pipeline(s). |
wenhuach21
reviewed
May 11, 2026
wenhuach21
reviewed
May 12, 2026
wenhuach21
approved these changes
May 12, 2026
lvliang-intel
pushed a commit
that referenced
this pull request
May 12, 2026
Signed-off-by: n1ck-guo <heng.guo@intel.com>
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
Please briefly describe your main changes, the motivation.
Type of Change
Bug fix
Related Issues
Fixes or relates to #
Checklist Before Submitting
/azp run Unit-Test-CUDA-AutoRound.