CYBERAUTOMATIONSStart a project

How many LLM agents fit on your GPU?

Pick a GPU and a model, and see how many agents fit in memory.

How to use it

  1. Pick a model from the list, or paste a Hugging Face model id such as Qwen/Qwen3-8B and press Load.
  2. Choose a weight quantization, your VRAM per card and how many cards you have.
  3. Set the context each agent needs and the KV cache precision to see how many agents fit, then use Copy link to share the exact settings.

What it shows, and how

The formulas, assumptions and sources are in the tool's own Method section.

FAQ

How do I calculate KV cache size?

Multiply 2 (keys and values) by the number of layers, the number of KV heads, the head dimension, the bytes per value and the context length in tokens. Qwen3-8B has 36 layers, 8 KV heads and a head dimension of 128, so an 8-bit cache needs 2 x 36 x 8 x 128 x 1 = 73,728 bytes per token, which is 2.25 GiB for 32,768 tokens and 4.5 GiB with an f16 cache.

Can I use a model that is not in the list?

Yes. Paste its Hugging Face id (for example mistralai/Mistral-Nemo-Instruct-2407) and the calculator reads its config.json straight from Hugging Face in your browser. Gated models such as Llama cannot be read without signing in, so use an ungated copy of the same architecture. GGUF-only repos have no config.json, so use the original model id.

Why does context length matter so much?

KV cache grows in step with context. Doubling each agent's context roughly halves how many agents fit in the memory left after the weights. Sliding-window and linear-attention layers are the exception: their memory stops growing past a fixed size.

Why can a bigger model fit more agents than a smaller one?

Cache size depends on layers, KV heads and head dimension, not parameter count. Qwen3-30B-A3B keeps 4 KV heads, so a 32k agent needs 1.5 GiB of 8-bit cache, while Qwen3-8B keeps 8 KV heads and needs 2.25 GiB.

Is this exact?

No. It is a planning estimate. Runtime overhead, paging and batching vary by server (llama.cpp, vLLM, SGLang), so expect real usage to land a GB or two above the prediction.

Can you set up private LLM infrastructure for us?

Yes. We design and run private LLM gateways with model routing and cost control. Start a custom build from the contact page.

Embed this tool

Paste this on your own page or blog post.

<iframe src="https://cyberautomations.com/apps/gpu-agent-sizing/index.html" width="100%" height="640" loading="lazy" style="border:0"></iframe>
<p><a href="https://cyberautomations.com/tools/gpu-agent-sizing">Tool by CyberAutomations</a></p>

Last updated 2026-10-22

Related service

LLM gateways, model routing and cost control, run on infrastructure you own.

Build this for your data

This tool runs on public information. We build the same kind of thing on your own data, wired into the systems you already use. Tell us what you have and we reply within 48 hours.