FR
← All models
Llama · Dense model · 2024-07

Llama 3.1 405B: how much VRAM?

In Q4_K_M with 8k tokens of context, Llama 3.1 405B needs about 259 GB of memory. The cheapest option: Mac Studio M3 Ultra 512 GB (€11,500 for the complete machine).

Model sheet

Parameters405 B
Active / token405 B
Cache / 1k tok.502 MB
ollama run llama3.1:405b

Weights on Hugging Face: meta-llama/Llama-3.1-405B-Instruct

VRAM by precision and context

Precision4k8k32k128k
FP16853 GB855 GB867 GB914 GB
FP8428 GB430 GB441 GB488 GB
Q8_0453 GB455 GB467 GB514 GB
Q6_K351 GB353 GB365 GB412 GB
Q4_K_M258 GB259 GB271 GB318 GB
Q3_K_M211 GB213 GB224 GB271 GB

One user. Each simultaneous user adds their own context cache.

Frequently asked questions

How much VRAM does Llama 3.1 405B need?

With an 8k-token context and one user, Llama 3.1 405B needs about 259 GB in Q4, 455 GB in Q8 and 855 GB in FP16.

What is the cheapest hardware to run Llama 3.1 405B?

In Q4, the cheapest option in our catalogue to run Llama 3.1 405B is Mac Studio M3 Ultra 512 GB, about €11,500 for the complete machine.

How fast does Llama 3.1 405B run?

Expect around 1.9 tokens per second for one user on Mac Studio M3 Ultra 512 GB in Q4 (estimate based on memory bandwidth).

On which hardware?

HardwareCardsSpeedMachine
Mac Studio M3 Ultra 512 GB1 is enough~1.9 tok/s€11,500
RTX PRO 6000 Blackwell 96 GB3 cards~9.1 tok/s€29,800
A100 80 GB4 cards~14 tok/s€50,000
L40S 48 GB6 cards~8.8 tok/s€51,000
H200 141 GB2 cards~16 tok/s€72,000
B200 192 GB2 cards~27 tok/s€90,000
H100 80 GB4 cards~23 tok/s€118,000
RTX 3060 12 GBdoesn’t fit——
RTX 4060 Ti 16 GBdoesn’t fit——
Radeon RX 7800 XT 16 GBdoesn’t fit——
RTX 4070 12 GBdoesn’t fit——
RTX 3090 24 GB (used)doesn’t fit——
RTX 4070 Ti SUPER 16 GBdoesn’t fit——
Radeon RX 7900 XTX 24 GBdoesn’t fit——
RTX 4080 SUPER 16 GBdoesn’t fit——
RTX 5080 16 GBdoesn’t fit——
RTX 4090 24 GBdoesn’t fit——
Mini-PC Ryzen AI Max+ 395 128 GBdoesn’t fit——
RTX 5090 32 GBdoesn’t fit——
NVIDIA DGX Spark 128 GBdoesn’t fit——
Mac Studio M4 Max 128 GBdoesn’t fit——
RTX 6000 Ada 48 GBdoesn’t fit——

Estimated complete machine: cards + host PC (€900 for 1–2 consumer cards, €2,800 beyond, a €6,000 server for datacenter cards). Macs and mini-PCs are sold complete.

Similar models