// RUN โ€” FITS

Can the Apple M3 Max 128GB run CodeGen2?

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

CodeGen2 on the Apple M3 Max 128GB

QuantFits?Max contextSpeedBeyond context
FP16 yes 312k 8.5-10.3 t/s ~0.2-0.3 (slow)
Q8 yes 373k 17-20.5 t/s ~0.4-0.5 (slow)
Q4 yes 400k 30.4-36.6 t/s ~0.8-0.9 (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 M3 Max 128GB run CodeGen2?โ–ถ

Yes. At Q4 it generates ~30.4-36.6 tok/s and fits up to 400k context; beyond that it spills to SSD swap and slows to ~0.8-0.9 tok/s.

How much context fits?โ–ถ

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