Llama 3.1 8B is a 8.03B-parameter model. At Q4_K_M it needs about 5.7 GB of memory. The Mac Studio M5 Ultra 512GB has 384 GB usable, so it fits entirely in memory. Expect about 115 tokens/sec (98–132), with the first token after 0.3 s for a short prompt. This estimate is projected from the hardware specs; no benchmarks exist yet.
| Quantization | File size | Memory | Generation | First token | Source |
|---|---|---|---|---|---|
| Q4_K_M | 4.9 GB | Fits | 115 tok/s | 0.3 s | Projected |
| Q8_0 | 8.5 GB | Fits | 66 tok/s | 0.3 s | Projected |
| FP16 | 16.1 GB | Fits | 35 tok/s | 0.3 s | Projected |
All models on the Mac Studio M5 Ultra 512GB · Llama 3.1 8B on all hardware
Estimates for a short prompt on a single device. Measured numbers come from community benchmarks (r/LocalLLaMA, localscore.ai and more); others are derived from similar setups or projected from specs. Open source on GitHub.