Switch Qwen3.5-0.8B int4 quant to k_quant_mixed (block_size=32)#494
Open
xiaofeihan1 wants to merge 1 commit into
Open
Switch Qwen3.5-0.8B int4 quant to k_quant_mixed (block_size=32)#494xiaofeihan1 wants to merge 1 commit into
xiaofeihan1 wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates the int4 quantization configuration for the Qwen3.5-0.8B text model to use a mixed quantization algorithm and explicitly sets a quantization block size.
Changes:
- Switch
int4_algo_configfromk_quant_lineartok_quant_mixedfor CUDA and WebGPU builders - Add
int4_block_size: 32to both backend configs
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| Qwen-Qwen3.5-0.8B/builtin/webgpu/text.json | Switches int4 algo config to mixed and adds explicit block size for WebGPU |
| Qwen-Qwen3.5-0.8B/builtin/cuda/text.json | Switches int4 algo config to mixed and adds explicit block size for CUDA |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
Author
|
@apsonawane Added 8bit quantized in lm_head for Qwen3.5 0.8B. PTAL, thanks! |
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
Update the int4 quantization configuration for Qwen3.5-0.8B in both the CUDA and WebGPU recipes:
int4_algo_config:k_quant_linear→k_quant_mixedint4_block_size: add32Files changed
Qwen-Qwen3.5-0.8B/builtin/cuda/text.jsonQwen-Qwen3.5-0.8B/builtin/webgpu/text.jsonMotivation
k_quant_mixedwith a 32-block size produces better accuracy/quality for the Qwen3.5-0.8B text model than the previousk_quant_linearsetting, while keeping the int4 precision and accuracy level unchanged.