Choosing GPUs for LLM inference
Choose an inference GPU in this order: will the model fit, how fast can it read memory, which precisions does it support, and how will you scale beyond one GPU.
1. Capacity: will the model fit?
Add the weights at your chosen precision, the KV cache for your context length and peak concurrency, and some headroom. If that total does not fit on one GPU, you need several GPUs per model replica.
2. Bandwidth: how fast will tokens come?
Generating each token reads the weights and the KV cache from memory, so decode speed tracks memory bandwidth more than compute. Prefill, the processing of the prompt, is compute-heavy. Long prompts favour compute; long outputs favour bandwidth.
| GPU | Memory | Bandwidth |
|---|---|---|
| L40S | 48 GB GDDR6 | 864 GB/s |
| A100 80GB | 80 GB HBM2e | 2.0 TB/s |
| H100 SXM | 80 GB HBM3 | 3.35 TB/s |
| H200 | 141 GB HBM3e | 4.8 TB/s |
| B200 (HGX) | 180 GB HBM3e | 8 TB/s |
3. Precision support
Lower precision shrinks memory and raises throughput when quality holds. Check that both the GPU and your inference engine support the format you plan to use.
| GPU | FP16 / BF16 | FP8 | FP4 |
|---|---|---|---|
| A100 | Yes | No | No |
| L40S | Yes | Yes | No |
| H100 / H200 | Yes | Yes | No |
| B200 | Yes | Yes | Yes |
4. Scaling past one GPU
Tensor parallelism splits each layer across GPUs and exchanges data at every step, so it works best over NVLink. Replicas (copies of the model behind a load balancer) scale throughput without that traffic. L40S has no NVLink, so it suits models that fit on one card and scale out as replicas.
5. Small models: share the GPU
Multi-Instance GPU (MIG) on A100, H100 and H200 splits one GPU into up to seven isolated instances, each with its own memory and compute. It suits several small models or tenants on one card.
Starting points
These are starting points to benchmark, not guarantees. Concurrency, context length and latency targets change the answer.
| Workload | Consider |
|---|---|
| Models up to about 20B at 8-bit | L40S, or MIG slices of A100/H100 |
| 70B-class at 8-bit | One H200, or two H100s with NVLink |
| 70B-class at FP16, long context | Two H200s, or one B200 |
| Large mixture-of-experts or 400B+ | 8-GPU H200/B200 nodes, or GB200 NVL72 |
Frequently asked questions
Is the newest GPU always the best for inference?
Not necessarily. If an older GPU meets your latency and throughput targets for your model, a newer one adds capacity you may not use. Start from the targets.
What matters more for inference, compute or memory?
For token generation, memory bandwidth and capacity usually matter most. Compute matters more for long prompts and large batches.
Can I run inference on L40S?
Yes. L40S has 48 GB of memory and FP8 support, and suits models that fit on one card. It has no NVLink or MIG.
Sources: NVIDIA · H100 ↗ · NVIDIA · H200 ↗ · NVIDIA · L40S ↗ · NVIDIA · MIG user guide ↗