GPU VRAM & Quantization Sizing Advisor for vLLM
by finance_kim
Tell Claude which open-weight LLM you want to run, on which GPUs, with how much context and how many users.
Free
GPU VRAM & Quantization Sizing Advisor for vLLM
Example session with this skill installed
Will Llama 3.1 70B Instruct run on 2x A100 80GB for 16 concurrent users with 16k context? Give me the vLLM command.
- Read your context and instructions
- Compiled the gpu vram
VRAM sizing: llama-3.1-70b on 2x NVIDIA A100 80GB SXM
- Model: 70.55B params (published); 80 layers, 64 heads / 8 KV heads (GQA), head_dim 128, max context 131,072
- GPU: 2x NVIDIA A100 80GB SXM = 80 GiB each, 2039 GB/s, compute 8.0, FP8 native: no
- Workload: context 16,384, 16 concurrent, ~16,384 tokens per request, gpu_memory_utilization 0.90, KV dtype auto
- KV cache per token: 320 KiB at FP16 (160 KiB at FP8); this workload needs 80.0 GiB of KV in total
All sizes in GiB (1 GiB = 1024^3 bytes). Per-GPU figures assume tensor parallel = GPU count for vLLM.
| Format | Engine | Weights total | Weights/GPU | Overhead/GPU | Free for KV/GPU | KV tokens | Max concurrent | Max ctx (1 req) | ~Decode tok/s | Verdict |
|---|---|---|---|---|---|---|---|---|---|---|
| BF16 / FP16 | vllm (KV auto) | 131.4 | 65.7 | 2.9 | 3.4 | 22,304 | 1 | 22,304 | 20 | tight |
| FP8 (W8, on-the-fly or FP8 checkpoint) | vllm (KV auto) | 67.7 | 33.8 | 2.9 | 35.3 | 231,200 | 14 | 131,072 | 39 | tight |
| INT8 W8A8 checkpoint | vllm (KV auto) | 67.7 | 33.8 | 2.9 | 35.3 | 231,200 | 14 | 131,072 | 39 | tight |
| AWQ 4-bit g128 | vllm (KV auto) | 37.0 | 18.5 | 2.9 | 50.6 | 331,568 | 20 | 131,072 | 72 | fits |
| GPTQ 4-bit g128 | vllm (KV auto) | 37.1 | 18.5 | 2.9 | 50.6 | 331,456 | 20 | 131,072 | 72 | fits |
Notes
- BF16 / FP16: only 1 of 16 requests of 16,384 tokens fit at once - the rest queue or get preempted
- FP8 (W8, on-the-fly or FP8 checkpoint): no native FP8 on this GPU: vLLM runs FP8 weight-only (Marlin) - saves memory, no FP8 compute speed-up
- FP8 (W8, on-the-fly or FP8 checkpoint): only 14 of 16 requests of 16,384 tokens fit at once - the rest queue or get preempted
- INT8 W8A8 checkpoint: only 14 of 16 requests of 16,384 tokens fit at once - the rest queue or get preempted
Recommendation
AWQ 4-bit g128 (vllm) on 2x NVIDIA A100 80GB SXM: 20 concurrent request(s) of 16,384 tokens, max single context 131,072 tokens.
vllm serve <AWQ 4-bit checkpoint of meta-llama/Llama-3.1-70B-Instruct> \
--tensor-parallel-size 2 \
--max-model-len 16384 \
--gpu-memory-utilization 0.90 \
--max-num-seqs 16 \
--host 0.0.0.0 --port 8000
Connects securely to your tools. The creator never sees your data.
About this skill
Tell Claude which open-weight LLM you want to run, on which GPUs, with how much context and how many users. It works out whether the model fits for every common quantization, and hands you the exact command to launch it.
What you get
- A fit table for BF16, FP8, INT8, AWQ 4-bit and GPTQ 4-bit (vLLM), plus GGUF Q8_0 / Q6_K / Q5_K_M / Q4_K_M / Q3_K_M (llama.cpp) for single-user setups: weights per GPU, free KV-cache memory, KV tokens, max concurrent requests, max context, a rough decode speed, and a verdict (fits / tight / doesn't fit / unsupported).
- A recommendation: the best-quality option that fits, after trying cheap memory knobs first (FP8 KV cache, a higher memory-utilization setting, a smaller prefill chunk, eager mode). It comes with a ready-to-run
vllm servecommand: max-model-len, gpu-memory-utilization, max-num-seqs, tensor-parallel-size, kv-cache-dtype, quantization and enforce-eager where needed. Allama-servercommand is included when GGUF is the better fit. - RunPod pod sizing: GPU and count, volume size for the checkpoint download, container disk, port, environment variables.
- When nothing fits, the smallest GPU setups that would.
- A benchmark script for your running vLLM server: a concurrency sweep with TTFT p50/p95, latency, per-request and total tokens/s, requests/s and error rate.
- An OOM and slowdown playbook: OOM at startup vs under load, "max seq len larger than KV cache", CUDA-graph capture OOM, preemption and queueing, the slow AWQ kernel, FP8 on Ampere, tensor-parallel NCCL issues, partial offload in llama.cpp.
Real memory arithmetic, not rules of thumb
- Weights per format with 4-bit scales and zeros counted, and embeddings and lm_head kept in 16-bit.
- KV cache from num_key_value_heads (GQA/MQA aware), with an FP8 KV option and 16-token blocks.
- vLLM's budget: gpu_memory_utilization x VRAM, minus weights, activation peak and CUDA graphs.
- Tensor parallel splits weights and KV heads, and checks that the TP size is valid for the model.
- MoE: all experts count toward memory; only the active parameters drive speed.
- MLA and sliding-window attention are flagged as caveats rather than silently mis-modelled.
Works from 18 model presets taken from each model's config.json (Llama 3.1/3.2/3.3, Qwen2.5, Qwen3 incl. 30B-A3B MoE, Mistral 7B, Mixtral 8x7B, Gemma 2), from any model's config.json, or from raw architecture numbers. Covers 17 GPU presets from T4 to H200 (24/32/48/80/141 GB), or any custom GPU.
Python 3.9+ standard library only. No API keys, no accounts, no telemetry. The calculator never touches the network; the benchmark only talks to the server address you give it (default localhost).
Runtime overhead (activations, CUDA graphs, NCCL) is a calibrated estimate of about 1.5-3.5 GiB per GPU; the vLLM startup log is the ground truth and can be fed back with --overhead-gib. Speed figures are memory-bandwidth upper bounds, not measurements. NVIDIA GPUs only in the presets (AMD/Apple via --vram-gib). MLA (DeepSeek) and sliding-window attention are approximated and flagged. Pipeline parallel, LoRA adapters, multimodal encoders and speculative decoding memory are not modelled. Quantized checkpoints must be found by the user; the command marks them as placeholders unless --model-id is given.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 9 days ago
- Free with an Agensi account
- Software
Python 3.9+
- Optional
- vLLM server (benchmark only)
Permissions
Allowed Hosts
File Scopes
No API keys, no telemetry. vram_calc.py makes no network calls. bench.py sends synthetic prompts only to the OpenAI-compatible server the user specifies and reads an optional VLLM_API_KEY environment variable that is never printed.
What's inside
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.