Cloud Pick Guide

Home / GPU for LLM inference

The right GPU for LLM inference, by model size

Memory decides which models a GPU can run; memory bandwidth decides how fast. Find the memory your model needs, the GPUs that fit, and what each costs per hour.

  • 8B to 70B models
  • 16, 8 and 4-bit
  • Bandwidth from datasheets
  • Prices from provider data

Some links on this page are affiliate links.

On this page
  1. Memory by model size
  2. Speed and bandwidth
  3. Cost per hour
  4. Choosing in four steps
  5. Questions people ask

Key takeaways

  • Memory decides what runs. A model needs roughly its parameter count times 2 bytes at 16-bit, 1 at 8-bit or 0.5 at 4-bit, plus about 20% for the context cache.
  • Bandwidth decides how fast. Each new token reads the whole model from GPU memory, so memory bandwidth caps the speed of a single request.
  • For most teams: a 48 GB GPU for models up to about 32B at 8-bit (70B at 4-bit only with a short context); an 80 GB GPU for 32B at 16-bit or 70B at 4-bit with room to spare; several GPUs beyond that.
  • On Vultr that means the A40 ($1.712/h) or the A100 80 GB ($2.397/h); open right now: the A40 in 2 regions and the A100 80 GB in New Jersey.

How much GPU memory each model size needs

Weights plus about 20% for the context cache and the serving software, at a few thousand tokens of context. Long contexts and many users at once need more.

Model size16-bit8-bit4-bit
8B19 GB24 GB (L4, RTX 4090)10 GB24 GB (L4, RTX 4090)5 GB24 GB (L4, RTX 4090)
14B34 GB48 GB (A40, L40S)17 GB24 GB (L4, RTX 4090)8 GB24 GB (L4, RTX 4090)
32B77 GB80 GB (A100, H100)38 GB48 GB (A40, L40S)19 GB24 GB (L4, RTX 4090)
70B168 GB2 × 141 GB84 GB141 GB (H200)42 GB48 GB (A40, L40S)

The figure under each number is the smallest GPU it fits on. Mixture-of-experts models are sized by their total parameters, not the active ones: all experts must be in memory.

How fast: memory bandwidth

For one request at a time, tokens per second can't exceed memory bandwidth divided by model size in bytes. Real speeds are lower, but the ratio between GPUs holds. Serving many requests at once (batching) raises total throughput well above these figures.

Memory bandwidth per GPU (GB/s): the ceiling on generation speed
Vultr has it open nowOther GPUs
L4
300 GB/s
A40
696 GB/s
L40S
864 GB/s
A100 80 GB
1,935 GB/s
H100 SXM
3,350 GB/s
H200
4,800 GB/s

From NVIDIA datasheets. A100 is the PCIe version, H100 the SXM version.

GPUBandwidthCeiling: 8B at 16-bit (16 GB), tokens/sCeiling: 70B at 4-bit (35 GB), tokens/s
L424 GB300 GB/s19does not fit
A4048 GB696 GB/s4420
L40S48 GB864 GB/s5425
A100 80 GB80 GB1,935 GB/s12155
H100 SXM80 GB3,350 GB/s20996
H200141 GB4,800 GB/s300137

These are upper limits from the datasheet, not benchmarks. We have not measured these GPUs ourselves.

What each size costs per hour

The cheapest single GPU with enough memory, on demand, from our GPU price data, and the Vultr option:

Model and precisionCheapest GPU that fitsVultr
8B, 16-bitabout 19 GB$0.27RTX A5000, Runpod$1.712A40
14B, 16-bitabout 34 GB$0.59A40, Runpod$1.712A40
32B, 8-bitabout 38 GB$0.59A40, Runpod$1.712A40
70B, 4-bitabout 42 GB$0.59A40, Runpod$1.712A40
32B, 16-bitabout 77 GB$2.09A100 80 GB, Runpod$2.397A100 80 GB
Claim $300 credit for a Vultr GPU

$300 covers about 175 hours of the A40.

Choosing in four steps

  1. Pick the model and precision. Start at 8-bit; drop to 4-bit if it doesn't fit, move to 16-bit if quality matters and budget allows.
  2. Size the memory with the table above, or for your exact model and context with our VRAM calculator.
  3. Pick the cheapest GPU with that memory, then compare bandwidth if speed matters.
  4. Test on demand before committing. An hour on a rented GPU costs a few dollars; our vLLM guide shows how to serve a model.

Sources

Questions people ask

How much VRAM do I need to run an LLM?

Multiply the parameter count by the bytes per parameter (2 for 16-bit, 1 for 8-bit, 0.5 for 4-bit), then add about 20% for the context cache and runtime. An 8B model at 16-bit needs about 19 GB; a 70B model at 4-bit about 42 GB.

What is the best GPU for LLM inference?

The cheapest GPU with enough memory for your model and context, and then the one with the most memory bandwidth you can afford: bandwidth sets how fast tokens come out. For most teams that means a 48 GB card for models up to about 32B at 8-bit, and an 80 GB card above that.

Can I run a 70B model on one GPU?

Yes, at 4-bit: about 42 GB by this rule of thumb, which fits a 48 GB A40 or L40S only with a short context; an 80 GB A100 or H100 leaves room for longer contexts and more users. At 8-bit it needs about 84 GB, more than one 80 GB GPU; at 16-bit, several GPUs. Our VRAM calculator works it out for a specific model and context.

Does quantisation hurt quality?

8-bit is usually very close to 16-bit. 4-bit methods such as AWQ and GPTQ lose a little more, depending on the model and task. Test your own prompts before you commit.

Which Vultr GPU should I use for an LLM?

The A40 (48 GB, $1.712 an hour) for models up to about 32B at 8-bit (or 70B at 4-bit with a short context), and the A100 80 GB ($2.397 an hour) for larger or 16-bit models. Vultr opens and closes GPU regions as capacity changes; open right now: the A40 in 2 regions and the A100 80 GB in New Jersey. Vultr sells its A16 for virtual desktops and video, not for language models.

Up to $300 free creditClaim credit