Q4_K_M at standard Q4_K_M size: KLD to the Q8 teacher 0.02074 on code/math and 0.04965 on general (public Q4_K_M baseline 0.02700 / 0.05423, −23% / −8%; public IQ4_XS baseline 0.03556 / 0.06993, −42% / −29%). Wikitext-2 PPL 8.0845 vs 8.1139 and 8.2195. GSM8K n=200: 89.0% vs 90.5% and 87.5%. MATH-500: 35.4% vs 38.8% and 30.2%.
A drop-in Q4_K_M for Qwen 3.6 35B-A3B: identical file size, identical kernel path, identical loader. No retraining, no custom runtime, standard llama.cpp Q4_K_M kernel. Method: fraQtl per-tensor protection policy + calibration budget set at the measured optimum on the packet.
💻 This is the local / consumer ship. Runs on Apple Silicon (M-series) and consumer GPUs with stock
llama.cpp: no patched runtime, no special flags. A separate MTP runtime variant targets datacenter speculative decoding (its 1.49× decode speedup is A100-80GB only and shows no speedup on consumer hardware); for local use, this is the build.
huggingface-cli download fraQtl/Qwen3.6-35B-A3B-Hi-Fi-GGUF \
Qwen3.6-35B-A3B-fraQtl-Q4_K_M.gguf --local-dir .
./llama-cli -m Qwen3.6-35B-A3B-fraQtl-Q4_K_M.gguf \
-p "Write a Python function that returns the nth Fibonacci number." \
-n 256 --temp 0.2
Or via llama-server for an OpenAI-compatible local API:
llama-server -hf fraQtl/Qwen3.6-35B-A3B-Hi-Fi-GGUF:Q4_K_M
Measured on Apple M4 / 24 GB unified memory, CPU mode (-ngl 0):
llama-server -m Qwen3.6-35B-A3B-fraQtl-Q4_K_M.gguf -ngl 0 -c 2048
Observed on this hardware:
The ~20 GB file fits in 24 GB RAM in CPU mode, and because this is an A3B MoE (~3 B active params per token), CPU decode is usable.
Full Metal offload is not measured for this card. On Apple M4 / 24 GB, both -ngl 99 and -ngl 28 fail with a Metal out-of-memory error (kIOGPUCommandBufferCallbackErrorOutOfMemory): the ~20 GB GGUF exceeds the practical ~16.8 GB Metal allocation ceiling on a 24 GB machine. Use CPU mode (-ngl 0) on 24 GB Apple Silicon.
32 GB+ Apple Silicon: full Metal offload (-ngl 99) is not yet measured by us; no hardware receipt is published for it.
Provenance note: the Apple Silicon receipt was produced on the Hi-Fi MTP-runtime GGUF, which shares the same main-model quantization as this file. A receipt on the non-MTP Hi-Fi file itself is pending.
Works in any standard llama.cpp consumer:
Same Q4_K_M file size, same llama.cpp kernel path, measured against two public Q4-class quants of the same base model. All five metrics run on the same eval harness against the same baselines.
| Metric | fraQtl Hi-Fi (this build) | Public Q4_K_M baseline | Public IQ4_XS baseline |
|---|---|---|---|
| KLD vs Q8, code/math ↓ | 0.02074 | 0.02700 | 0.03556 |
| KLD vs Q8, general ↓ | 0.04965 | 0.05423 | 0.06993 |
| Wikitext-2 PPL ↓ | 8.0845 | 8.1139 | 8.2195 |
| GSM8K accuracy ↑ | 89.0% | 90.5% | 87.5% |
| MATH-500 accuracy ↑ | 35.4% | 38.8% | 30.2% |
KLD code/math: −23% vs Public Q4_K_M, −42% vs Public IQ4_XS. KLD general: −8% vs Public Q4_K_M, −29% vs Public IQ4_XS. GSM8K: −1.5 pp vs Public Q4_K_M (n=200). MATH-500: −3.4 pp vs Public Q4_K_M, +5.2 pp vs Public IQ4_XS (n=500). The 95% confidence interval at these sample sizes is ±4.2 pp.
Reproducibility: three independent eval runs reproduced KLD to five decimal places (drift 0.00000). Build + eval pipeline is deterministic.
A Q4_K_M of Qwen 3.6 35B-A3B (MoE, 256 routed experts), built with two changes vs a stock Q4_K_M:
The .gguf is a standard Q4_K_M; any llama.cpp build that runs Q4_K_M runs this. No patched runtime, no special flags.
Qwen 3.6 chat template, with optional <think> pre-fill for chain-of-thought:
<|im_start|>system
{system_prompt}<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>assistant
<think>
The included imatrix.dat makes the calibration step independently reproducible.
| Family | Quant types | Why |
|---|---|---|
| Router / gate (40) | F32 | Top damage tensors by score signal |
| Linear attention QKV & gate (60) | Q8_0 | Top-4 damage tensors in the model |
| Standard attention Q/K/V (30) | Q8_0 | Input projection protection |
| Routed-expert up / gate / down (120) | mostly Q4_K with Q5/Q6/Q8 outliers | Routing-frequency-weighted mix |
| Shared / dense FFN (120) | Q8_0 / Q5_K / Q6_K | Higher bits than routed experts |
| Output head (1) | Q6_K | Output projection |
| Embed (1) | Q4_K | Input embedding |
| Norms / SSM coefficients | F32 | Untouched |
llama-cpp-python. Other CUDA archs are not separately verified.| File | Size | Purpose |
|---|---|---|
Qwen3.6-35B-A3B-fraQtl-Q4_K_M.gguf |
21.44 GB | The quantized model |
imatrix_fraQtl_256k.dat |
192 MB | Importance matrix at the 256K-token budget; makes the calibration step independently reproducible |
Apache 2.0; inherits the base model's license.
@misc{fraqtl-qwen36-35b-a3b-q4km,
author = {fraQtl},
title = {Qwen 3.6 35B-A3B (Q4_K_M), fraQtl calibration},
year = {2026},
url = {https://huggingface.co/fraQtl/Qwen3.6-35B-A3B-Hi-Fi-GGUF}
}
| Field | Value |
|---|---|
| Base model | Qwen 3.6 35B-A3B Instruct |
| BF16 source revision (pinned) | d98fa7286daa6544d050929df95e436741ee739b |
| llama.cpp commit | 1e5ad35d560b90a8ac447d149c8f8447ae1fcaa0 |
| Recipe (per-tensor policy) sha-256 | 312f548b596b91265f408933f2cd5b0b9270e628fed63614cf3a0eff2873faa9 |
| Calibration packet sha-256 | 9bec84a28dcb0c940047e6084561a00857fd610b8a1e148cc38e27929e0a7e02 |
| Imatrix sha-256 | 5872a78f610050d2fccdce0c13ae450a472647c9fb297fe0a7ccaf2dfa945460 |
| GGUF sha-256 | 1860793d452610a2e4631a176c7f154bf6b36aba932b80b81fab17bb17e0e174 |
| Code/math eval slice sha-256 | cce68602… |
| General eval slice sha-256 | b10a79caf2c17cc10cd1edcae44d4655278baf5b09b6a867b4d3ade2f996b276 |
| Eval hardware | NVIDIA H100 (Modal) |
| Eval context | 4096 |
| Reproducibility drift | 0.00000 (KLD identical to 5 decimal places across 3 independent eval runs) |
By fraQtl. Built on the open-source work of the Qwen team and the llama.cpp community.
| Tier | Job | Example |
|---|---|---|
| Hi-Fi | maximum fidelity at standard 4-bit size | this repo's Q4_K_M |
| Hi-Fi Phone | fits phone/laptop RAM, fidelity-first | E2B Phone, 2.86 GB |
| SmartEdge | smallest footprint that survives | E2B IQ3XXS, 2.45 GB |
Serving lane, KV-cache compression sidecars for vLLM: nine concurrent ~128K-context users on a single A100 (134.1 tok/s aggregate, 9/9 per-user retrieval checks, receipt 2026-08-14): fraQtl/qwen3-4b-instruct-2507-kv-sidecars. On-device lane: Gemma-4-E2B Hi-Fi. Org page: huggingface.co/fraQtl.