* Blog: 509 tokens a second of prompt - the Hadamard route ships (#189)
Why prompts are a matrix-unit problem, the rotation (x.w = (Hx).(Hw), exact on the 8-bit
path: KLD 0.031 vs 0.029), the numbers (pp512 509, KLD 0.055 vs 0.084 unrotated), the tool
and serve's stamp routing, the delta-net prefill kernels, and what the route is for (decode
11 tok/s; Vulkan + DFlash2 for long answers). Numbers from docs/lean.md and docs/serve.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Blog: slug without underscore (site rule)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---------
Co-authored-by: bong-water-water-bong <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Makes the Hadamard W4A4 prompt-processing path a supported route (owner's call: not experimental).
What changes
third_party/llama.cpp-rocmfpx→d572668(ggml-cuda (gfx1151): Hadamard-rotated W4A4 for Q4_0, chunked delta-net prefill, tiled transposed concat ROCmFPX#1): per-tensor Q4_0 W4A4 on the IU4 kernel, Hadamard-rotating activation quantizers (MMQ, MMVQ, W4A4), a chunked delta-net prefill kernel and a tiled transposed concat. test-backend-ops -b ROCm0: GATED_DELTA_NET 42/42, CONCAT 129/129, every Q4_0 MUL_MAT case (the 14q4_0_rocmi4failures are that type's lossy W4A4 path, unchanged).tools/hadamard_q4_0.py: rotates the attention/FFN/delta-net alpha-beta projections of a Q8_0/BF16 source (and the imatrix), quantizes them to Q4_0 and every other matmul weight to another type, stampsonebit.hadamard_q4_0 = 32, and checks that every Q4_0 tensor is rotated (deletes the file otherwise).1bit servereads the stamp (gguf_intinapp/gguf_meta.h):--device auto→ lean ROCm route withGGML_Q4_0_HADAMARD=1andGGML_W4A4_TENSORS=all(a value set in the environment wins); any other device, or--laya, is refused. Unstamped files are unaffected.tests/hadamard_route.sh(ctesthadamard_route, no GPU): refusal on vulkan, auto → ROCm0 with both variables, unstamped → Vulkan0 with neither. 6/6; smoke_serve PASS.docs/lean.md(the route, how to make a file, numbers); an update note on the 2026-09-28 blog post.Measured (Strix Halo, Qwen3.8-27B, file made by the tool from Unsloth's Q8_0 + imatrix)
1bit serve -m Qwen3.8-27B-Q4_0-H32.gguf(no device flag): picks the ROCm route, answers "Paris", 1,838-token prompt at 440-470 tok/s; decode 11.4 tok/s (decode-heavy work stays on Vulkan +--dflash).The file is published as 1bit-MONSTER/Qwen3.8-27B-Q4_0-H32-GGUF (Apache-2.0, as the base model).
🤖 Generated with Claude Code