Can the Apple M4 Max (128GB) run Llama 3.1 70B?

Yes
QuantQ8_0Near-lossless
Memory78.3 GBof 96 GB
Speed~4tokens/s

Yes. The Apple M4 Max (128GB) can run Llama 3.1 70B fully in unified memory at Q8_0 (near-lossless), using about 78.3 GB of the 96 GB available, at roughly 4 tokens/second.

Try other context lengths in the calculator →

Memory needed by quantization

At 8,192 tokens of context. macOS lets the GPU use about 96 GB of the 128 GB unified memory by default.

QuantQualityMemoryFits?Speed
FP16Full quality144.5 GBToo big—
Q8_0Near-lossless78.3 GBFits~4 tok/s
Q6_KExcellent61.2 GBFits~6 tok/s
Q5_K_MVery good53.5 GBFits~7 tok/s
Q4_K_MGood, most popular46.1 GBFits~8 tok/s
Q3_K_MNoticeably degraded37.8 GBFits~9 tok/s
Q2_KHeavily degraded29.8 GBFits~12 tok/s

GPUs that run Llama 3.1 70B comfortably

Models that run well on the Apple M4 Max (128GB)

Run it in the cloud

Don't want to buy hardware? Run Llama 3.1 70B on a rented GPU today.

Rent a cloud GPU by the hour. No upfront cost, cancel any time.