>_
CLOUDCOST SNIPER
AI Token & Cloud GPU FinOps Terminal
GPU ARCHITECTURE • VRAM & KV CACHE • 2026 Benchmarks

Deterministic GPU VRAM Sizing Formula for Self-Hosted LLMs: Weights, KV Cache, Batch Concurrency & FP8

MV Marcus Vance • Principal Cloud FinOps Architect • Audited vs. 2026 Provider Rate Cards (OpenAI, Anthropic, AWS, RunPod, Cloudflare) • Updated: 2026-11-30
Executive FinOps Summary: Total GPU VRAM required for production LLM serving equals static model weights (`Parameters × Bytes_Per_Weight`) plus dynamic KV-cache memory (`2 × Layers × KV_Heads × Head_Dim × Context_Len × Concurrency × Bytes`), plus 12%–15% CUDA graph and activation overhead.
Frontier → Flash Cascade: $0.28–$0.35 / 1M tok (-91% vs raw)
Prompt Cache Read: -72% to -90% hit discount
H100 80GB Spot Bench: $1.99/hr RunPod vs $4.10 AWS
R2 vs AWS S3 Egress: $0.00/GB vs $90/TB bandwidth tax
Deterministic GPU VRAM Sizing Formula for Self-Hosted LLMs: Weights, KV Cache, Batch Concurrency & FP8 — CloudCost Sniper FinOps Architecture Diagram
Benchmark Reference: GPU VRAM Sizing Guide for LLM Inference (2026): Model Weights, KV Cache & FP8 Quantization Verified Rate Cards • 2026

1. The Exact VRAM Equation: Why a 70B Model Overflows 140 GB Under Load

A 70-billion-parameter model stored in BF16 (2 bytes per parameter) consumes 140 GB for static weights alone—leaving virtually zero headroom on 2x 80GB A100/H100 GPUs once CUDA workspaces and concurrent user KV caches allocate memory.

Thanks to Grouped-Query Attention (GQA) and native FP8 tensor cores on Ada Lovelace (L40S) and Hopper (H100/H200) GPUs, quantizing both weights and the KV cache to FP8 cuts static weight memory in half (~70 GB) with negligible perplexity loss (<0.3% on coding and math benchmarks), unlocking 32+ concurrent long-context streams on 2x 80GB GPUs—or single-GPU serving with INT4 AWQ.

2. Memory Bandwidth (TB/s) Dictates Tokens-Per-Second, Not Just TFLOPS

During token generation (decode phase), every forward pass reads the entire weight matrix from GPU HBM memory. An H100 SXM delivers 3.35 TB/s of memory bandwidth (4.8 TB/s on H200) compared to 864 GB/s on an L40S, explaining why H100/H200 dominates high-concurrency low-latency APIs while L40S excels at cost-efficient medium-batch workloads.

2026 Engineering Reference Matrix

Model ScaleBF16 WeightsFP8 WeightsINT4 AWQ WeightsRecommended Production GPU
8B – 14B Dense16 – 28 GB8 – 14 GB4.5 – 8 GB1x L40S 48GB or 1x A10G/RTX 4090
32B Dense / Reasoning64 GB32 GB18 GB1x H100 80GB (FP8) or 1x L40S 48GB (INT4/FP8)
70B – 72B Dense140 – 144 GB70 – 72 GB38 – 40 GB1x H200 141GB (FP8) or 2x H100 80GB
MoE 230B–671B (FP8)1.3+ TB240 – 680 GB140 – 360 GB8x H100 / H200 NVLink Node
Model your exact production workload parameters locally in your browser: Compare H100, A100 & L40S Cluster Costs →

Frequently Asked Engineering Questions

Does vLLM PagedAttention reduce peak VRAM requirements?

Yes. PagedAttention eliminates up to 60% of KV-cache fragmentation waste by allocating attention blocks in non-contiguous fixed-size pages, directly multiplying max batch concurrency.

Should we quantize KV cache to FP8 alongside weights?

On Hopper (H100/H200) and Ada (L40S) GPUs, enabling `--kv-cache-dtype fp8` doubles effective context capacity for long-document RAG workloads with virtually zero quality degradation.

Related FinOps Guides & Calculators

Browse All Engineering Guides →