FREE BROWSER CALCULATOR ($0) · 214 CATALOG MODELS
LLM VRAM & KV cache calculator
Pick any of 301 open-weight models, choose quantization (FP16, Q8, Q4_K_M, Q3) and context window (4K–128K), and check whether your GPU fits under the 85% threshold (8.0 GB to 192 GB+).
1. Model, quantization & context
2. VRAM, KV cache & decode speed
FitsQwen3.8 27B (Q4_K_M, scaled from parameter count) at 8K context. Status: Fits. Speed figure is a theoretical memory-bandwidth ceiling for single-stream generation, not a measured local benchmark.
Questions
How is LLM VRAM calculated for weights and KV cache?
Total VRAM equals weight file size + (KV cache bytes per token × context window) + 0.5 GB runtime overhead. A model fits comfortably when total VRAM is at most 85% of your GPU or unified memory.
Why does long context (32K–128K) increase VRAM so quickly?
Every extra token in the context window allocates key and value tensors across every transformer layer. At 64K or 128K tokens, KV cache alone can exceed the model weights on 8 GB to 24 GB GPUs.
How are tokens per second (tok/s) estimated?
Single-stream LLM decoding is memory-bandwidth bound, so theoretical peak decode speed scales with memory bandwidth (GB/s) divided by active weight size (GB) at roughly 80% bus utilization.
What can I do if my GPU runs out of memory (OOM)?
Either step down to a smaller GGUF/MLX model or Q4_K_M quantization that fits your local memory, or rent a cloud GPU by the hour on /rent-gpu when you need full 32B–70B+ quality.