Skip to content

AI Sizer for beginners: how many GPUs does your LLM need?

Ask AI Sizer how many GPUs a document Q&A assistant for 1,000 employees needs, and it says six NVIDIA H100s. Correct one guess on the form and it says two. By the tool's own prices, that's a difference of about $157,000 over three years.

I built AI Sizer to turn a description of your users into a first GPU estimate. This post explains what it does, what the words on its form mean, and which inputs to get right before you trust the answer.


Open the tool

AI Sizer is one HTML file. You describe your users and your model, and it suggests the GPUs, servers, power and cost. Download it and open it in a browser:

curl -LO https://raw.githubusercontent.com/pkhamdee/ai-sizer/main/index.html

It's a first estimate to start a conversation with. Nothing on the page is measured, so test before you buy anything.

The words on the form

Word What it means Why it matters
Token A piece of text, about three quarters of an English word Everything is counted in tokens
Concurrent Requests Questions being answered at the same moment This sets the size of the cluster
TTFT Time to first token, the wait before the answer starts Long documents make it worse
TPOT Time per output token, the gap between words as the answer streams 50 ms is about 20 tokens a second
Precision How many bits store each number in the model Fewer bits take less memory, at some cost in quality
KV cache Memory that holds each conversation while it's being answered It grows with longer text and more users
Replica One running copy of the model More replicas serve more people
Node One server Most GPU servers in the catalog hold eight GPUs

How the answer is worked out

Four steps for a document Q&A assistant with 1,000 employees. People: 120 requests at once. Layout: one copy of the model on 2 GPUs. Speed: one copy serves 48 requests. Hardware: 3 copies, 6 GPUs, 1 server.

A beginner usually asks whether the model fits in GPU memory. Here it fits easily, and memory has room for 306 requests per copy. The speed target stops each copy at 48, so speed sets the number of GPUs and memory doesn't.

I'll use this example for the rest of the post: the RAG / document Q&A preset, 1,000 users, Qwen3.8 27B, with the GPU set to H100. (RAG means the assistant looks up your documents first and answers from what it finds.) Every section changes one input and leaves the others alone.


Get these five inputs right

1. Concurrency Ratio: the guess that costs the most

The tool needs to know how many people are waiting for an answer at the same moment. The form starts at 10%, which means 100 of your 1,000 users, and that may be nowhere near your real traffic.

You can estimate your own number from the requests you expect:

Step Example
Requests per day 1,000 people × 30 = 30,000
In the busiest hour, if a fifth of the day lands there 6,000
Per second 1.7
× seconds to finish one answer × 21
Concurrent Requests 35, or 3.5%

The 21 seconds comes from the form's own targets: 1 second to start, then 400 tokens at 50 ms each. Entering 3.5% takes the result from 6 GPUs to 2.

The fifth is my assumption, so use your own logs if you have them. Traffic also bunches up within an hour, and the Headroom setting below is there for that.

2. Input tokens: long documents are expensive

Input is everything you send with a question: the instructions, the chat history and any documents you attach. The GPU has to read all of it before it can write the first word.

Input per request H100s needed
1,000 tokens 2
4,000 tokens 6
8,000 tokens 12
16,000 tokens 24

So sending fewer, better document passages can save more than switching GPUs. If many requests start with the same text, vLLM can reuse the work it did last time1. Tell the tool with Cached Prefix: at 50%, the answer drops from 6 GPUs to 4.

3. Output tokens: change the ratio too

This one looks wrong at first. Make the answers longer and leave everything else alone, and the tool asks for fewer GPUs.

It isn't a bug. The tool keeps 100 requests running, and when each one lasts longer, fewer new questions arrive each second. Your users won't ask fewer questions because the answers got longer, so raise the Concurrency Ratio as well:

Answer length H100s with the ratio left at 10% H100s at the same question rate
200 tokens 10 6 (ratio 5.3%)
400 tokens 6 6 (ratio 10%)
800 tokens 4 8 (ratio 19.6%)
2,000 tokens 3 10 (ratio 48.1%)

Reasoning models write hidden thinking tokens before they answer. Those count as output.

4. Speed targets: ask for what people notice

A TPOT of 50 ms streams about 20 tokens a second, which is faster than most people read. Asking for 30 ms doubles the example to 12 GPUs, and relaxing it to 75 ms brings it down to 4.

Set strict targets for live chat. A report that runs overnight doesn't need them.

5. The model: look beyond its size

Some models are a "mixture of experts" (MoE). They're large in memory but use only a small part of themselves for each token, so they answer faster. In the example, Qwen3.6 35B-A3B is a bigger model than the 27B one and needs 2 GPUs where the 27B needs 6.

Lower precision helps less here. Going from 16-bit to 8-bit saves one GPU, because memory wasn't the limit. The tool compares hardware only, so test the answers of any model you switch to.


Read the result in this order

AI Sizer with the form on the left and the recommendation on the right: 6 NVIDIA H100 in 1 Node, with the Binding Constraint note, the vLLM layout and a drawing of 3 Replicas on 6 of 8 GPU bays.

The Binding Constraint tells you what to change

This line under the headline says what stopped each copy of the model from serving more people. Changing anything else won't help much.

It says What it means What to try
TPOT Answers would stream too slowly Shorter input, a looser TPOT, a faster GPU or an MoE model
TTFT Reading the question takes too long Shorter input, more Cached Prefix, a looser TTFT
VRAM GPU memory is full Lower precision, shorter input, a GPU with more memory
Minimum footprint The model fits and has capacity to spare A smaller GPU, or sharing one GPU
Batch limit Each copy is at the 512-request cap A smaller, cheaper GPU may do the job

The tool recommends the GPU that needs the fewest servers, and then the least power. It doesn't look at price. These all meet the same targets in one server:

GPU GPUs Peak power Cost over 3 years
AMD MI350X (recommended) 2 6.5 kW $349,000
AMD MI300X 4 7.0 kW $312,000
NVIDIA B200 2 8.3 kW $355,000
NVIDIA H100 6 8.7 kW $418,000

Click each GPU in the comparison table and read its cost. The tool marks some prices as estimates, including both AMD ones above, so put your own quote in the Cost section before you compare.

That section also shows cloud rental. With the corrected ratio, the tool puts two H100s at about $261,000 to own for three years and $184,000 to rent from a GPU cloud.


Add the rest of your system

A document assistant also needs an embedding model, which finds the right passages, and often a reranker, which sorts them. Click Add Model and add each one.

AI Sizer's cluster view: 8 H100 in 1 Node, with six GPUs for the LLM, one for the embedding model and one for the reranker.

At two requests per second, each small model takes a whole H100 and barely uses it. Set GPU sharing to MIG, which splits one GPU into isolated slices, and both fit on one. The total goes from 8 GPUs to 7.

The tool can also size fine-tuning, either on its own GPUs or at night on the ones that serve users.


Plan for busy days and broken servers

Two settings add spare capacity, and they do different jobs.

  • Headroom covers bursts and growth. The default is 20%.
  • N+1 Redundancy adds a spare server, so the service survives losing one. It takes the example from 6 GPUs to 12, because the spare has to carry the whole load.

For a pilot, you can leave N+1 off. Turn it on when people can't work without the service.


Try savings one at a time

The Optimizations section lists changes you could make and what each would save. For the example, these stand out:

Change GPUs saved, out of 6 The catch
Trim the input by 25% 2 You need better document search
Relax TPOT to 75 ms 2 Answers stream more slowly
Cache 25% of the input 1 Depends on your traffic
Use a compiled engine 2 Marked "Assumed factor"

"Assumed factor" means the saving is an assumed figure and wasn't calculated from the hardware. Don't put one in a budget until you've tested it. Savings also overlap, so tick the ones you want together and read the new total.


Check it against a real test

If you can borrow or rent one GPU server, measure your own model. Start a single copy with the vLLM command the tool suggests, which here uses two GPUs, then run vLLM's benchmark2 with your own numbers:

vllm bench serve --model Qwen/Qwen3.8-27B --dataset-name random \
  --random-input-len 4000 --random-output-len 400 \
  --num-prompts 500 --max-concurrency 48

Paste the output into Calibration, along with the GPU and the number of GPUs you used. The tool then corrects its speed estimate for that model on that GPU.


What it can't tell you

  • I tuned its speed estimates to published results for one model on one GPU, Llama 3.1 8B on an H100, and they typically land within about 10% of those3. Other combinations haven't been checked, including the one in this post.
  • It treats every request as average. A few people pasting whole manuals can slow everyone down.
  • AMD results assume AMD's software is as efficient as NVIDIA's, which I haven't verified.
  • Prices date from November 2026, and some are estimates.

For the arithmetic underneath, read how much VRAM an LLM needs and how a model is split across GPUs. The repo has a glossary for every term on the page.


Summary

If you're worried that... Check this
you'll buy too many GPUs Concurrency Ratio, worked out from requests per day
you'll buy too few output length and ratio changed together, and some Headroom
the answer feels slow the Binding Constraint, then the input length
you're paying for the wrong GPU the cost of each GPU, with your own quotes
one broken server stops everyone N+1 Redundancy
the estimate is wrong Calibration with a real benchmark
  • Pick the preset closest to your use, then replace its token counts with your own
  • Work out your Concurrency Ratio before you look at any GPU
  • Save a low, an expected and a high case under Scenarios and compare them
  • Run one real benchmark before you sign a purchase order

  1. vLLM, Automatic Prefix Caching: a new request that shares its beginning with an earlier one reuses that part of the KV cache. It speeds up reading the input and doesn't speed up writing the answer. ↩

  2. vLLM, vllm bench serve: the benchmark command and its options. The results report TTFT and TPOT. ↩

  3. AI Sizer, design decision 0001: the speed constants were fitted to published vLLM results for Llama 3.1 8B on one H100, and other pairs remain unverified. ↩

Discussion

Have thoughts on this post? Share them below — questions, corrections, or your own experience are all welcome.