…6-35B-A3B and GLM-4.7-Flash
The tool now rotates the DeepSeek-2 MLA projections (attn_q_a, attn_q_b,
attn_kv_a_mqa, attn_kv_b, attn_k_b, attn_v_b), so GLM-4.7-Flash files take
the W4A4 route. docs/lean.md gains the measurements: Qwen3.6-35B-A3B +11%
prefill (delta-net layers dominate), GLM-4.7-Flash +77% pp512 at +0.06 KLD,
and a note that GLM-4.7-Flash degrades under plain Q4_0 on its own (KLD 0.49
unrotated, exact path), so the route is not recommended for it yet.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Follow-up to #199.
tools/hadamard_q4_0.pyrotates the DeepSeek-2 MLA projections (attn_q_a,attn_q_b,attn_kv_a_mqa,attn_kv_b,attn_k_b,attn_v_b), so GLM-4.7-Flash files take the W4A4 route. Invariant check passes (562 Q4_0 tensors, all rotated).docs/lean.md: measured results on Strix Halo (KLD against each model's Q8_0, wikitext-2 40 x 512, llama-bench 3 runs, ROCmFPX 16b234a3):GLM-4.7-Flash's high KLD is not W4A4's: a plain unrotated Q4_0 on the exact path scores 0.493, any single tensor group at Q4_0 costs ~0.14, and the Q8_0 reference agrees across backends (KLD 0.015, PPL 10.44 HIP / 11.01 Vulkan). The docs say so and don't recommend the route for that model yet.
🤖 Generated with Claude Code