// RUN โ€” FITS

Can the Apple M2 Ultra 64GB run XLM-RoBERTa?

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

XLM-RoBERTa on the Apple M2 Ultra 64GB

QuantFits?Max contextSpeedBeyond context
FP16 yes 839k 494.5-596.4 t/s ~6.2-7.5 (slow)
Q8 yes 848k 989.1-1192.7 t/s ~12.4-14.9 (slow)
Q4 yes 851k 1766.2-2129.9 t/s ~22.1-26.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 64GB run XLM-RoBERTa?โ–ถ

Yes. At Q4 it generates ~1766.2-2129.9 tok/s and fits up to 851k context; beyond that it spills to SSD swap and slows to ~22.1-26.6 tok/s.

How much context fits?โ–ถ

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