Verba/Rapida

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 on this 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 ) 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% )

Da dove viene l'idea

`docs/research/2026-10-29-gap-levers-merge.md` (, ranked 4)

Esito

closed 2026-11-13 by row 153v: the verify's cost is the path's fixed cost (1.99x a step at 2 rows), not matmul width; superseded by row 153w

Vuoi vedere cosa hanno prodotto questi esperimenti? Lesto, il motore di inferenza per Gemma 4 sui Mac con Apple silicon, è su lestoengine.com

Creato da Federico Andrioli, @fedeandri su X Le misure di un laboratorio di ricerca, ricavate direttamente dai suoi file. Dati aggiornati al