Interactive Utility
Local LLM Hardware Sizer
Stop guessing your hardware needs. Calculate the exact VRAM required for inference based on parameter count, quantization, and KV cache, and see which machines can actually run it.
Model
Custom: billion
The community default. Best size-to-quality ratio.
Memory to run it
- Weights (Q4_K_M)
- 4.8 GB
- KV cache (8k)
- 1.0 GB
- Runtime overhead
- 1.5 GB
- System RAM to load
- 8 GB
- Model file on disk
- 5.1 GB
Hardware match
MacBook Air M-series (16GB) or RTX 4060 (8GB)
Fits a modern laptop or an entry gaming GPU.
Rough decode speed
~62 tok/s
Ballpark on RTX 4070-class, bounded by memory bandwidth. Real numbers land 30–50% either side depending on framework, prompt length and thermals.
Popular Models
Embed this Calculator
Add this tool to your blog, documentation, or internal wiki.
<iframe src="https://fathomlayer.com/embed/hardware-calculator" width="100%" height="600" frameborder="0" style="border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);"></iframe>
How this math works
Running Large Language Models locally is entirely bottlenecked by memory. Raw compute (TFLOPS) dictates your generation speed, but VRAM capacity dictates if the model will load at all.
- Model Weights: At FP16 (unquantized), every 1 Billion parameters requires ~2GB of VRAM. At Q4 (4-bit quantization), that drops to ~0.7GB per 1B parameters.
- KV Cache (Context Window): As you feed text into the model, it stores attention states in memory. A 32k context window on a 70B model requires several extra Gigabytes of RAM independent of the model weights.
- Overhead: CUDA and operating systems reserve memory (usually 1-2GB), meaning a 24GB RTX 4090 cannot realistically load a 23.5GB model.
