DEV Community

chasewong
chasewong

Posted on Originally published at aisiliconpulse.com

How Much VRAM Does vLLM Need? A KV Cache Sizing Guide

Originally published on Silicon & AI Pulse.

Model weights are only half your VRAM budget when self-hosting large language models. Once concurrency climbs or prompt contexts stretch from 8K to 32K tokens, vLLM’s PagedAttention KV cache pool determines whether a 70B model runs cleanly on a single 141GB Nvidia H200 or spills onto a multi-GPU H100 node.

Architectural Estimate Notice: All VRAM figures below are architectural formula estimates grounded in Llama 3.1 / 3.3 70B Grouped-Query Attention (GQA) layer geometry and official vLLM CacheConfig documentation, rather than empirical GPU bench measurements.


Where Every Gigabyte of vLLM VRAM Goes

Under vLLM’s CacheConfig, total GPU VRAM (total_vram * gpu_memory_utilization, where gpu_memory_utilization defaults to 0.90) is partitioned into three buckets:

  1. Static Model Weights: Llama 3.1 / 3.3 70B Instruct (~70B parameters) requires ~70 GiB in FP8 (~1 byte/param) or ~140 GiB in BF16.
  2. Runtime Buffers + 10% Outside Reserve: vLLM reserves ~10% of VRAM outside the executor pool (~8 GiB on an 80GB H100; ~14.1 GiB on a 141GB H200), plus ~4–8 GiB inside the pool for activations and CUDA graphs.
  3. Dynamic KV Cache Pool: The remaining executor memory becomes PagedAttention blocks for active requests.

Exact KV Cache Sizing Formula (Llama 70B GQA)

Llama 70B uses 80 Transformer layers, 8 KV heads, and a 128 head dimension across Keys and Values (2x):

Bytes_per_Token = 2 (K+V) × 80 layers × 8 KV_heads × 128 head_dim × dtype_bytes
Total_KV_GiB    = (Bytes_per_Token × Active_Context_Tokens × Concurrent_Sequences) ÷ 1,073,741,824
Enter fullscreen mode Exit fullscreen mode
  • kv_cache_dtype="auto" (BF16, 2 bytes): 320 KiB/token -> 2.50 GiB per 8K sequence or 10.00 GiB per 32K sequence.
  • kv_cache_dtype="fp8" (FP8, 1 byte): 160 KiB/token -> 1.25 GiB per 8K sequence or 5.00 GiB per 32K sequence (~50% KV footprint reduction).

Context × Concurrency Sizing Matrix (70B FP8 Weights, Est.)

Workload Scenario KV Cache (BF16 Est.) KV Cache (FP8 Est.) Total Pool w/ FP8 KV* Minimum GPU Fit (0.90 Util)
8K Context × 8 Concurrent 20.0 GiB 10.0 GiB ~86.0 GiB 1× H200 (126.9 GiB pool)
8K Context × 32 Concurrent 80.0 GiB 40.0 GiB ~116.0 GiB 1× H200 w/ FP8 KV (2× H100 if BF16)
32K Context × 8 Concurrent 80.0 GiB 40.0 GiB ~116.0 GiB 1× H200 w/ FP8 KV (2× H100 if BF16)
32K Context × 32 Concurrent 320.0 GiB 160.0 GiB ~236.0 GiB 2× H200 or 4× H100

*Assumes ~70 GiB FP8 model weights + estimated FP8 KV cache + ~6 GiB internal activation/CUDA-graph buffers, zero prefix-cache sharing.


Starter Launch Configuration

vllm serve meta-llama/Llama-3.3-70B-Instruct \
  --quantization fp8 \
  --kv-cache-dtype fp8 \
  --gpu-memory-utilization 0.90 \
  --max-model-len 32768
Enter fullscreen mode Exit fullscreen mode

Read the full engineering breakdown—including the 1× H200 141 GiB budget breakdown chart, token cost links, and FAQ—on Silicon & AI Pulse:
👉 Read the full guide on Silicon & AI Pulse

Related benchmarks:


AI Content Disclaimer: Prepared December 2, 2026 with AI-assisted research synthesis based on Llama 70B GQA layer math and official vLLM CacheConfig documentation. All VRAM figures are architectural formula estimates for engineering reference only.

Top comments (0)