Verba/Rapida

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

of OptiQ's bit map rebuilt by from , and of four variants each moving one group of its 8-bit modules to 4-bit (dense MLP, embedding and LM head, projections, the 6 layers' experts), with the in-process ; 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)

Want to see what these experiments produced? Lesto, the Gemma 4 inference engine for Apple silicon Macs, is on lestoengine.com

Made by Federico Andrioli, @fedeandri on X A research lab's own measurements, generated from its files. Data built