sh111111111111111/Qwen3-4B-Instruct-2507-BitClass3-GGUF
Qwen3-4B-Instruct-2507 — BitClass3 Mixed-Precision GGUF
Mixed-precision GGUF quantizations of Qwen3-4B-Instruct-2507. BitClass3 keeps the Hessian-sensitivity front-end to set each level's bit budget, but hands the per-tensor allocation to an error-minimizing solver (built on llama.cpp's --target-bpw) that assigns a quant type to every tensor to minimize imatrix-weighted quantization error at the target size.
Available Quantizations
KLD vs the BF16 source is the primary quality metric (mean and the robust 99.9th percentile); wikitext-2 perplexity is reported alongside.
Recommended: Q4KM — KL-mean 0.049 at 2.33 GB; within 3.3% of Q8_0 wiki PPL at 54% of the size.
How It Compares
Same harness, same metrics, against our previous BitClass2 release of this model (at each ladder level; BitClass3 levels carry slightly higher BPW by design of the recipe targets):
At matched Q4KM BPW, BitClass3 cuts KL-mean by ~23% and improves wiki PPL — the error-minimizing allocation spending the same bit budget where it reduces divergence most.
Key Sensitivity Findings (Qwen3-4B-Instruct-2507)
- blk.34 (late layer) is most sensitive — the opposite end of the network from Qwen3.5-9B (blk.3). Model-specific Hessian data matters; you cannot assume the same layers are critical across models.
- Attention K projections are consistently ≥ V in sensitivity.
- The sensitivity profile sets each level's bit budget; the per-tensor split inside that budget is solved by the error-minimizing allocator.
How It Works
- Hessian sensitivity — compute H_diag = mean(X²) per layer on calibration data; this sets each level's overall bit budget.
- Error-minimizing per-tensor allocation — an imatrix-weighted solver (llama.cpp
--target-bpw) assigns a quant type to every tensor to minimize total quantization error at the target BPW. - imatrix — importance matrix computed over wikitext guides the per-tensor error.
- GGUF export — produced with stock
llama-quantize.
Usage
hf download sh111111111111111/Qwen3-4B-Instruct-2507-BitClass3-GGUF \
Qwen3-4B-Instruct-2507-Q4_K_M.gguf --local-dir .
llama-cli -m Qwen3-4B-Instruct-2507-Q4_K_M.gguf -cnv
llama-server -m Qwen3-4B-Instruct-2507-Q4_K_M.gguf --port 8080Benchmark Details
NVIDIA GB10 ATOM (128 GB unified memory, aarch64). llama.cpp with --target-bpw (PR #15550). KLD via llama-perplexity --kl-divergence against BF16-source logits over wikitext-2 (mean / median / 99.9th percentile reported; the single-token KL-max is omitted as an unstable order statistic). wikitext-2 PPL via llama-perplexity -c 2048. Downstream (HellaSwag / WinoGrande / ARC / MMLU) tracked internally.
Disclaimer
Independent project. Not affiliated with or endorsed by Qwen, Unsloth, ByteShape, Bartowski, or llama.cpp. Competitor figures are from our own benchmark harness and may differ from those projects' self-reported numbers; competitor file sizes reflect the revision we tested and may since have changed.
License
Apache 2.0, inherited from Qwen3-4B-Instruct-2507.
