Compute

How many GPUs do you actually need? A sizing guide for fine-tuning and inference

Most teams over-buy for training and under-plan for inference. Some simple arithmetic gets you close before you talk to anyone.

VVeltora AI team
Graphics card with three cooling fans

GPU sizing looks mysterious, but most of it comes down to memory. If the model, its training state and a batch of data do not fit in GPU memory, nothing else matters. Here are the rules of thumb we use on sizing calls.

Inference: start with the weights

At 16-bit precision, each parameter takes 2 bytes. A 7-billion-parameter model needs about 14 GB just for its weights. A 70B model needs about 140 GB, which means at least two 80 GB GPUs before you add anything else.

Then add the KV cache, the memory that holds conversation context. Long prompts and many simultaneous users can need as much memory again as the weights. Quantising to 8-bit or 4-bit roughly halves or quarters the weight memory, often with little quality loss.

Full fine-tuning: multiply by eight or more

Training keeps the weights, gradients and optimizer state in memory. With the common Adam optimizer and mixed precision, budget around 16 bytes per parameter before activations. A full fine-tune of a 7B model wants well over 100 GB, so plan for a multi-GPU node.

LoRA and QLoRA: the practical option

Parameter-efficient fine-tuning trains small adapter layers and freezes the rest. A 7B or 8B model can be LoRA-tuned on a single 80 GB GPU. With 4-bit QLoRA, even 70B models become workable on one or two GPUs. For most business use cases, this is where we start.

JobModel sizeTypical starting point
Inference, 16-bit7–8B1 GPU (24–80 GB)
Inference, 16-bit70B2–4 × 80 GB GPUs
LoRA fine-tune7–8B1 × 80 GB GPU
QLoRA fine-tune70B1–2 × 80 GB GPUs
Full fine-tune7–8B1 node of 8 GPUs
Full fine-tune70BSeveral 8-GPU nodes with fast interconnect

Then think about time

Memory tells you the minimum. Time tells you how many more GPUs are worth paying for. Doubling GPUs roughly halves wall-clock time for well-parallelised jobs, until communication overhead catches up. That is why multi-node training needs InfiniBand-class networking.

The cheapest sizing tip

Run one epoch on a small sample on demand, measure throughput, then extrapolate. A day of on-demand time can save you from reserving the wrong cluster for six months. Talk to us about a sizing run.

Start with a conversation, not a proposal.

Thirty minutes with someone who has built this before. If we're not the right fit, we'll say so and point you to who is.