// RUN โ€” FITS

Can the Apple M4 Max 128GB run SantaCoder?

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

SantaCoder on the Apple M4 Max 128GB

QuantFits?Max contextSpeedBeyond context
FP16 yes 1701k 168.8-203.5 t/s ~3.1-3.7 (slow)
Q8 yes 1718k 337.5-407 t/s ~6.2-7.5 (slow)
Q4 yes 1726k 602.7-726.8 t/s ~11-13.3 (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 128GB run SantaCoder?โ–ถ

Yes. At Q4 it generates ~602.7-726.8 tok/s and fits up to 1726k context; beyond that it spills to SSD swap and slows to ~11-13.3 tok/s.

How much context fits?โ–ถ

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