New: connect Claude & other AIs to GenAIList over MCP โ research the catalog and contribute to the shared knowledge base. Learn how โ
Can the Apple M4 Max 128GB run XLM-RoBERTa?
Yes โ here's how fast and up to what context, with real measured numbers.
XLM-RoBERTa on the Apple M4 Max 128GB
| Quant | Fits? | Max context | Speed | Beyond context |
|---|---|---|---|---|
| FP16 | yes | 1718k | 337.5-407 t/s | ~6.2-7.5 (slow) |
| Q8 | yes | 1727k | 675.1-814 t/s | ~12.4-14.9 (slow) |
| Q4 | yes | 1730k | 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 128GB run XLM-RoBERTa?โถ
Yes. At Q4 it generates ~1205.5-1453.6 tok/s and fits up to 1730k 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 1730k tokens stay in fast memory; longer context spills to SSD swap and throughput collapses.