// RUN โ€” FITS

Can the Apple M4 Max 64GB run Gemma 4 31B?

Yes โ€” here's how fast and up to what context, with real measured numbers.

Gemma 4 31B on the Apple M4 Max 64GB

QuantFits?Max contextSpeedBeyond context
FP16 no โ€” โ€” โ€”
Q8 yes 96k 12-14.4 t/s ~0.2-0.3 (slow)
Q4 yes 148k 21.4-25.8 t/s ~0.4-0.5 (slow)

Estimate (memory-bound). Beyond "max context" the KV cache spills to SSD swap and speed drops to the "beyond" figure.

FAQ

Can the Apple M4 Max 64GB run Gemma 4 31B?โ–ถ

Yes. At Q4 it generates ~21.4-25.8 tok/s and fits up to 148k context; beyond that it spills to SSD swap and slows to ~0.4-0.5 tok/s.

How much context fits?โ–ถ

At Q4, up to about 148k tokens stay in fast memory; longer context spills to SSD swap and throughput collapses.