Experiments #37
KL of OptiQ's bit map rebuilt by round-to-nearest from bf16, and of four variants each moving one group of...
done
What was tested
A number measuring how different two probability distributions are; 0 means identical. of OptiQ's bit map rebuilt by Round-to-nearest: the naive way to quantize, simply rounding each weight to the closest 4-bit value. from A 16-bit number format for model weights; the full-quality baseline here., and of four variants each moving one group of its 8-bit modules to 4-bit (dense MLP, embedding and LM head, The step where each token looks back at the earlier tokens to decide what matters. Read more projections, the 6 layers' experts), with the in-process A quality check run alongside a speed test, so that a faster model cannot win by quietly getting worse. The numbered revision of the quality-check procedure; results are only comparable within one version.; timing-free
Model and setup
gemma-4-26b-a4b bf16 to mixed 4/8
Expected gain
decides which bytes can go (**measured** row 36)
Where the idea came from
row 36
Outcome
done 2026-10-29: control KL 0.0705 (= OptiQ's), head +0.007, experts +0.023, MLP +0.071, attention +0.082; all pass alone (`docs/experiments/2026-10-29-mac-bytes-per-step/`)
Lesson
OptiQ is plain round-to-nearest with a bit map; moving the LM head to 4-bit costs only +0.007 KL and the experts +0.023, while the dense MLP and attention cost about +0.07 to +0.08 each: spend the 0.11 KL headroom on the head and experts first, then one of MLP or attention.
Adopted
no (a quality map; speed is row 38)