Guide · Inference

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.

· 2 min read · AnthroPrime

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.

2. Bandwidth: how fast will tokens come?
GPUMemoryBandwidth
L40S48 GB GDDR6864 GB/s
A100 80GB80 GB HBM2e2.0 TB/s
H100 SXM80 GB HBM33.35 TB/s
H200141 GB HBM3e4.8 TB/s
B200 (HGX)180 GB HBM3e8 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.

3. Precision support
GPUFP16 / BF16FP8FP4
A100YesNoNo
L40SYesYesNo
H100 / H200YesYesNo
B200YesYesYes

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.

Starting points
WorkloadConsider
Models up to about 20B at 8-bitL40S, or MIG slices of A100/H100
70B-class at 8-bitOne H200, or two H100s with NVLink
70B-class at FP16, long contextTwo 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 ↗