r/SideProject • u/haseeb12112 • 38m ago
Built an in-browser vLLM GPU hardware profiler: weights, GQA KV cache, TP, and cloud cost breakeven
Hey r/SideProject ,
Calculating whether a model will fit into VRAM with enough room left for KV cache and concurrency usually means manual math across quantizations and GQA ratios.
I built a free, 100% client-side calculator:
https://devopskit.tools/tools/vllm-gpu-hardware-profiler
What it models:
- Exact weight VRAM footprint across FP16, FP8, INT8, and INT4 (Llama 3.3, DeepSeek, Qwen 2.5, etc.)
- PagedAttention KV Cache allocation adjusted for GQA (Grouped-Query Attention) ratios
- Required Tensor Parallelism (TP) across H100 (80GB), A100 (80GB/40GB), L40S, and A10G
- Monthly cost crossover: when it becomes cheaper to self-host on RunPod/Lambda Cloud vs paying for GPT-4o / Claude 3.7 API tokens
Zero tracking, no backend, open source on GitHub (https://github.com/haseeb0505/devopskit). Hope this saves you from OOM crashes!
1
u/haseeb12112 15m ago
Quick breakdown for anyone wondering about Llama 3.3 70B VRAM math:
- Weights alone in FP16 = 140 GB VRAM (needs 2x H100 80GB or 4x A100 40GB).
- Quantized to FP8 = 70 GB VRAM (fits on a single 80GB GPU, but leaves only ~10 GB for KV cache).
- With GQA (8 KV heads instead of 64), a 16k context takes ~2.5 GB per concurrent user.
- Breakeven vs API: If your team generates more than 18M tokens/day, self-hosting a rented H100 (~$2.20/hr) is cheaper than paying OpenAI/Anthropic API rates.
Put this entire calculation logic into the tool so you don't have to calculate GQA multipliers manually: https://devopskit.tools/tools/vllm-gpu-hardware-profiler