GPU VRAM & Quantization Sizing Advisor for vLLM

    by finance_kim

    1

    Tell Claude which open-weight LLM you want to run, on which GPUs, with how much context and how many users.

    Free

    Security scanned

    Works with the AI Agents you already use

    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.

    FormatEngineWeights totalWeights/GPUOverhead/GPUFree for KV/GPUKV tokensMax concurrentMax ctx (1 req)~Decode tok/sVerdict
    BF16 / FP16vllm (KV auto)131.465.72.93.422,304122,30420tight
    FP8 (W8, on-the-fly or FP8 checkpoint)vllm (KV auto)67.733.82.935.3231,20014131,07239tight
    INT8 W8A8 checkpointvllm (KV auto)67.733.82.935.3231,20014131,07239tight
    AWQ 4-bit g128vllm (KV auto)37.018.52.950.6331,56820131,07272fits
    GPTQ 4-bit g128vllm (KV auto)37.118.52.950.6331,45620131,07272fits

    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 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).

    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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Write Files
    Network Access
    Environment Variables

    Allowed Hosts

    localhost

    File Scopes

    Reads
    this
    skill's
    references/*.json
    and
    a
    config.json
    the
    user
    points
    to
    bench.py
    writes
    results
    JSON
    only
    when
    --out
    is
    given

    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.

    Listed9 days ago

    What's inside

    Creator

    finance_kim

    finance_kim

    11 skills on Agensi

    Frequently Asked Questions

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

    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.

    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.

    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.

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

    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.

    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.

    Free