Wandering Giants Compute · Learn
Guide

How to Choose the Right GPU for Your AI Workload

The short answer

Choose a GPU by memory first, speed second, price third. Add up weights (parameters × bytes per parameter), KV cache and 10–20% headroom. Check bandwidth gives enough tokens per second, then compare cost per million tokens or per 1,000 images, not per hour. Most 8B models fit 24 GB; 70B in FP8 needs 80 GB.

Step 1
Calculate VRAM: weights + KV cache + 10–20% headroom
Step 2
Estimate speed: ~0.6–0.75 × bandwidth ÷ bytes per token
Step 3
Compare cost per unit of work, not per hour
Step 4
Check variant, FP8 support, availability and billing
8B model, BF16
24 GB card (e.g. RTX 4090)
70B model, FP8
80 GB card (e.g. H100), modest context
235B MoE, FP8
288 GB card (B300) or several GPUs

Choosing a GPU for AI looks like a spec-sheet comparison, but most of the decision comes down to one sum and two estimates. Get the memory sum right and you avoid the most expensive mistake, renting a card the model cannot run on. Get the speed estimate right and you avoid the second most expensive, paying for an H100 to serve a model an RTX 4090 would handle.

This guide walks through the process in four steps, with worked examples and a recommendation table for common workloads. It is part of our series on GPU cloud computing.

What is the short answer?

Choose the cheapest GPU on which your workload fits in memory with headroom and runs fast enough for your users or deadline, measured by cost per unit of work. In practice:

  1. Memory. Add up weights, KV cache (or training state) and 10–20% headroom. Rule out every card smaller than that.
  2. Speed. Estimate tokens per second (from bandwidth) or images and training steps per hour (from compute). Rule out cards that are too slow.
  3. Cost. Among the rest, compare cost per million tokens, per 1,000 images or per training run, not price per hour.
  4. Practicalities. Check the exact variant, precision support, availability, billing unit and storage.

The rest of this guide shows how to do each step.

Step 1: How much GPU memory do you need?

You need enough GPU memory for the model weights, the working memory your workload adds (KV cache for inference, gradients and optimiser state for training, activations for images) and 10–20% headroom. Weights in gigabytes equal parameters in billions multiplied by bytes per parameter: 2 for BF16, 1 for FP8, about 0.5–0.6 for 4-bit.

ModelPrecisionWeightsPlus working memoryMinimum sensible card
Qwen3 8BBF16~16 GBKV cache, a few GB24 GB
gpt-oss 20BMXFP4 (native)Designed to run in ~16 GBKV cache24 GB
Qwen2.5 Coder 14B4-bit AWQ~8 GBRoom for long code contexts24 GB
Qwen3 32B4-bit AWQ~18 GBKV cache48 GB
DeepSeek R1 Distill Qwen 32BBF16~64 GBLong reasoning outputs need KV room80 GB
Llama 3.3 70BFP8~70 GBModest context80 GB
gpt-oss 120BMXFP4 (native)Designed to fit one 80 GB GPUKV cache80 GB
Qwen3 235B-A22BFP8~235 GBKV cache288 GB

For KV cache, use 2 × layers × KV heads × head dimension × bytes per value, per token. For Llama 3.x 70B that is about 0.33 MB per token in FP16, so ten users with 8,000 tokens each need about 26 GB on top of the weights. That one line moves a 70B FP8 deployment from an 80 GB card to a 141 GB H200. The model card for Llama 3.3 70B and the gpt-oss 120B model card list the architecture and memory details. For the complete method, see what GPU VRAM is and why it matters and how much GPU memory you need to run LLMs.

For fine-tuning, plan about 16–20 bytes per parameter for a full fine-tune with Adam, roughly the base weights plus a few GB for LoRA, and roughly the 4-bit weights plus a few GB for QLoRA. How much VRAM you need to fine-tune an LLM covers batch size and sequence-length effects.

Step 2: How fast does it need to be?

It needs to be fast enough for your users or your deadline, and no faster. For chat, that is a comfortable reading speed per user under your expected concurrency. For batch jobs, it is finishing within the time you have.

For LLM generation, estimate single-user speed with the bandwidth rule: tokens per second ≈ 0.6–0.75 × memory bandwidth ÷ bytes read per token. As a rough guide, people read at around 5–10 tokens per second, so anything above about 20 tokens per second per user feels instant in chat. These are estimates; measure on your own workload before committing.

WorkloadBytes per tokenRTX 4090 (1,008 GB/s)L40S (864 GB/s)H100 PCIe (2.0 TB/s)H200 (4.8 TB/s)
8B BF1616 GB~38–47 tok/s~32–41~75–94~180–225
32B 4-bit~18 GB~34–42~29–36~67–83~160–200
70B 4-bit~40 GBdoesn't fit~13–16~30–38~72–90
70B FP870 GBdoesn't fitdoesn't fit~17–21~41–51

Serving several users at once raises total throughput far above these single-user numbers, because the server batches them together. Long prompts are a different story: processing them is limited by compute, not bandwidth, so cards with more FLOPS (H100 over A100 or L40S) return the first token sooner. GPU memory bandwidth, FLOPS and compute performance explains when each limit applies.

For training and image generation, speed scales mainly with compute. Published dense BF16 tensor figures from NVIDIA: A100 312 TFLOPS, L40S 362, H100 PCIe 756, H100 SXM and H200 SXM 989.

Step 3: Which GPU is cheapest per unit of work?

The cheapest GPU per unit of work is the one with the lowest hourly price divided by work done per hour. A faster card at a higher hourly rate is often cheaper per token or per image.

For LLMs:

text
cost per million tokens = hourly price ÷ (tokens per second × 3,600 ÷ 1,000,000)

Example with illustrative round prices: card A costs $2.00 an hour and serves a batched aggregate of 500 tokens per second (1.8 million an hour), so $2.00 ÷ 1.8 ≈ $1.11 per million tokens. Card B costs $4.00 an hour but serves 1,500 tokens per second (5.4 million an hour), so $4.00 ÷ 5.4 ≈ $0.74 per million. Card B is twice the price per hour and a third cheaper per token.

For images, estimate seconds per image on each card, then:

text
GPU-hours per 1,000 images = seconds per image × 1,000 ÷ 3,600
cost per 1,000 images = GPU-hours × hourly price

At an assumed 5 seconds per image, 1,000 images take 1.39 GPU-hours. At 3 seconds, 0.83. Use your own measured time per image at your resolution and step count.

Utilisation matters as much as speed. A card that is busy only 20% of the hours you pay for costs five times as much per unit of work as the same card kept busy. Per-minute billing and stopping machines between jobs are often worth more than a cheaper hourly rate. Our guide to what it costs to rent a GPU covers billing models and hidden costs.

Step 4: What practical details should you check?

Before renting, check that the card is the variant you priced, supports the precision you plan to use, is available where and when you need it, and is billed in a way that suits your usage.

  • Variant. H100 PCIe (2.0 TB/s, 756 dense BF16 TFLOPS) and H100 SXM (3.35 TB/s, 989) are different products. So are H200 NVL and SXM.
  • Precision. FP8 tensor cores need Ada, Hopper or Blackwell. The A100 runs FP8 models only through weight-only kernels. FP4 needs Blackwell.
  • Multi-GPU links. If you will split a model, check whether GPUs connect over NVLink or PCIe with nvidia-smi topo -m.
  • CPU, RAM and disk. Enough RAM to load the model, enough disk for weights plus environment (model size × 2 plus 30–50 GB is a safe rule).
  • Billing. Per second, minute or hour; minimums; what a stopped machine costs; whether tax is included in the shown price.
  • Availability and region. Popular cards sell out; latency to your users matters for interactive apps.
  • Access. Do you need root, a ready API, or both?

Which GPU should you choose for each workload?

Use the table as a starting point, then adjust with your own VRAM sum and speed needs.

WorkloadRecommended startStep up if…
Private chat with an 8B modelRTX 4090, 24 GBMany users or long contexts → L40S
Coding assistant, 14B quantisedRTX 4090, 24 GBTeam use → L40S
32B model for a small teamL40S, 48 GBFaster responses → H100
Reasoning model, 32B in BF16A100 or H100, 80 GBLong outputs and many users → H200
Llama 3.3 70B FP8 for a teamH100, 80 GBLong contexts → RTX PRO 6000 or H200
gpt-oss 120BH100 or A100, 80 GBMore users → H200
Qwen3 235B-A22B FP8B300, 288 GB–
SDXL image generationRTX 4090, 24 GBBig batches → L40S
FLUX.1 [dev]RTX 4090 with FP8, or L40SFull precision and batches → RTX PRO 6000
Open video modelsRTX PRO 6000, 96 GB or H100Larger models → H200 or B200
Whisper transcriptionRTX 4090, 24 GBHuge volume → several replicas
LoRA fine-tune of 7–8BRTX 4090 or L40SLonger sequences → A100
QLoRA fine-tune of 70BA100 or H100, 80 GBSpeed → H200
Full fine-tune of 7–8BB200, 180 GB, or 4 × 80 GBBigger models → 8 GPUs
AI agents calling your own modelSize for the model; tools run on CPU–

For image generation specifically, see what GPU you need for AI image generation. For head-to-head decisions, see H100 vs A100 and RTX 4090 vs H100.

Worked examples: three real decisions

A solo developer building a chatbot prototype. Model: Qwen3 8B in BF16. VRAM: 16 GB weights + ~4 GB KV for a 32k context + headroom ≈ 23 GB. Speed: one user at an estimated 38–47 tokens per second on an RTX 4090 is ample. Choice: RTX 4090, used a few hours a week, stopped between sessions.

A ten-person company replacing a hosted AI API. Model: Llama 3.3 70B FP8. VRAM: 70 GB weights + ~26 GB KV for ten users with 8k contexts + headroom ≈ 105 GB. That rules out every 80 GB card for this concurrency. Choice: H200 at 141 GB, or an H100 with shorter context limits if the team accepts them. Speed: an estimated 41–51 tokens per second for one user on an H200, more in aggregate under load.

A researcher fine-tuning on a domain dataset. Model: an 8B base with LoRA. VRAM: 16 GB BF16 weights + 4–10 GB for adapters, optimiser and activations with gradient checkpointing ≈ 20–26 GB. Choice: L40S at 48 GB for comfort, or an RTX 4090 with smaller batches. If the run would take more than a day, an H100 at roughly 2× the L40S's compute may cost less in total.

What mistakes do people make when choosing a GPU?

The common mistakes are sizing for weights only, paying for speed nobody needs, comparing hourly prices instead of cost per unit of work, and splitting across GPUs when one bigger card would do.

  • Forgetting KV cache and concurrency, then hitting out-of-memory under real traffic.
  • Renting an H100 for an 8B model used by one person.
  • Comparing an H100 PCIe price with an H100 SXM price as if they were the same product.
  • Choosing two 48 GB cards over one 96 GB card for a model that fits on the larger one.
  • Leaving a machine running overnight, which can cost more than the difference between any two cards.

Which Wandering Giants Compute GPU should you choose?

On Wandering Giants Compute, every GPU card shows what it can run, and every one-click model lists its minimum VRAM, so steps 1 and 2 are largely done for you. Pick a model in Chat or API mode and we put it on a card that fits; use Root for anything else.

If your workload is…ChooseMemoryPrice per hour
Models up to ~14B, image generation, small fine-tunesRTX 409024 GB$1.59/hr
Models up to ~32B, or 70B squeezed to 4-bitL40S48 GB$1.89/hr
70B quantised, long contexts, serious fine-tunesA100 80GB80 GB$3.79/hr
70B models served to a team, fastH100 PCIe80 GB$4.99/hr
70B at full speed on one card, big image/video modelsRTX PRO 600096 GB$4.89/hr
Very large models, very long contextsH200141 GB$9.09/hr
Largest open models quantised, fast trainingB200180 GB$15.49/hr
235B-class models in FP8 on one GPUB300288 GB$18.09/hr

You can also stack 2, 4 or 8 of the same card in one machine. Billing is by the minute from prepaid credit, so trying two cards for an hour each to measure real speed costs two hours, and the machine stops itself if credit runs out. Prices show in your own currency, with tax included where your country expects it.

We are not the cheapest per hour; marketplaces such as Vast.ai list lower prices, with reliability that varies by host. If you want the card you chose running in minutes, with a model ready or full root access, see the GPUs and prices.

Frequently asked questions

What is the most important spec when choosing a GPU for AI?

GPU memory (VRAM), because a model that does not fit will not run at useful speed. Once it fits, memory bandwidth decides LLM generation speed and compute (FLOPS) decides prompt processing, image generation and training speed.

Which GPU do I need to run Llama 3.3 70B?

In FP8 the weights are about 70 GB, so an 80 GB card such as an H100 or A100 runs it with a modest context. For long contexts or many users, a 96 GB RTX PRO 6000 or 141 GB H200 gives more room. In 4-bit it fits a 48 GB L40S at lower quality and speed.

Is an RTX 4090 good enough for AI?

For models up to about 14B parameters, image generation with SDXL or FLUX (with FP8 or offloading for FLUX), Whisper and LoRA fine-tunes of small models, yes. Its 24 GB of memory is the limit; it cannot hold 32B models in 16-bit or 70B models at all.

Should I pick an A100 or an H100?

Pick the H100 if you want FP8, faster prompt processing or faster training; it has about 2.4 times the dense BF16 compute of an A100. For bandwidth-bound chat on a model that fits, the two PCIe cards are close (1.9 vs 2.0 TB/s), so the A100 can be better value if it is cheaper.

How much GPU do I need for fine-tuning?

LoRA on an 8B model fits a 24–48 GB card. QLoRA on a 70B model fits an 80 GB card. A full fine-tune needs roughly 16–20 bytes per parameter, so about 128–160 GB for an 8B model, which means a B200 or several 80 GB GPUs.

Should I rent one big GPU or several smaller ones?

One big GPU whenever the workload fits on it. Splitting a model across cards adds communication overhead and complexity. Use several GPUs when nothing single is big enough, or to run independent copies of a model for more throughput.

How do I compare GPU prices fairly?

Convert to cost per unit of work: hourly price ÷ millions of tokens per hour, or hourly price × hours per 1,000 images. A faster card at a higher hourly price can be cheaper per token. Also compare the same variant (PCIe vs SXM), billing unit and whether tax is included.

Wandering Giants Compute

Rent the GPU for this, by the minute.

Found your GPU? Launch it in minutes, from a 24 GB RTX 4090 to a 288 GB B300, with a model ready or full root access.

Prepaid credit, billed by the minute, stops itself when credit runs out. Prices in £, $, €, ¥, CA$, A$, CHF and S$; UK prices include VAT.

Keep reading

About this article. Written by the Wandering Giants Compute team, the people who run Wandering Giants Compute. Hardware figures are the manufacturers’ published specifications. Speeds and costs marked as estimates are worked out from those specifications and our current prices, with the method shown; they are not measured benchmarks. Wandering Giants prices are taken live from our price list each time this page is built.

Last reviewed 25 November 2026.