// RUN โ€” FITS

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

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

CodeT5-base on the Apple M2 Max 96GB

QuantFits?Max contextSpeedBeyond context
FP16 yes 1289k 618.2-745.5 t/s ~15.5-18.6 (slow)
Q8 yes 1292k 1236.4-1490.9 t/s ~30.9-37.3 (slow)
Q4 yes 1294k 2207.8-2662.3 t/s ~55.2-66.6 (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-base?โ–ถ

Yes. At Q4 it generates ~2207.8-2662.3 tok/s and fits up to 1294k context; beyond that it spills to SSD swap and slows to ~55.2-66.6 tok/s.

How much context fits?โ–ถ

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