Esperimenti #59
Why one-token 4-bit matmuls reach only 62% to 66% of bandwidth (row 49): `quantized_matmul` at 1 row over N...
done
Il testo degli esperimenti resta in inglese, come l'ha scritto il laboratorio.
Cosa è stato provato
Why one-token 4-bit matmuls reach only 62% to 66% of bandwidth (row 49): `quantized_matmul` at 1 row over N = 256 to 32,768 at K 2816 and 2112, independent against serialized, on the idle Mac; decides between concurrency or joining and a better single-row kernel
Modello e configurazione
MLX of `~/engines/mlxlm`
Guadagno atteso
sizes the about 4 ms of the step that is not bytes (rows 46, 57p)
Da dove viene l'idea
rows 49, 57p
Esito
done 2026-10-30: ~14 us fixed per serialized one-token matmul (4 us overlapped), ~2 ms of the step; 59b: prefetching does not hide it (`docs/experiments/2026-10-30-mac-dispatch-fusion/`)
Lezione
on the M4 Pro every serialized read of a few MB of weights costs about 10 to 14 us beyond its bytes, whatever the kernel: a one-token The writing phase: the model produces the reply one token at a time. Approfondisci step pays it about 170 times; the only levers are fewer, larger reads or more The unit of text a model reads and writes: roughly a short word or a piece of a longer one. per read (verify width), not a faster single-row kernel.
Adottato
no (a diagnostic)