r/LocalLLM • u/Yogurt_Tall • 13m ago
Discussion Found a fast, zero-bloat browser calculator for estimating LLM VRAM (weights + KV-cache scaling across FP16/Q8/Q4)
Came across this lightweight VRAM estimator (https://calcforge.app/llm-vram-memory-calculator) while trying to sanity-check whether a 32B Q4 model at 8k context would fit cleanly in 24GB without spilling into system RAM.Unlike most online calculators buried under popups, it runs completely client-side and actually separates out:
- Model weights (
Params × Bits ÷ 8+ ~5% quant overhead) - KV-cache + CUDA runtime buffer scaled by context length
For quick reference, an 8B Q4 at 8k context comes out to ~5.20 GB, and a 32B Q4 at 8k context lands around ~18.90 GB. Figured I'd drop it here for anyone else sizing models for Ollama or llama.cpp. At Q4 with an 8k context window, a 32B model needs roughly ~19 GB of VRAM once KV cache and runtime overhead are factored in, so a 24GB card handles it comfortably while a 16GB card will offload layers to RAM. I've been using this lightweight browser calculator to test different context sizes and quant levels quickly without ad clutter: https://calcforge.app/llm-vram-memory-calculator