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 36GB run CodeT5-base?
Yes โ here's how fast and up to what context, with real measured numbers.
CodeT5-base on the Apple M4 Max 36GB
| Quant | Fits? | Max context | Speed | Beyond context |
|---|---|---|---|---|
| FP16 | yes | 465k | 843.8-1017.5 t/s | ~15.5-18.6 (slow) |
| Q8 | yes | 468k | 1687.6-2035.1 t/s | ~30.9-37.3 (slow) |
| Q4 | yes | 470k | 3013.6-3634.1 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 M4 Max 36GB run CodeT5-base?โถ
Yes. At Q4 it generates ~3013.6-3634.1 tok/s and fits up to 470k 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 470k tokens stay in fast memory; longer context spills to SSD swap and throughput collapses.