// RUN โ€” FITS

Can the Apple M2 Max 96GB run CodeT5-large?

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

CodeT5-large on the Apple M2 Max 96GB

QuantFits?Max contextSpeedBeyond context
FP16 yes 1272k 176.6-213 t/s ~4.4-5.3 (slow)
Q8 yes 1284k 353.2-426 t/s ~8.8-10.6 (slow)
Q4 yes 1289k 630.8-760.7 t/s ~15.8-19 (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 Max 96GB run CodeT5-large?โ–ถ

Yes. At Q4 it generates ~630.8-760.7 tok/s and fits up to 1289k context; beyond that it spills to SSD swap and slows to ~15.8-19 tok/s.

How much context fits?โ–ถ

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