Run Llama 3.1 405B on M5 Ultra

Yes — Llama 3.1 405B (405B) runs at 4 tok/s on M5 Ultra with 512 GB RAM using Q4_K_M quantization via MLX. First token latency is Nones. A capable open-source LLM with 405B parameters.

Speed
estimated4
tok/s
First Token
estimatedNone
seconds
RAM Needed
512
GB minimum
Engine
MLX
recommended
Want to run Llama 3.1 405B faster — or step up to bigger models? Find your Mac →

Benchmark Details

The LLMCheck index estimates Llama 3.1 405B on M5 Ultra using our published methodology: Q4_K_M quantization, memory-bandwidth scaling, and cross-referenced third-party benchmarks where available. Figures are transparent estimates — own this config? Submit a real benchmark →

MetricValue
Tokens per second4 tok/s
Time to first tokenNones
QuantizationQ4_K_M
Minimum RAM512 GB
Recommended engineMLX
Parameters405B
Benchmark date2026-08

Q4_K_M 405B MLX M5 Ultra

Setup Guide: Run Llama 3.1 405B on M5 Ultra

The recommended engine for Llama 3.1 405B on M5 Ultra is MLX. Install with pip and pull the model:

pip install mlx-lm
mlx_lm.generate --model mlx-community/llama-31-405b-q4_k_m --prompt "Hello!"

Alternatively, you can use Ollama for a simpler setup:

ollama run llama-31-405b

System Requirements

To run Llama 3.1 405B on M5 Ultra you need:

🛒 Get a Mac that runs Llama 3.1 405B

Llama 3.1 405B needs about 512 GB of unified memory. These current Apple Silicon Macs have the headroom to run it comfortably:

As an Amazon Associate, LLMCheck earns from qualifying purchases. These affiliate links cost you nothing extra and help keep our benchmarks free.

Compare More Models

See how Llama 3.1 405B stacks up against other models on your specific Mac hardware.

Open Compare Tool Full Leaderboard