Guides
LLM Fine Tuning GPU Requirements: What Actually Matters
If you're about to fine-tune a large language model, the first question isn't which model — it's how much VRAM you'll need and which GPU to rent. I've burned through more cloud GPU hours than I care to admit, and the biggest mistakes always come from underestimating memory or overpaying for compute. This guide walks through the real llm fine tuning gpu requirements, from single-GPU setups to multi-node clusters, with concrete numbers you can reason about before you spin up anything.
Why GPU Memory for LLM Fine Tuning Is the Bottleneck
Fine-tuning isn't like inference. You're not just loading weights and running forward passes — you're storing optimizer states, gradients, and activations for backprop. For a 7B parameter model in full precision (FP32), you'd need roughly 28GB just for the weights. But with Adam optimizer, you're looking at about 16 bytes per parameter: 4 for weights, 4 for gradients, 8 for optimizer states. That's 112GB for a 7B model — before activations. No wonder gpu memory for llm fine tuning dominates every hardware decision.
Most of us use LoRA or QLoRA to cut that down. With LoRA on a 7B model, you're only training adapters — maybe 0.1% of parameters. That drops memory to around 20-30GB, which fits on a single RTX 4090 or L40S. But if you're doing full fine-tuning on a 13B or 70B model, you're immediately in multi-GPU territory.
Best GPU for LLM Fine Tuning: It Depends on Model Size
There's no single "best" GPU. It's a trade-off between memory capacity, compute throughput, and hourly cost. Here's how I think about it:
- 7B or smaller with LoRA: RTX 4090 (24GB) or L40S (48GB) is plenty. You can even use a single A100 40GB if you want extra headroom.
- 13B full fine-tune: A100 80GB or H100 80GB — you need that 80GB for comfort. One GPU works, but you'll be tight on batch size.
- 70B with QLoRA: A single 80GB GPU works, but it's slow. Two A100s or H100s let you use 4-bit base model plus adapters with room for larger batches.
- 70B full fine-tune: You need 8x A100/H100 or 4x H200 (141GB each). No way around it — this is where llm fine tuning multi gpu becomes non-negotiable.
If you're renting, the best gpu for llm fine tuning is often the one with the most VRAM per dollar, not the newest chip. An H100 might be 2x faster than an A100, but if it costs 3x more, the A100 wins for memory-bound workloads.
LLM Fine Tuning GPU Comparison: What I Actually Check
When comparing GPUs for fine-tuning, I look at three things: VRAM capacity, memory bandwidth, and inter-GPU connectivity (for multi-GPU). Here's a generic comparison table — exact specs vary by vendor, but this is the shape of it:
| GPU | VRAM | Memory Bandwidth | Best For |
|---|---|---|---|
| RTX 4090 | 24GB | ~1TB/s | LoRA on 7B, small models |
| L40S | 48GB | ~864GB/s | LoRA on 13B, full fine-tune on 7B |
| A100 80GB | 80GB | ~2TB/s | Full fine-tune on 13B, QLoRA on 70B |
| H100 80GB | 80GB | ~3.35TB/s | Same as A100 but faster |
| H200 141GB | 141GB | ~4.8TB/s | Larger models, fewer nodes |
That bandwidth number matters more than you think. Fine-tuning is memory-bound — you're moving millions of tensors per step. A 4090 with 24GB might be fine for a 7B LoRA, but you'll feel the lack of bandwidth when you try to push batch size.
LLM Fine Tuning on Cloud GPU: Renting vs. Owning
I rent cloud GPUs almost exclusively. Why? Because fine-tuning is bursty — you might need 8 GPUs for a week, then nothing for a month. Buying that hardware is a sunk cost. LLM fine tuning on cloud gpu lets you scale up for a run and scale down to zero when you're done.
The catch is llm fine tuning gpu cost. Spot instances can cut costs by 60-70%, but you risk preemption mid-run. For a 70B full fine-tune that takes 48 hours, that's a real risk. I usually use on-demand for multi-GPU jobs and spot for single-GPU experiments where I can checkpoint easily.
When you're comparing cloud providers, don't just look at the hourly rate. Check the inter-node networking. For multi-GPU fine-tuning, NVLink or InfiniBand matters. If your provider gives you 8 GPUs on one node, you're fine. If they spread across nodes with 25Gb Ethernet, your training will crawl.
LLM Fine Tuning Multi GPU: When and How to Scale
You don't need multi-GPU until you hit the VRAM ceiling. If a 7B LoRA fits on 24GB, adding a second GPU doesn't help — it just adds communication overhead. But for full fine-tuning on 13B or larger, multi-GPU is the only path.
Two common setups:
- Data parallelism: Copy the model to each GPU, split the batch. Simple, but each GPU needs enough VRAM for the whole model plus optimizer states.
- Model parallelism (or tensor parallelism): Split layers across GPUs. Needed for models that don't fit on one GPU. More complex, but reduces per-GPU memory.
I've run 70B QLoRA on 2x A100 80GB using tensor parallelism — it worked, but the communication overhead was noticeable. For 70B full fine-tune, I'd go straight to 8x H100. That's where llm fine tuning gpu requirements guide becomes critical — you don't want to discover mid-run that your node has only 4 GPUs and you need 8.
Estimating GPU Memory for Your Fine-Tune Run
Here's a rough formula I use to estimate memory before renting:
- Start with the model size in billions of parameters. Multiply by 2 for FP16 weights (e.g., 7B × 2 = 14GB).
- For full fine-tuning, add optimizer states and gradients — multiply by 12 for Adam (or 16 for FP32). So 7B × 16 = 112GB total.
- For LoRA, add only ~10% of that — 7B × 2 (weights) + adapter overhead ≈ 15-20GB.
- Add activation memory — depends on batch size and sequence length. A good rule of thumb: add 20-30% headroom.
If your estimate exceeds a single GPU's VRAM, you're either going LoRA or multi-GPU. That's the whole game.
Nvidia GPU Specifics: What to Rent
When you're looking at llm fine tuning nvidia gpu options, you'll see A100, H100, H200, and consumer cards like RTX 4090. The A100 is the workhorse — it's been around for years, and cloud providers have tons of them. H100 is faster but pricier. H200 is the memory king — 141GB per GPU, which lets you fine-tune 70B with QLoRA on a single card.
Consumer GPUs like the 4090 are great for small experiments, but they lack ECC memory and NVLink. For production fine-tuning, I stick with data-center GPUs. The reliability is worth the premium.
FAQ
How much GPU memory do I need to fine-tune a 7B model?
For LoRA on a 7B model, you need about 16-24GB of VRAM. A single RTX 4090 or L40S works fine. For full fine-tuning, you need around 112GB, which means at least 2x A100 80GB or a single H200 141GB. If you're using QLoRA with 4-bit quantization, you can get down to 10-12GB, but you'll trade off training speed.
Is one 80GB GPU enough for fine-tuning a 13B model?
Yes, but it's tight. A 13B full fine-tune needs roughly 208GB of memory for weights, gradients, and optimizer states — that doesn't fit on 80GB. But with LoRA or QLoRA, you can fit it on a single 80GB GPU. For full fine-tuning, you'd need at least 3x A100 80GB or a single H200 141GB if you use mixed precision and gradient checkpointing.
What's the cheapest way to fine-tune a 70B model?
The cheapest is QLoRA on a single A100 80GB or H100 80GB, using 4-bit quantization. That will cost you around $2-4 per hour on most clouds)Skip. It's slow — maybe 10-20 hours for a small dataset — but it works. If you need speed, rent 8x A100 80GB on a multi-GPU node and use LoRA or full fine-tuning, but that's $20-30 per hour.
How much does LLM fine tuning cost on cloud GPUs?
It varies widely. A single RTX 4090 runs about $0.50-1.00 per hour; an A100 80GB is $1.50-3.00; an H100 is $3-6. A full fine-tune of a 7B model on one A100 for 10 hours costs $15-30. A 70B full fine-tune on 8x H100 for 48 hours could run $1,200-2,500. Spot instances can cut that by half, but you risk interruptions.
Do I need multiple GPUs for fine-tuning, or can I use one?
It depends on the model size and method. For 7B with LoRA, one GPU is enough. For 13B full fine-tuning, you need multiple. For 70B with QLoRA, one 80GB GPU works but is slow; multiple GPUs speed it up. Rule of thumb: if the model plus optimizer states fit in VRAM, one GPU is fine. If not, you need multi-GPU with model parallelism.
What's the difference between A100 and H100 for fine-tuning?
Both have 80GB VRAM, but H100 has about 3x the memory bandwidth and faster compute. For memory-bound fine-tuning, H100 trains noticeably faster — maybe 1.5-2x for the same job. But it costs 2-3x more per hour. If you're on a budget, A100 is often the better value. H100 shines when you're paying for time, not compute.