// RUN โ€” FITS

Can the Apple M2 Ultra 64GB run CodeGen2.5?

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

CodeGen2.5 on the Apple M2 Ultra 64GB

QuantFits?Max contextSpeedBeyond context
FP16 yes 321k 38.9-46.9 t/s ~0.5-0.6 (slow)
Q8 yes 375k 77.7-93.7 t/s ~1-1.2 (slow)
Q4 yes 398k 138.8-167.3 t/s ~1.7-2.1 (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 M2 Ultra 64GB run CodeGen2.5?โ–ถ

Yes. At Q4 it generates ~138.8-167.3 tok/s and fits up to 398k context; beyond that it spills to SSD swap and slows to ~1.7-2.1 tok/s.

How much context fits?โ–ถ

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