Local tool
Local model VRAM estimator for weights and KV cache
Estimate weight footprint, KV cache and per-device memory for Gemma, DeepSeek, Qwen or Llama from your own model and runtime inputs.
Sources checked:
What you can do
Identify a memory budget and measure actual peak allocation before choosing hardware.
Estimate weights using full checkpoint size or total parameter count and bit width. Add KV cache at the expected context and concurrency, then account for device sharding and engine overhead.
Estimate inference memory
Build your execution checklist
Inputs are processed in this browser only and cleared when you close or refresh the page.
You know the model artifact and target throughput.
Read the full steps
Make a per-device memory budget
You know the model artifact and target throughput.
- For a MoE checkpoint such as a Gemma, Llama or DeepSeek variant, use full resident weights or known total parameters. Activated parameters describe a different workload property.
- Use measured KV bytes per token where possible. A conventional uncompressed attention approximation is 2 × layers × KV heads × head dimension × element bytes; compressed, hybrid and paged implementations need their own runtime estimate.
- Add runtime GiB per device, then compare evenly split memory with actual loading and parallelism. Check CPU offload and uneven shard allocation separately.
Test usable context, memory and throughput
You need to prove that a model handles the target input and concurrency.
- Pin exact model hash, artifact precision, runtime, hardware, image inputs, context and parallel sequences. Reserve space for response tokens.
- Run short, middle and near-limit inputs, with synthetic clues placed at different positions. Record prefill peak, decode peak, time and response correctness.
- Inspect the runtime’s chosen context limit and repeat with the intended concurrency. Take the maximum observed memory and the workload acceptance condition into deployment configuration.
Scope & limits
- Weight metadata, accelerator allocation, KV compression and runtime sharding can diverge from the estimate. A zero KV input leaves that component out.
Questions & answers
- Why include total MoE parameters?
- A GPU may need to hold all experts assigned to it even though each token activates only a subset. Offload and parallelism change the resident footprint.
Verified sources
- Gemma models
- DeepSeek V4.1 Flash model card
- DeepSeek KV cache technical report
- vLLM Qwen recipe
- vLLM engine options
- Meta Llama repository
- Llama serving recipes
Templates are authored by Kunavo. External product behavior depends on the linked sources and your account settings.