Repository navigation
Conversation
added 3 commits
October 30, 2026 21:02
Use GPTQModel public loading API, add Qwen2-VL image calibration and document the optional dependencies and known compatibility limits. AI-Assisted-by: OpenAI Codex
AI-Assisted-by: OpenAI Codex
AI-Assisted-by: OpenAI Codex
This branch has not been deployed
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.
PR type
PR information
Refs #10307
This PR replaces the AutoAWQ export path with GPTQModel while preserving the existing
--quant_method awqinterface.It also:
ms-swift[awq]as an optional dependency.--quant_batch_size -1behavior.Issue #10307 concerns dependency conflicts during AWQ model fine-tuning. This PR is related to that issue but does not claim to resolve the fine-tuning problem.
Current limitations
This implementation is not yet a drop-in replacement for every previous AWQ use case:
--device_mapand some custom model-loading options are not supported.Experiment results
Tests were performed on an NVIDIA GeForce RTX 4090 D with Python 3.12, PyTorch 2.11.0+cu130, Transformers 5.14.1, GPTQModel 7.3.2, and vLLM 0.25.1.
Qwen3-0.6B AWQ, GPTQ, and GPTQ v2 GPU exports completed. vLLM loaded each exported model and generated text.
The tested GPTQ v2 export was converted to GPTQ v1 during saving; the exported configuration recorded the actual format.
A nonzero LoRA adapter was merged before AWQ export.
A synthetic small Qwen2-VL model completed image calibration, AWQ export, reload, and generation with image inputs.
--quant_batch_size -1completed an AWQ GPU export.The opt-in GPU integration suite passed for AWQ, GPTQ, and GPTQ v2:
AWQ unit tests, GPTQ saved-format tests, the optional-dependency metadata test, and
pre-commit run --all-filespassed.The diagnostic image still had dependency conflicts: GPTQModel 7.3.2 requires protobuf >=7.34 and NumPy 2.2.6 on Python 3.12, while SwanLab 0.9.2 requires protobuf <7 and ms-opencompass 0.1.6 requires NumPy <2. Therefore,
pip checkdid not pass for the complete diagnostic image.AI assistance was used to develop and test this change.
Checklist