Verba/Rapida

Esperimenti #90

8-bit KV cache through mlx-serve's own `--kv-quant` (and its `--kv-attn-mode` fused read) on the best...

done

Il testo degli esperimenti resta in inglese, come l'ha scritto il laboratorio.

Cosa è stato provato

8-bit through mlx-serve's own `--kv-quant` (and its `--kv-attn-mode` fused read) on the best: halves SDPA's KV bytes ( 88p: 1.05 ms per step at 1k, 1.71 at 8k); a rounding change, so the anchored meaning read (row 71c) decides

Modello e configurazione

the best

Guadagno atteso

+4 to +7% at 8k (inferred)

Da dove viene l'idea

row 88p

Esito

done 2026-11-01: invalid, smoke stopped the pair: Gemma 4's (`gemma4MoeAttnWith`) never calls mlx-serve's fused read, so `--kv-quant 8` only dequantizes; row 90b ports the read

Lezione

an engine flag is a speed lever only on the code path the model actually runs; mlx-serve's `--kv-quant` fused read serves other model families' attention, while Gemma 4's own attention reads a dequantized dense view. Before pre-registering a flag row, find the model's call site of the feature in the engine source.

Adottato

no (invalid: the path under test never ran on Gemma 4; row 90b queued for the engine port)

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