Remove quant_mode#438
Open
apsonawane wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Removes the quant_mode extra option from Qwen3.5 model text.json configs across CPU, CUDA, and WebGPU backends, and makes the int4 algorithm explicit for the 0.8B variants.
Changes:
- Remove
quant_modefromextra_optionsin all affectedtext.jsonfiles (0.8B, 2B, 4B, 9B, 27B). - Add
"int4_algo_config": "k_quant_linear"to all three 0.8B backend configs. - Clean up trailing commas after option removal.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| Qwen-Qwen3.5-9B/builtin/webgpu/text.json | Drop quant_mode: int4 from extra_options. |
| Qwen-Qwen3.5-9B/builtin/cuda/text.json | Drop quant_mode: int4 from extra_options. |
| Qwen-Qwen3.5-9B/builtin/cpu_and_mobile/text.json | Drop quant_mode: int4 from extra_options. |
| Qwen-Qwen3.5-4B/builtin/webgpu/text.json | Drop quant_mode: int4 from extra_options. |
| Qwen-Qwen3.5-4B/builtin/cuda/text.json | Drop quant_mode: int4 from extra_options. |
| Qwen-Qwen3.5-4B/builtin/cpu_and_mobile/text.json | Drop quant_mode: int4 from extra_options. |
| Qwen-Qwen3.5-2B/builtin/webgpu/text.json | Drop quant_mode: int4 from extra_options. |
| Qwen-Qwen3.5-2B/builtin/cpu_and_mobile/text.json | Drop quant_mode: int4 from extra_options. |
| Qwen-Qwen3.5-27B/builtin/cuda/text.json | Drop quant_mode: int4 from extra_options. |
| Qwen-Qwen3.5-0.8B/builtin/webgpu/text.json | Add int4_algo_config: k_quant_linear; drop quant_mode: default. |
| Qwen-Qwen3.5-0.8B/builtin/cuda/text.json | Add int4_algo_config: k_quant_linear; drop quant_mode: default. |
| Qwen-Qwen3.5-0.8B/builtin/cpu_and_mobile/text.json | Add int4_algo_config: k_quant_linear; drop quant_mode: default. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
This pull request updates the quantization configuration for several
text.jsonmodel files across different Qwen model sizes and hardware backends. The main change is the removal of thequant_modeoption from theextra_optionssection, and for some 0.8B models, the addition of an explicitint4_algo_configsetting.Quantization configuration updates:
quant_modeparameter from theextra_optionsin all affectedtext.jsonfiles for the 0.8B, 2B, 4B, 9B, and 27B models, across CPU, CUDA, and WebGPU backends. This simplifies the quantization settings and avoids redundancy.Algorithm configuration enhancements (0.8B models):
"int4_algo_config": "k_quant_linear"to the 0.8B model configs for CPU, CUDA, and WebGPU, making the quantization algorithm explicit.Minor cleanup:
extra_optionssections where options were removed.These changes make the quantization settings more consistent and explicit, reducing potential confusion or misconfiguration.