Cloud VPS from $1.98/mo · pay with Bitcoin, Ethereum, Monero, USDT or Solana · paid in crypto
AI and machine learning

How to choose a GPU for AI: VRAM first, then bandwidth

Choose a GPU for AI inference, fine-tuning or training by sizing memory first, then bandwidth, number formats and multi-GPU needs, using published specs.

CloudSat teamNovember 18, 20267 min read
Abstract illustration of memory chips feeding a glowing processor through wide bands of light
On this pageStart from the job, not the card

GPU shopping usually starts with a speed chart. For AI work, that is the wrong first question. A model that does not fit in video memory either refuses to load or spills into system RAM, and then the fastest card on the chart crawls. Decide in this order: memory capacity, memory bandwidth, the number formats the card runs in hardware, and only then how many cards you need.

Start from the job, not the card

Each kind of AI work fills GPU memory with different things. Find your row before you compare a single spec.

Workload What fills the memory What to optimize for
Serving an LLM (chat, API, agents) Model weights plus a KV cache for every active conversation Capacity, then bandwidth
LoRA or QLoRA fine-tuning Frozen weights, small adapters, activations Capacity
Full fine-tuning or training Weights, gradients, optimizer states, activations Capacity across cards, fast interconnect
Image and video generation Model plus activations that grow with resolution and frame count Capacity, then compute
Classic ML (gradient boosting, small networks) Often fits in system RAM You may not need a GPU

Step 1: estimate memory before anything else

Weights are the easy part: parameters times bytes per parameter. BF16 and FP16 use 2 bytes, FP8 and INT8 use 1 byte, and 4-bit formats land between 0.5 and 0.6 bytes once their scaling factors are counted. In the llama.cpp project's own table, Llama 3.1 8B quantized to Q4_K_M takes 4.58 GiB, while the FP16 version takes 14.96 GiB.

On top of the weights, inference keeps a KV cache that grows with context length and with the number of requests served at once. Training is heavier. With mixed precision and the Adam optimizer, the standard accounting is about 16 bytes per parameter for weights, gradients and optimizer states, before activations. A 7B model needs roughly 112 GB for that alone, which is why full fine-tuning is a multi-GPU job while QLoRA fits on one consumer card.

Keep a margin. The CUDA context, the inference engine's buffers and memory fragmentation all take a share on every card. The VRAM guide walks through the full arithmetic, including the KV cache formula.

Step 2: bandwidth sets the pace of generation

Once a model fits, memory bandwidth decides how fast it writes. To produce each token, a dense model reads essentially all of its weights from memory. A card that moves 2 TB/s can therefore generate about twice as fast as one that moves 1 TB/s, provided the model fits on both. Raw compute matters more when the model processes a long prompt, or when you batch many users together, but for one conversation at a time, bandwidth is the number to compare.

That is why HBM cards feel different. HBM stacks sit right next to the GPU die on a very wide bus, so an A100 reaches about 2 TB/s at modest memory clocks, while GDDR cards need very fast chips on a 384-bit or 512-bit bus to approach similar figures.

Step 3: check the number formats

Newer GPUs run smaller number formats in hardware. That saves memory and raises throughput, but only when your software uses them.

  • BF16: supported by every card in this article.
  • FP8: Ada Lovelace (RTX 4090), Hopper (H100) and Blackwell (RTX 5090, RTX PRO 6000). The A100 (Ampere) has no FP8 tensor cores.
  • FP4: Blackwell only. Models already ship with 4-bit weights: OpenAI's gpt-oss uses MXFP4 in its expert layers, and DeepSeek V4 stores its experts in FP4 and most other weights in FP8. On older cards, whether such a model runs, and how fast, depends on your inference engine.

Published specs side by side

These figures come from NVIDIA's product pages and specification sheets. The H100 is listed as a reference point for what HBM3 brings.

Card Architecture Memory Bandwidth FP8 / FP4 Max power Notes
RTX 4090 Ada Lovelace 24 GB GDDR6X 1,008 GB/s Yes / No 450 W No NVLink
RTX 5090 Blackwell 32 GB GDDR7 1,792 GB/s Yes / Yes 575 W No NVLink
RTX PRO 6000 Blackwell Blackwell 96 GB GDDR7 with ECC 1,792 GB/s (Workstation), 1,597 GB/s (Server Edition) Yes / Yes Up to 600 W MIG, up to 4 instances
A100 80 GB Ampere 80 GB HBM2e 1,935 GB/s (PCIe), 2,039 GB/s (SXM) No / No 300 W (PCIe), 400 W (SXM) MIG up to 7, NVLink 600 GB/s
H100 SXM Hopper 80 GB HBM3 3.35 TB/s Yes / No Up to 700 W MIG up to 7, NVLink 900 GB/s

How the three classes differ in practice

Consumer cards: RTX 4090 and RTX 5090

High bandwidth, but memory stops at 24 and 32 GB. They suit models up to about 30B parameters at 4-bit, QLoRA fine-tuning of 7B to 14B models, and image generation. There is no NVLink, so cards in the same server talk over PCIe. The RTX 5090 adds FP4 and about 78% more bandwidth than the 4090, which matters if your model fits in 32 GB.

Workstation class: RTX PRO 6000 Blackwell

96 GB on a single card changes what is simple. A 70B model at 4-bit, with a generous context, loads without splitting it across GPUs. You also get ECC memory, FP4, and MIG, which carves the card into as many as four isolated GPUs for separate jobs or tenants.

Data center class: A100 80 GB

HBM2e bandwidth, NVLink for multi-GPU training, and MIG with up to seven 10 GB slices. It predates FP8 and FP4, so it shines on BF16 training and on inference engines that run well on Ampere. Among these cards, it is the natural pick when you plan to train across two or four GPUs.

When one card is not enough

There are two ways to split a model, and they have very different interconnect needs.

  • Layer split (pipeline): each card holds a block of layers and passes activations to the next. Traffic between cards is small, so PCIe is fine. This is llama.cpp's default split mode.
  • Tensor parallelism: every layer is divided across cards, which exchange data many times per token. It scales better, but it wants NVLink. vLLM exposes it as --tensor-parallel-size.

For training, data parallelism with sharding (PyTorch FSDP or DeepSpeed ZeRO) spreads weights, gradients and optimizer states across cards so no single GPU holds everything. Remember that two 24 GB cards never equal one 48 GB card: each card carries its own overhead, and the split adds traffic.

Measure before you commit

Run your real model, with your real context length and concurrency, and watch the card while it works:

nvidia-smi --query-gpu=name,memory.used,memory.total,utilization.gpu --format=csv -l 5   # every 5 s

If memory sits near the limit, you need more capacity or a smaller format. If utilization stays low during generation, you are bandwidth-bound or the CPU is not feeding the GPU fast enough. CloudSat GPU servers ship with CUDA and drivers preinstalled and bill by the hour (from $405.08/mo for a full month), so you can test a card for a day before committing to it.

FAQ

Is 24 GB of VRAM enough for local LLMs?

For models up to about 14B parameters at 8-bit, or around 30B at 4-bit with a short context, yes. A 70B model needs more than 40 GB for 4-bit weights alone, so plan for an RTX PRO 6000, an A100 80 GB or two cards with a layer split.

Only when cards exchange large amounts of data at every step: tensor-parallel inference and multi-GPU training. A model that fits on one card, or one split by layers across two cards, runs well over PCIe.

RTX 5090 or A100 80 GB?

If your model and its KV cache fit in 32 GB, the RTX 5090 offers bandwidth in the same range as the A100 plus FP8 and FP4 in hardware. If they do not fit, or you want MIG or NVLink, the A100's 80 GB wins.

Can I start without a GPU?

Yes, for small models. llama.cpp and Ollama run quantized 1B to 8B models on a CPU, slowly but well enough to test prompts and tooling before you rent a card.

Run it on CloudSat. Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. See plans or deploy a server.