vLLM VRAM & Speed Estimator

Estimate weights, KV-cache and total VRAM, plus decode / prefill throughput for vLLM — single or multi-GPU with tensor parallelism.

1 · Hardware

With >1 GPU, weights and KV cache split across GPUs (tensor parallel). Interconnect efficiency: NVLink ≈ 0.95, InfiniBand ≈ 0.85.

2 · Model

Params are editable per quantization — switch chips to adjust each one. Use this to model hybrid checkpoints (e.g. DeepSeek V4 Flash: experts in FP4 ≈ 160 GB, not 284 GB).

3 · Architecture (KV cache)

4 · Serving

Overhead ≈ 1.5 GB per GPU (CUDA context + vLLM workspace + activations).

Results

Weight memory (selected quant)—
KV cache @ seq × batch—
Fixed overhead—
Total VRAM required—
VRAM available (× GPUs)—
Headroom / shortfall—
Max concurrent requests (at set seq)—
Fill the form and press Estimate.

Throughput

Decode, per request (batch 1)—
Decode, aggregate at batch N—
Prefill speed—
TTFT for prompt length—

Context-length impact (batch 1)

ContextKV cacheTotal VRAMFits?Decode tok/s

Methodology & caveats

Weights: params of the selected quantization chip × B/param (FP16/BF16 = 2, FP8 = 1, INT4 ≈ 0.65, GGUF Q4_K_M ≈ 0.58). Quantization directly reduces weight memory and thus affects the fit decision. KV cache: 2 (K+V) × layers × KV-heads × head-dim × seq × batch × dtype-bytes. Fit (multi-GPU / TP): available VRAM = vram × GPU count; weights + KV split evenly, so total = wBytes + kvBytes + 1.5 GB × GPUs. Decode (bandwidth-bound): (bw × GPUs) ÷ (weight-bytes + one KV row) × eff × interconnect-eff × batch. Splitting weights reduces bytes-per-token per GPU, so TP helps decode. Prefill (compute-bound): (FP16-TFLOPS × GPUs) ÷ (2 × active-params) × prefEff × interconnect-eff. Interconnect: NVLink ≈ 0.95, InfiniBand ≈ 0.85 efficiency — approximate; InfiniBand has higher bandwidth but higher latency, so it costs decode more than prefill. DGX Spark GX10 (GB10): 128 GB unified LPDDR5x (273 GB/s) shared CPU+GPU; usable CUDA pool is ~120 GB, so its "available VRAM" here is optimistic — subtract CPU/OS usage. FP16 tensor throughput ≈ 213 TFLOPS. Hybrid-quantized models: e.g. DeepSeek V4 Flash 0731 stores MoE experts in FP4 while attention stays FP8 → real footprint ≈ 160 GB, not 284 GB. Set the FP8/INT8 params field accordingly (it fits 2× DGX Spark, per the official vLLM recipe). All figures are estimates — verify with nvidia-smi and vllm serve logs.