CPU-ready text-only quantization for the
Qwen3.5 CPU engine. Native Q4 uses the custom
H128/Q4-G32-DOT4 .q35h format with nonlinear four-bit codes,
calibrated H128 projections and a rotated tied embedding/output head.
Download the v0.4.0 engine release or build a newer engine, then download this repository's files into one model directory.
./qwen35_cpu_server --model-dir /path/to/downloaded-model --threads 8
Use qwen35_cpu_server.exe on Windows. The native engine reads .q35h
directly and serves OpenAI-compatible Chat Completions and Anthropic Messages.
It runs with the packed weights and tokenizer. The
engine README provides pinned download
commands and checksum verification.
The Q4 tensors use the IQ4_NL codebook, FP16 scales over groups of 32 and signed Hadamard transforms over 128 channels. This includes the tied embedding/output head. The recurrent gates and selected attention projections use packed Q8 in their identity basis. Small tensors use FP32. Runtime state uses FP16 KV and FP32 recurrent state. The artifact contains text-only weights.
Offline fitting uses BF16 projection activations from 256 documents of 512 tokens each (131,072 tokens). The sample contains 96 prose, 80 dialog, 48 code and 32 documentation documents. Source dataset revisions were unavailable for this calibration snapshot. The fitting recipe uses normalized 128-channel second moments, blockwise error compensation and a joint refit of the stored scales. Covariance damping is 0.03 in the body and 0.003 in the rotated head.
The tensor payload is 466,124,032 bytes and the complete artifact is
466,156,736 bytes. The weight SHA-256 is 6553a4855f7344070e2a835cd30ff04212304e081c89658fe71b78e77164955a. See
quantization.json for provenance and
SHA256SUMS for file verification. The earlier calibrated
checkpoint remains available at its
original revision.
On December 2, 2026, the AMD Ryzen 9 9955HX3D ran all three engines sequentially with eight threads pinned to cores 0–7. Rates are median tokens/s from three runs after one warmup. Decode uses 512 input and 128 output tokens per request. B=16 measures aggregate throughput across 16 requests. Prefill uses one request. File and tensor sizes are decimal MB and describe the weight file alone.
| Engine / checkpoint | File MB | Tensor MB | Decode B=1 | Decode B=16 | Prefill 512 | Prefill 4,096 |
|---|---|---|---|---|---|---|
| ik_llama.cpp IQ4_NL + Q5_0 head | 467.68 | 456.72 | 103.2 | 369.6 | 3,371.8 | 2,906.6 |
| ik_llama.cpp IQ4_K_R4 + Q8 map | 477.09 | 466.12 | 102.8 | 377.4 | 3,731.2 | 3,187.6 |
| Native Q4 | 466.16 | 466.12 | 102.2 | 568.8 | 3,232.8 | 3,022.9 |
| ik_llama.cpp IQ4_K_R4 + IQ5_K head | 467.68 | 456.72 | 101.4 | 378.6 | 3,722.2 | 3,314.8 |
| ik_llama.cpp IQ4_NL + Q8 map | 477.09 | 466.12 | 99.8 | 374.6 | 3,371.6 | 2,886.6 |
| llama.cpp IQ4_NL + Q5_0 head | 467.68 | 456.72 | 97.6 | 424.0 | 1,438.2 | 1,446.3 |
| llama.cpp IQ4_NL + Q8 map | 477.09 | 466.12 | 96.0 | 480.3 | 1,474.3 | 1,329.7 |
| llama.cpp Unsloth Q4_K_M | 532.52 | 521.56 | 87.0 | 416.7 | 1,642.9 | 1,491.9 |
Native Q4 recorded the highest B=16 throughput. At B=1 its median was within 1.1 tokens/s of the fastest GGUF result, and their measured ranges overlapped. The Q8 map promotes the same projection roles as Native Q4. The IQ4_NL GGUFs appear twice because both engines ran the identical files.
The mixed screen covers 1,024 scored tokens in six documents. WikiText-2 covers 8,192 in 16 test windows. PPL measures prediction of the reference tokens. KL is the mean divergence from the BF16 teacher to the candidate over the full next-token distribution, in nats. Lower values are better for both.
| Scoring engine / checkpoint | Tensor MB | Mixed PPL ↓ | Mixed KL ↓ | WikiText PPL ↓ | WikiText KL ↓ |
|---|---|---|---|---|---|
| llama.cpp BF16 teacher | 1,505.78 | 5.89177 | 0 | 14.38172 | 0 |
| llama.cpp Unsloth Q4_K_M | 521.56 | 6.10838 | 0.028363 | 14.77262 | 0.034771 |
| Native Q4 | 466.12 | 6.08669 | 0.034897 | 14.79734 | 0.035432 |
| llama.cpp IQ4_NL + Q8 map | 466.12 | 6.10998 | 0.044971 | 15.61687 | 0.055936 |
| ik_llama.cpp IQ4_NL + Q8 map | 466.12 | 6.11301 | 0.044655 | 15.62530 | 0.056218 |
| ik_llama.cpp IQ4_K_R4 + Q8 map | 466.12 | 6.17915 | 0.034593 | 15.15603 | 0.042369 |
| ik_llama.cpp IQ4_NL + Q5_0 head | 456.72 | 6.14955 | 0.062789 | 15.66098 | 0.074538 |
| llama.cpp IQ4_NL + Q5_0 head | 456.72 | 6.14993 | 0.062690 | 15.66872 | 0.074537 |
| ik_llama.cpp IQ4_K_R4 + IQ5_K head | 456.72 | 6.18186 | 0.051497 | 15.69717 | 0.061386 |
Native Q4 had the lowest mixed PPL among these quantizations. Unsloth Q4_K_M had the lowest mixed KL. The four custom GGUF exports used BF16 source weights and no importance matrix. The mixed screen was also used for checkpoint selection. Methods, run ranges and evidence
Derived from Qwen/Qwen3.5-0.8B under Apache-2.0. The model license is included as LICENSE, with modification attribution in NOTICE. The CPU engine is separately MIT-licensed.
Qwen/Qwen3.5-0.8B