// RUN โ€” FITS

Can the Apple M2 Ultra 192GB run CodeT5-base?

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

CodeT5-base on the Apple M2 Ultra 192GB

QuantFits?Max contextSpeedBeyond context
FP16 yes 2607k 1236.4-1490.9 t/s ~15.5-18.6 (slow)
Q8 yes 2610k 2472.7-2981.8 t/s ~30.9-37.3 (slow)
Q4 yes 2612k 4415.6-5324.7 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 Ultra 192GB run CodeT5-base?โ–ถ

Yes. At Q4 it generates ~4415.6-5324.7 tok/s and fits up to 2612k 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 2612k tokens stay in fast memory; longer context spills to SSD swap and throughput collapses.