Minimum VRAM for a 405B FP8 model
A large inference deployment tests a 405B FP8 model with eight 8K sequences. The 126-layer configuration uses 141 GB devices with 88% available to the runtime.
Jump to resultsInputs
Results
Runs in your browser- Required memory
- 504.646GB
- Minimum GPU count
- 5GPUs Aggregate memory lower bound
- Decode bandwidth ceiling
- 437.534tok/s Ideal aggregate across the batch
Compare measured decode speed with this bandwidth ceiling. Verify the model fits each rank individually.
| Model weights | 405 GB |
|---|---|
| Active KV cache | 33.823 GB |
| Activation and scratch reserve | 65.823 GB |
| Usable memory per GPU | 124.08 GB |
| Usable memory across GPUs | 620.4 GB |
| KV per cached token | 516.096 kB |
| Ceiling per sequence | 54.692 tok/s |
What to try
The computed memory lower bound is five cards. Compare the actual sharding degrees supported by the runtime before selecting a topology or assuming five ranks are feasible.
How the estimate works
KV bytes = 2 × layers × hidden width × KV-head ratio × bytes × tokens × sequences
The model assumes dense decoder-only attention. FP16 uses two bytes per parameter, FP8 and INT8 use one, and Q4_K_M uses a rough 0.60 bytes to include mixed precision and quantization metadata. Use the actual model file size to check this assumption.
Keys and values grow with the live context and batch. GQA reduces the cached width by the ratio of KV heads to query heads. Workspace is an adjustable percentage of weights plus KV, with a separate allowance for unavailable GPU memory.
The GPU count is a memory lower bound. The decode ceiling assumes perfect sharding and one sweep of weights and active KV per batch step at full bandwidth. Kernel overhead, compute, prefill, cache sharing, allocator fragmentation, and interconnect can lower measured output.
Frequently asked questions
Why might a 405B deployment choose eight GPUs when the memory estimate says five?
Tensor dimensions, NVLink topology and supported parallel sizes can require different rank counts. The aggregate memory lower bound does not enforce those placement rules.
Is 405B FP8 weight memory the same after loading every checkpoint?
It depends on how the runtime casts weights and retains quantization scales or auxiliary buffers. Check allocation telemetry after the model has loaded.