Local LLM Hardware Sizing Rules
VRAM Breakdown
- Model Weights = Params (B) x Bytes/Param (Q4_K_M ~0.58GB/B, Q8_0 ~1.06GB/B, FP16 ~2.0GB/B).
- KV Cache grows with context length (4K to 128K) and concurrent batch size.
- Keep total usage under 88% of GPU VRAM to avoid CUDA out-of-memory crashes.
Token Speed & Cloud vs Buy
- Single-user generation speed (tok/s) is bottlenecked by GPU memory bandwidth.
- MoE models (like 109B/17B active) need VRAM for all weights but run at 17B speed.
- Renting cloud GPUs wins below ~4-6 hours/day; buying pays back faster for 24/7 workloads.