LLM GPU requirements
Llama 3.1 405B GPU requirements: VRAM, GPUs and servers
- Parameters
- 405B
- Architecture
- Dense 126 layers
- KV heads
- 8 × 128 dim
- Context
- 128k tokens
Cheapest servers that run it
FP8 weights · 8k context · 8 concurrent requests · about 480 GB
-
8× NVIDIA RTX PRO 6000 Blackwell In stock
8 × 96 GB GDDR7 · 8-GPU server · PCIe, no NVLink$10,490/mo
-
8× NVIDIA HGX H100 In stock
8 × 80 GB HBM3 · 8-GPU server$16,900/mo
-
8× AMD Instinct MI355X Limited
8 × 288 GB HBM3e · 8-GPU server$19,900/mo
Delivered in under 10 minutes after payment.
Inference memory
How much VRAM Llama 3.1 405B needs
Weights take parameters × bytes per parameter. Serving adds the KV cache and about 10% runtime overhead; the totals below assume an 8k context with 8 concurrent requests and a BF16 KV cache.
| Precision | Weights | Total to serve | Cheapest server that fits |
|---|---|---|---|
| BF16 2 bytes per parameter | 810 GB | 926 GB | 8× AMD Instinct MI355X $19,900/mo |
| FP8 1 byte per parameter | 405 GB | 480 GB | 8× NVIDIA RTX PRO 6000 Blackwell $10,490/mo |
| 203 GB | 258 GB | 8× NVIDIA RTX PRO 6000 Blackwell $10,490/mo |
GGUF quantizations for llama.cpp and Ollama
| Quantization | Weights | Smallest GPU, one 8k request |
|---|---|---|
| Q8_0 about 8.5 bits per weight | 430 GB | More than one GPU |
| Q6_K about 6.56 bits per weight | 332 GB | More than one GPU |
| Q5_K_M about 5.69 bits per weight | 288 GB | More than one GPU |
| Q4_K_M about 4.85 bits per weight | 246 GB | More than one GPU |
Estimates with about 8% of GPU memory kept free. Quantized weights also keep some layers in higher precision, and frameworks differ in overhead; check the free memory your engine reports at startup. A model split across GPUs with tensor parallelism runs best on NVLink servers (HGX); the 8× RTX PRO 6000 server links its GPUs over PCIe.
GPUs and servers
Which GPUs can run Llama 3.1 405B?
| Configuration | BF16 | FP8 | |
|---|---|---|---|
| NVIDIA GeForce RTX 5090 32 GB · $449/mo | — | — | — |
| NVIDIA L40S 48 GB · $890/mo | — | — | — |
| NVIDIA H100 SXM 80 GB · $2,190/mo | — | — | — |
| NVIDIA RTX PRO 6000 Blackwell 96 GB · $1,390/mo | — | — | — |
| NVIDIA H200 141 GB · $3,090/mo | — | — | — |
| NVIDIA B200 180 GB · $4,590/mo | — | — | — |
| NVIDIA B300 288 GB · $5,190/mo | — | — | 1 req |
| 8× NVIDIA HGX H100 8 × 80 GB · $16,900/mo | — | Yes | Yes |
| 8× NVIDIA RTX PRO 6000 Blackwell 8 × 96 GB · $10,490/mo | — | Yes | Yes |
| 8× NVIDIA HGX H200 8 × 141 GB · $23,900/mo | Yes | Yes | Yes |
| 8× NVIDIA HGX B200 8 × 180 GB · $34,900/mo | Yes | Yes | Yes |
| 8× NVIDIA HGX B300 8 × 288 GB · $39,900/mo | Yes | Yes | Yes |
| 8× AMD Instinct MI355X 8 × 288 GB · $19,900/mo | Yes | Yes | Yes |
Yes: 8 concurrent requests with an 8k context each. 1 req: a single 8k request at a time. —: the weights, KV cache and runtime do not fit. Same formulas as the tables above, with about 8% of GPU memory kept free.
KV cache
Llama 3.1 405B KV cache by context length
Each token in flight stores keys and values for every layer: 2 × 126 layers × 8 KV heads × 128 dimensions × 2 bytes = 504 KB per token in BF16. An FP8 KV cache halves these figures.
| Context per request | 1 request | 8 requests | 32 requests |
|---|---|---|---|
| 4k tokens | 2.1 GB | 17 GB | 68 GB |
| 32k tokens | 17 GB | 135 GB | 541 GB |
| 128k tokens | 68 GB | 541 GB | 2,165 GB |
Memory to fine-tune Llama 3.1 405B
| Method | Approximate memory | Cheapest server that fits |
|---|---|---|
| 306 GB | 8× NVIDIA RTX PRO 6000 Blackwell $10,490/mo | |
| LoRA (BF16 base) | 1,004 GB | 8× AMD Instinct MI355X $19,900/mo |
| 7,776 GB | More than 8 GPUs: GB300 NVL72 |
About Llama 3.1 405B
Every figure on this page comes from the model’s published architecture and the same formulas as our VRAM calculator, where you can change the context length, concurrency and KV cache precision.
Model facts
- Developer
- Meta
- License
- Llama 3.1 Community License
- Type
- Dense
- Parameters
- 405B
- Layers
- 126
- Attention
- 128 query heads, 8 KV heads
grouped-query attention, head dimension 128 - Context window
- 128k tokens
FAQ
Llama 3.1 405B GPU FAQ
The short version. The help center has the details, and customers with an active server get answers by ticket, 24/7.
Visit the help centerHow much VRAM does Llama 3.1 405B need?
Can Llama 3.1 405B run on a single GPU?
What is the cheapest OverGPU server for Llama 3.1 405B?
How much memory do I need to fine-tune Llama 3.1 405B?
Deploy a GPU server
Run Llama 3.1 405B on your own GPUs.
Choose a configuration, create your account in the same form and pay the first month from your balance. Your server is delivered in under 10 minutes.
- Delivered in under 10 minutes
- Cancel any month
- Pay with crypto, up to +50% bonus