Esperimenti #34
A verify-width kernel for the experts: nothing upstream speeds `gather_qmm` at 3 to 16 rows on an M4 (MLX...
closed
Il testo degli esperimenti resta in inglese, come l'ha scritto il laboratorio.
Cosa è stato provato
A verify-width kernel for the experts: nothing upstream speeds `gather_qmm` at 3 to 16 rows on an M4 (MLX 4712 and 4787 are dense `quantized_matmul`; 4567 and 4572 tile scheduling target large M on M5), while each verified The unit of text a model reads and writes: roughly a short word or a piece of a longer one. on this Mixture of experts: a model made of many specialist sub-networks where only a few run per token. Approfondisci routes to its own 8 of 128 experts. Timing-free first: time `gather_qmm` for one MoE layer at 1, 4 and 7 rows on the rented Mac with OptiQ's 4-bit experts, to size the experts' share of a verify step against row 13's 0.95 GB per token; write the kernel (a `mx.fast.metal_kernel` that reads each touched expert block once for all rows, dflash-mlx's `verify_qmm` as the The unmodified model or build that every variant is compared against.) only if that share is large
Modello e configurazione
gemma-4-26b-a4b OptiQ-4bit + MTP assistant
Guadagno atteso
unknown until the sizing step (**guess** +3 to +10% The writing phase: the model produces the reply one token at a time. Approfondisci)
Da dove viene l'idea
`docs/research/2026-10-29-gap-levers-merge.md` (The coaching-JSON score: how closely the small model's answer matches the reference model's, from 0 to 1., ranked 4)
Esito
closed 2026-11-13 by row 153v: the verify's cost is the The text you send to the model before it starts answering. path's fixed cost (1.99x a step at 2 rows), not matmul width; superseded by row 153w