# GPU VRAM & Quantization Sizing Advisor for vLLM

> Will this LLM fit on my GPU? Compares BF16, FP8, INT8, AWQ, GPTQ and GGUF with GQA-aware KV cache math and returns a fit verdict, max users and context, a ready vllm serve command, RunPod sizing, a benchmark script and an OOM fix playbook.

GPU VRAM & Quantization Sizing Advisor for vLLM is a free AI agent skill on Agensi by finance_kim, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [finance_kim](https://www.agensi.io/creators/creator-1335)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/gpu-vram-quantization-sizing-advisor-for-vllm
- Tags: llm-ops, devops-cloud

## 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 serve` command: max-model-len, gpu-memory-utilization, max-num-seqs, tensor-parallel-size, kv-cache-dtype, quantization and enforce-eager where needed. A `llama-server` command 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).

## Requires

- Python 3.9+
- Optional: vLLM server (benchmark only)

## Known limitations

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the GPU VRAM & Quantization Sizing Advisor for vLLM skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Do I need an API key or account?

No. Everything runs locally with the Python standard library. The benchmark only calls the server address you give it.

### My model is not in the presets. What then?

Give Claude the model's config.json (or paste it). The calculator reads layers, hidden size, attention and KV heads, head_dim, vocab, MoE fields and more. You can also pass raw numbers such as --params 13B --layers 40 --hidden 5120 --heads 40 --kv-heads 40.

### How accurate is it?

Weight sizes match published checkpoints within about 1-2 percent and KV-cache math is exact for standard and GQA attention. The runtime overhead is an estimate; paste the KV cache size from your vLLM startup log and the numbers become exact.

### Does it handle multiple GPUs?

Yes. Tensor parallel for vLLM (with a check that the TP size is valid for the model's head counts) and layer split for llama.cpp. It also suggests replicas when a small model would waste tensor parallelism.

### Does it support MoE models like Mixtral or Qwen3-30B-A3B?

Yes. All experts count toward memory and only the active parameters toward speed, and the output says so.

### Which GPUs are included?

T4, A10, A10G, L4, RTX 3090, RTX 4090, RTX 5090, A40, RTX A6000, RTX 6000 Ada, L40S, A100 40GB/80GB, H100 PCIe/SXM and H200, with VRAM, bandwidth, compute capability and FP8/BF16 support. Any other GPU works with --vram-gib.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
