Llama 3.1 405B has 405.9B parameters. At FP8 its weights take about 406 GB. For one user at 8K context you need about 451 GB of GPU memory in total. That is 6 × RTX PRO 6000, 7 × H100, 4 × H200, 3 × B200 or 2 × B300.
How many GPUs you need
| GPU | 1 user · 8K context | 16 users · 32K context | 64 users · 128K context |
|---|---|---|---|
| RTX PRO 6000 96 GB | 6 GPUs · 1 server · ≈4.7 kW | 9 GPUs · 2 servers · ≈7.0 kW | 61 GPUs · 8 servers · ≈47.3 kW |
| H100 80 GB | 7 GPUs · 1 server · ≈10.2 kW | 11 GPUs · 2 servers · ≈20.4 kW | 73 GPUs · 10 servers · ≈102.0 kW |
| H200 141 GB | 4 GPUs · 1 server · ≈10.2 kW | 6 GPUs · 1 server · ≈10.2 kW | 42 GPUs · 6 servers · ≈61.2 kW |
| B200 180 GB | 3 GPUs · 1 server · ≈14.3 kW | 5 GPUs · 1 server · ≈14.3 kW | 33 GPUs · 5 servers · ≈71.5 kW |
| B300 288 GB | 2 GPUs · 1 server · ≈14.5 kW | 3 GPUs · 1 server · ≈14.5 kW | 21 GPUs · 3 servers · ≈43.5 kW |
FP8 weights, FP16 KV cache, 10% runtime overhead, 90% of each GPU's memory usable, every user at full context at the same time (worst case).
- 1 user · 8K context: about 451 GB in total (KV cache 4.2 GB).
- 16 users · 32K context: about 744 GB in total (KV cache 271 GB).
- 64 users · 128K context: about 5,209 GB in total (KV cache 4,329 GB).
Power is max draw: NVIDIA DGX ratings for 8-GPU HGX servers, GPU power plus server overhead for RTX PRO 6000. A standard 208V/30A cabinet gives about 5 kW. See how much power GPU servers use.
Weights at each precision
| Weight precision | Weights | Smallest fit at 1 user · 8K |
|---|---|---|
| BF16 / FP16 (2 bytes) | 812 GB | 11 × RTX PRO 6000, 8 × H200, 4 × B300 |
| FP8 (1 byte) | 406 GB | 6 × RTX PRO 6000, 4 × H200, 2 × B300 |
| 4-bit: NVFP4, MXFP4, AWQ (about 0.56 bytes) | 227 GB | 3 × RTX PRO 6000, 3 × H200, 1 × B300 |
Lower precision cuts memory and usually costs a little quality. FP8 is the common choice on H100 and newer.
Model specs we used
| Parameters | 405.9B parameters |
|---|---|
| Max context | 131,072 tokens (128K) |
| KV cache layout | 126 layers: full attention, 2,048 cached values per token |
| KV cache per user (FP16) | 4.2 GB at 8K · 16.9 GB at 32K · 67.6 GB at 128K |
| Source | meta-llama/Llama-3.1-405B-Instruct config.json and model card on Hugging Face |
How we calculate it
Total memory = weights + KV cache for every user's context + 10% runtime overhead. KV cache per token comes from the model's own config file: layers, KV heads and head size, or the compressed cache size for MLA models. Layers with a sliding window only keep that window. GPU count assumes 90% of each card's memory is usable and every user is at full context at the same time, which is the worst case. Real use varies with the inference engine, batch size and settings, so treat this as a planning number and test before you buy. Change the numbers in the VRAM calculator.
Questions
Can Llama 3.1 405B run on one GPU?
No. At FP8 the weights alone are about 406 GB, more than any single GPU holds. The smallest setup is 2 × B300 or 4 × H200 for one user at 8K context.
How much memory does the Llama 3.1 405B KV cache use at 128K context?
About 67.6 GB per user at FP16, half that at FP8. Multiply by the number of users served at once.
How much does Llama 3.1 405B need at 4-bit?
The weights drop to about 227 GB. For one user at 8K context that is about 255 GB in total.
Need servers for Llama 3.1 405B?
Tell us your users and context length. We come back with GPU options, prices and lead times, in writing.