Architecture & SizingPublished 2026-11-27·7 min read

VRAM Sizing Guide: Matching Llama 3.1, DeepSeek-R1, Qwen & FLUX.1 to the Right GPU

Over-provisioning wastes hourly budget; under-provisioning triggers CUDA out-of-memory crashes mid-prompt. Use exact gigabyte math to size weights, KV cache, and batch headroom.

The Core VRAM Formula for LLM Serving

Model parameter count times bytes per parameter gives only the static weight footprint. Production inference with vLLM or SGLang must reserve room for CUDA activations (~1.5–3 GB) plus the Key-Value (KV) cache, which grows linearly with batch size and context length.

  • BF16 / FP16 weights = ~2.0 GB per 1B parameters (Llama 3.1 8B ≈ 16 GB)
  • FP8 weights = ~1.0 GB per 1B parameters (Qwen 32B FP8 ≈ 32 GB)
  • 4-bit AWQ / GPTQ / Q4_K_M = ~0.55 GB per 1B parameters (Llama 70B Q4 ≈ 39–40 GB)
Required VRAM (GB) ≈ (Params_B * Bytes_Per_Param * 1.15) + KV_Cache_GB

Practical Single-GPU Thresholds

16 GB tier (RTX 5080, RTX 5060 Ti, RTX 4060 Ti): cleanly serves 8B FP8/BF16, 14B Q4, SDXL, and Faster Whisper Large-v3.

24 GB tier (RTX 4090, RTX 3090): fits FLUX.1 Dev FP8 + LoRA adapters cleanly with headroom, plus 8B BF16 or 14B–32B heavily quantized models at short context.

32 GB tier (RTX 5090): comfortably serves 32B Q4 models (Qwen 2.5 / DeepSeek-R1 32B) with 10+ GB KV cache headroom and handles full-precision Wan2.1 video pipelines.

48 GB ECC tier (L40S): unlocks single-GPU 70B 4-bit serving without multi-card PCIe split overhead.

80 GB HBM tier (A100, H100 SXM): required for 70B FP8 inference, 128K context concurrency, or Unsloth QLoRA/full fine-tuning.

Related Questions

What is the cheapest GPU for FLUX.1 Dev + ControlNet in ComfyUI?

24 GB RTX 3090 (from $0.172/hr marketplace) and Amsterdam RTX 4090 ($0.49/hr) fit Flux.1 Dev cleanly with room for LoRAs.

Can one GPU serve Llama 3.1 70B without tensor parallelism?

Yes. A 48 GB NVIDIA L40S ($0.69/hr in Frankfurt) runs 70B 4-bit AWQ (~40 GB weights) on one card with 8 GB KV cache headroom.

Deploy in Console