// RUN โ€” FITS

Can the Apple M2 Ultra 192GB run Code Llama-13B?

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

Code Llama-13B on the Apple M2 Ultra 192GB

QuantFits?Max contextSpeedBeyond context
FP16 yes 887k 20.9-25.2 t/s ~0.3-0.3 (slow)
Q8 yes 966k 41.8-50.5 t/s ~0.5-0.6 (slow)
Q4 yes 1001k 74.7-90.1 t/s ~0.9-1.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 192GB run Code Llama-13B?โ–ถ

Yes. At Q4 it generates ~74.7-90.1 tok/s and fits up to 1001k context; beyond that it spills to SSD swap and slows to ~0.9-1.1 tok/s.

How much context fits?โ–ถ

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