// RUN โ€” FITS

Can the Apple M4 Max 64GB run XLM-RoBERTa?

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

XLM-RoBERTa on the Apple M4 Max 64GB

QuantFits?Max contextSpeedBeyond context
FP16 yes 839k 337.5-407 t/s ~6.2-7.5 (slow)
Q8 yes 848k 675.1-814 t/s ~12.4-14.9 (slow)
Q4 yes 851k 1205.5-1453.6 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 M4 Max 64GB run XLM-RoBERTa?โ–ถ

Yes. At Q4 it generates ~1205.5-1453.6 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.