Verba/Rapida

Esperimenti #45

Row 44's map on mlx-serve with the KV cache at 8-bit (`--kv-quant 8`): speed pair against the same map...

done

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

Cosa è stato provato

Row 44's map on mlx-serve with the at 8-bit (`--kv-quant 8`): speed pair against the same map, then the through each server's API

Modello e configurazione

gemma-4-26b-a4b mixed 4/8, KV 8-bit

Guadagno atteso

+2% to +8% (**guess**: KV bytes at 8k)

Da dove viene l'idea

row 44

Esito

done 2026-10-30: decode -23.8% (interval -24.4 to -23.4), KL unchanged (API probe -0.0008 against its control); mlx-serve 26.10.3 dequantizes the whole cache per layer per step because its fused quantized-KV kernel never engaged; not adopted

Lezione

a KV cache saves bytes only where reads it packed: mlx-serve 26.10.3 dequantizes the whole cache per layer per step unless its fused kernel engages, which it never did on Gemma 4 at 8k (-23.8% decode); check the engine's attention path, and its log line for the packed read, before pricing a KV lever.

Adottato

no (decode -23.8%; the lever needs a packed-read attention kernel this engine does not run here)

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