Free tool · runs in your browser
LLM GPU sizing calculator
Estimate how much GPU memory a large language model needs before you buy hardware: model weights, key-value cache and runtime overhead for your context length and user load.
Calculated in your browser. Nothing you enter is sent to SysArt or stored.
How the estimate works
GPU memory for serving a large language model has three parts. The calculator adds them up and divides by the usable memory of each GPU.
- Weights = parameters × bytes per parameter. 16-bit formats use 2 bytes, 8-bit formats 1 byte and 4-bit formats about half a byte (quantisation scales add a little on top).
- Key-value cache = 2 × layers × KV heads × head dimension × bytes per value × context length × concurrent requests. The 2 accounts for keys and values.
- Overhead for activations, the runtime and memory fragmentation, entered as a percentage.
GPU counts assume the serving engine may use 90% of each GPU's memory, a little below vLLM's default of 92%, to leave headroom, and round up to 1, 2, 4 or 8 GPUs because tensor parallelism splits a model evenly across GPUs. 1 GB here means 109 bytes.
Presets are for sizing only. Licences differ between models and versions, and some restrict commercial use or large deployments, so check the licence before production use. Our guide to open-weight model licences compares them.
Worked examples
| Model | Weights | Workload | Memory | H100 (80 GB) | H200 (141 GB) |
|---|---|---|---|---|---|
| Llama 3.1 8B | 16-bit | 8k tokens × 8 | 27.1 GB | 1 | 1 |
| Mistral Small 3.1 24B | 8-bit | 16k tokens × 16 | 73.7 GB | 2 | 1 |
| Qwen3 32B | 8-bit | 32k tokens × 16 | 187.2 GB | 4 | 2 |
| Llama 3.3 70B | 8-bit | 32k tokens × 16 | 266.6 GB | 4 | 4 |
| Llama 3.3 70B | 4-bit | 8k tokens × 32 | 133.3 GB | 2 | 2 |
| Mistral Large 2 (123B) | 8-bit | 32k tokens × 8 | 238.8 GB | 4 | 2 |
Workload = context length per request × concurrent requests, with a 16-bit KV cache and 10% overhead.
What the estimate does not cover
- Throughput. Memory says what fits; tokens per second depend on the GPU, the engine and batching. Benchmark before buying.
- Sliding-window and hybrid attention. Models such as Gemma 3 keep a shorter cache in some layers, so this formula overstates their memory.
- Vision and audio encoders add their own memory for multimodal requests.
- Redundancy. Production platforms add spare capacity for failover and maintenance.
Frequently asked questions
How much GPU memory does a 70B model need?
The weights of Llama 3.3 70B take about 141.1 GB at 16-bit precision, 70.6 GB at 8-bit and 35.3 GB at 4-bit. On top of that comes the key-value cache, which grows with context length and the number of simultaneous requests, plus runtime overhead.
Can I run a 70B model on a single GPU?
Only with quantisation and a modest workload. At 8-bit, the weights alone nearly fill an 80 GB GPU, leaving little room for the cache. A 141 GB or larger GPU, or 4-bit weights, makes single-GPU serving practical for small user loads; production loads usually need two or more GPUs.
What is the KV cache and why does it matter?
While generating text, the model stores keys and values for every token already processed, in every layer. This key-value cache lets it avoid recomputing them. Its size grows linearly with context length and with the number of requests served at once, so long documents and many users can need more memory than the weights.
Does quantisation reduce answer quality?
It can. 8-bit formats usually lose little quality, while 4-bit formats save more memory but may degrade accuracy on some tasks. The effect depends on the model, the method and your use case, so evaluate quantised models on your own test set before choosing.
How many users can one GPU serve?
Memory sets the ceiling on how many requests fit at once; throughput (tokens per second) decides how fast each one is answered. This calculator covers memory. For throughput, benchmark your model on the target hardware with your real prompt and answer lengths.
Which inference engine should we use on-premises?
Common choices are vLLM, SGLang and NVIDIA TensorRT-LLM; Hugging Face Text Generation Inference is now in maintenance mode. They differ in hardware support, quantisation formats and operational features. We compare them for your workload during architecture design.
Sources
- Llama 3.1 8B: model card and config.json · checked 27 October 2026
- Qwen3 8B: model card and config.json · checked 27 October 2026
- Mistral Small 3.1 24B: model card and config.json · checked 27 October 2026
- Qwen3 32B: model card and config.json · checked 27 October 2026
- Mixtral 8x7B (mixture of experts): model card and config.json · checked 27 October 2026
- Llama 3.3 70B: model card and config.json · checked 27 October 2026
- Qwen2.5 72B: model card and config.json · checked 27 October 2026
- Mistral Large 2 (123B): model card and config.json · checked 27 October 2026
- NVIDIA H200 specifications (141 GB) · checked 27 October 2026
- NVIDIA L40S specifications (48 GB) · checked 27 October 2026
- NVIDIA DGX B200 specifications (1,440 GB across eight GPUs) · checked 27 October 2026
- vLLM engine arguments (gpu-memory-utilization default 0.92) · checked 27 October 2026
Turn the estimate into a hardware plan
Memory is the first constraint, not the only one. We size throughput, redundancy and growth with you and design the platform around them.