ThoughtsInWords

Estimating GPU for AI Requirements

Date: July 15, 2026

Introduction

Choosing the right GPU—or the right number of them—is one of the most consequential decisions in an AI project. Over-provision and you burn budget on idle silicon. Under-provision and your training run crashes at hour forty-seven with an out-of-memory error you could have predicted on a napkin. This article walks through the reasoning, formulas, and practical guardrails for estimating GPU requirements across training and inference workloads.

The Core Formula

The starting point for any GPU estimation is deceptively simple:

Total VRAM (GB) ≈ Parameters (B) × (Precision bits / 8) × Overhead Factor

Breaking this down:

Quick Examples

Model Precision Base Size With 1.2× Overhead
7B FP16 14 GB ~17 GB
13B FP16 26 GB ~31 GB
70B FP16 140 GB ~168 GB
7B INT4 3.5 GB ~4.2 GB
70B INT4 35 GB ~42 GB

A 7B model at INT4 precision fits comfortably on a consumer GPU. That same model at FP16 requires a professional-grade card. At 70B parameters, even INT4 demands serious hardware.

Inference vs. Training: Two Very Different Profiles

The memory budget for inference and training diverge significantly—often by a factor of 4× to 6×.

Inference Memory

During inference, memory consumption comes from three sources:

  1. Model Weights: The static footprint, determined by parameter count and precision.
  2. KV Cache: The key-value pairs stored during autoregressive generation. This is often the largest runtime overhead and scales linearly with sequence length and concurrent users.
  3. Framework Overhead: CUDA contexts, memory allocators, and runtime buffers typically add 15–20%.

The KV cache deserves special attention. For a model serving long-context requests (32K+ tokens) to multiple users simultaneously, the KV cache can easily exceed the weight memory itself. When planning inference hardware, always estimate for peak concurrency, not average load.

Training Memory

Training is far more memory-hungry. On top of the model weights, you must account for:

  1. Gradients: One copy of gradients for every parameter—same size as the weights.
  2. Optimizer States: Adam-family optimizers maintain two moment estimates per parameter. With FP32 precision, that’s 12 bytes per parameter (4 for the gradient, 4 for the first moment, 4 for the second moment).
  3. Activations: Intermediate values saved for backpropagation. These scale with batch size, sequence length, and model depth.

Rule of thumb: If a model requires X GB of VRAM for inference, plan for at least 4× to 6× that amount for full fine-tuning.

Component Inference Training (Full Fine-Tune)
Model Weights ✓ ✓
KV Cache ✓ (large) Small
Gradients ✗ ✓ (same size as weights)
Optimizer States ✗ ✓ (2–3× weight size)
Activations Small ✓ (scales with batch)
Typical Total ~1.2× weights ~4–6× weights

Quantization: Trading Precision for Capacity

Quantization is the single most effective lever for reducing GPU requirements without replacing hardware. By reducing numerical precision, you shrink the memory footprint proportionally.

Format Bits per Param 7B Model Size 70B Model Size Quality Impact
FP32 32 28 GB 280 GB Baseline
FP16 16 14 GB 140 GB Negligible
INT8 8 7 GB 70 GB Minimal
INT4 4 3.5 GB 35 GB Slight degradation
FP4 4 3.5 GB 35 GB Architecture-dependent

Modern quantization techniques like GPTQ, AWQ, and GGML have matured to the point where INT4 models retain most of their quality for common tasks. The trade-off is measurable but often acceptable, especially for inference-heavy deployments where throughput matters more than the last fraction of a percent in benchmark accuracy.

When Quantization Is Not Enough

Quantization reduces the per-parameter footprint but cannot eliminate the scaling problem. A 405B parameter model at INT4 still requires ~200 GB—well beyond any single GPU. At this scale, model parallelism across multiple GPUs becomes unavoidable.

The GPU Landscape for AI

Understanding what hardware is available—and what it is designed for—helps match workload to silicon.

Feature RTX 4090 NVIDIA A100 NVIDIA H100 NVIDIA B200
Architecture Ada Lovelace Ampere Hopper Blackwell
VRAM 24 GB GDDR6X 80 GB HBM2e 80 GB HBM3 192 GB HBM3e
Memory Bandwidth ~1.0 TB/s ~2.0 TB/s 3.35 TB/s 8.0 TB/s
NVLink N/A 600 GB/s 900 GB/s 1.8 TB/s
Target Workload Dev / Local Inference General AI Training & Inference Frontier-Scale AI

Choosing the Right GPU

A Practical Estimation Workflow

Here’s a step-by-step process for estimating GPU requirements:

Step 1: Define the Workload

Decide whether you are optimizing for training, fine-tuning, or inference. Each has a fundamentally different memory profile.

Step 2: Calculate Base Memory

Base VRAM = Parameters (B) × Bytes per Parameter

For FP16: 7B × 2 bytes = 14 GB
For INT4: 7B × 0.5 bytes = 3.5 GB

Step 3: Add Workload-Specific Overhead

Step 4: Match to Hardware

Compare your estimated VRAM to available GPUs. If the total exceeds a single GPU’s capacity, plan for tensor parallelism across multiple GPUs.

Step 5: Profile and Validate

Never trust napkin math alone. Use profiling tools and specialized calculators:

Run a short pilot with representative data at your target batch size and sequence length. Actual memory usage often differs from theoretical estimates by 10–30%.

Common Pitfalls

  1. Ignoring the KV cache: Many teams estimate only weight memory and are surprised when inference OOMs under concurrent load.
  2. Confusing inference and training budgets: A GPU that runs inference comfortably may crash during the first backward pass of training.
  3. Over-provisioning from peak estimates: Theoretical maximums are useful for hard limits but poor guides for typical usage. Profile real workloads before committing to expensive hardware.
  4. Forgetting framework overhead: PyTorch, vLLM, and TensorRT each have different memory footprints for the same model. The serving framework matters.
  5. Neglecting memory bandwidth: A GPU with enough VRAM but insufficient bandwidth will load the model but generate tokens painfully slowly. Bandwidth is the inference bottleneck—VRAM is just the entry ticket.

Conclusion

GPU estimation for AI is not a single calculation—it is a workflow. Start with the parameter count, apply precision and overhead multipliers, account for whether you are training or serving, and validate against real hardware. The difference between a well-estimated GPU budget and a guess can be thousands of dollars per month in cloud costs or the difference between a project that ships and one that stalls in infrastructure procurement.

The field is moving fast. Quantization techniques improve every quarter, new hardware generations shift the boundaries of what fits on a single card, and frameworks continuously optimize their memory efficiency. Treat your GPU estimates as living documents—revisit them as your models, workloads, and available hardware evolve.