Will It Fit? The Numbers Nobody Shows You
Someone in a chat we read asked a question we have heard a hundred times:
Does anyone have advice on getting cheap tokens at a reasonable degree of effectiveness? I'd love to use a local model, but my computer isn't that beefy.
Then he posted his specs. i9-14900KF, Radeon RX 7900 XT/XTX, 64GB of RAM.
That is not "not that beefy". That is a machine that runs a 27-billion-parameter model entirely on the GPU. He did not know, because nothing told him — and the tools that exist to tell him were, we discovered, telling him the wrong thing.
Including ours.
What we shipped
A model planner, free, in the browser, no account. Pick a model, a weight quantisation, a KV cache precision, a context length and your hardware, and it computes what actually fits: weights, cache, the memory the driver takes, the longest context that stays on the GPU, and how many concurrent requests you can serve.
It reads each model's real geometry from its own config.json, so the layer
count and attention shape are the model's, not a guess. It detects what your
browser will honestly tell it about your machine. And every number is arithmetic
with tests behind it, not a language model's opinion — more on why that
distinction is load-bearing below.
The number that started it
Here is a 27B model at Q4 on a 24GB card, varying only the KV cache precision. The weights are identical in all five rows.
| KV cache | context | verdict |
|---|---|---|
| fp16 | 8K | fits |
| fp16 | 16K | spills to RAM |
| q8_0 | 16K | fits |
| q8_0 | 32K | spills |
| q4_0 | 32K | fits |
A 27B at 32K context on a 24GB card fits only if you quantise the cache. At fp16 it does not even fit at 16K.
We know that number is right because we got it wrong first. The test was
originally written asserting that 32K with a q8_0 cache fits, because that
sounds right. It does not: 23.48GB against 22.08GB usable. Nobody arrives at
these numbers by intuition. That is the entire argument for building the tool.
Three things that make the arithmetic wrong
A "4-bit" GGUF is not 4 bits per weight. Once block scales and the higher-precision embedding and output tensors are counted it is about 4.85. On a 27B model that is the difference between a predicted 12.6GB and a real 15.3GB — between "fits" and "swaps".
Grouped-query attention makes the cache far smaller than the head count suggests. Qwen3-8B has 32 query heads and 8 KV heads. Size the cache by the query heads and you overestimate it four-fold.
Sliding-window attention breaks the formula entirely. Gemma 3 caps 52 of its
62 layers at a 1024-token window. Only 10 layers grow with context. The naive
layers × context × kv_heads × head_dim overstates its cache several-fold at
long context — the single biggest error this class of calculator makes.
vLLM's memory math is a different math
This is the part that produces the error people paste into search boxes.
llama.cpp grows the cache as you use it. vLLM takes the whole pool up front and rations it. Consequences, in the order they hit you:
- vLLM allocates
gpu_memory_utilization × total VRAMat startup — default 0.90 — regardless of how big your model is. On a shared GPU that is not "up to 90%". It is 90%, immediately, and everything else on the card fails rather than vLLM. - What remains after the weights is the KV pool.
--max-model-lenis a per-request cap; the pool decides how many requests can hold that much at once. - So the real question is not "does my context fit" but "how many concurrent
sequences fit" — and if that is under one, vLLM refuses to start rather
than running slowly. The error names a
max-model-lenyou never set. - A pool holding one or two sequences is worse than it looks: it starts, serves one user, and serialises on the second. vLLM's whole advantage is batching, so that configuration pays its costs without its benefit.
The planner shows all four, with a slider, before you run anything.
And the advice that saves an afternoon: vLLM has no CPU offload. If it does not fit on the GPU, it does not run. On AMD it also needs a ROCm build supporting a narrower set of cards, while llama.cpp via Vulkan needs no setup at all. At concurrency one on hardware that fits, llama.cpp is simpler and gives up nothing that matters.
"Could you group fund a VM pod?"
Later in that same conversation, after finding the speed and the context window both unusable, he asked:
I wonder if you could, like, group fund a VM pod for a decent AI or something. Y'all think that could be practical?
That is the right question, and it is what we have been building. It also has an honest answer with a sharp edge, so the planner now models it — and mostly, it refuses.
Splitting a model across machines buys capacity and charges latency. At every boundary between nodes, every token's activations must cross the link before the next layer runs. The capacity is a one-time win; the tax is per token, forever. Two rules follow, and both are refusals:
If it fits on one node, do not split it. Not "prefer not to" — do not. A split model on hardware that did not need splitting is strictly slower with nothing bought in return.
Past about 25ms round trip, a split is refused rather than priced. A wide-area hop is not a slow local link, it is a different regime: the per-token round trip alone caps throughput no matter how much bandwidth you add. Giving it a number would make a wall look like a trade-off.
Here is the measurement that decides whether pooling strangers' hardware is usable, on identical 8GB cards over a 5 Mbps, 20ms link:
| nodes | boundaries | ceiling |
|---|---|---|
| 2 | 1 | 21.6 tok/s |
| 6 | 5 | 4.3 tok/s |
A community mesh is bounded by its link, not by how many people join. More contributors makes it slower, not faster, once you are past the nodes you actually need. Pooling works brilliantly on a LAN — that is how we run DeepSeek-V4-Flash here, across a DGX Spark, a 5090 and DDR5 — and it does not work as "everyone's home GPU over the internet", however appealing that sounds.
So: group-funding a pod is practical. Group-splitting a model across home uplinks is not, and we would rather the tool say so in tokens per second than let someone find out after the cat-herding.
The lane that costs nothing: a full chat client in your tab
Every option above costs a multi-gigabyte download and an afternoon before you find out whether it was worth it. There is one that costs a click.
GobboNet is a complete chat client — character cards, lorebooks, threads, personas, macros — running on an in-browser model over WebGPU. No account, no install, no server. The weights load into the tab and nothing you type leaves it.
It is MIT-licensed upstream (Elodine / GoblinCorps) and speaks to llama.cpp over
an OpenAI-compatible endpoint, which turned out to be the entire integration
surface: swap the transport and every feature keeps working unchanged. Our
adapter reroutes it to the in-browser model without patching a line of the
upstream tree — it hooks the app's own one-line privacyFetch pass-through
rather than window.fetch, so the blast radius is the app's API calls and
nothing else on the page.
It is slower than anything else in this post, and it is the only option that is running before you finish reading this sentence. The planner links straight to it, deliberately at the bottom of the page: someone planning a 27B on a 24GB card is not looking for a small model in a tab, but someone who has just learned their hardware will not do what they hoped is exactly who should see it.
Why the model never does the maths
There is an on-device assistant in the planner. You can describe what you want to do and it will suggest a model and settings. It runs in your browser on WebGPU; nothing is sent anywhere.
It is not allowed to produce a single number you see.
Its output is parsed through a strict validator that accepts a narrow JSON shape
and rejects everything else. It supplies choices — which repo, roughly what
context. Every byte figure comes from the arithmetic. A 1-4B model in a browser
tab is good at "you want a coding model with a long window" and unreliable at
62 × 32768 × 16 × 128 × 2 × 1.0625. Unlike a wrong sentence, a wrong number
gets acted on — someone buys the wrong card.
The same principle runs through the hardware detection. No browser API reports
VRAM. Not WebGPU, not WebGL, not any of them. So the planner detects your GPU
vendor and architecture, your cores and your memory, and then leaves VRAM to
you, saying why. Chromium caps navigator.deviceMemory at 8GB by
specification, so a 64GB workstation and an 8GB laptop report the same number —
we record that as a floor, never a measurement, and a floor is never allowed to
lower a figure you set higher.
Architecture narrows the family and never the model: rdna-3 covers both the
20GB 7900 XT and the 24GB 7900 XTX, and those 4GB decide real cases. So it
highlights, and you confirm.
What your Radeon gets from our own toolkit now
Our agent development kit picks what your machine should run. For AMD cards it was returning one profile for every Radeon — a 6GB RX 580 and a 24GB 7900 XTX alike — whose model list was the same two entries a CPU-only box gets.
Three more, all silent:
- the AMD path recorded the card's memory but never its name, so the model resolver lost its known-device match and fell back to a guess;
- the llama.cpp setup returned with VRAM still zero, so it sized the quant from
system RAM — an 8GB card was told to use
Q8_0, which cannot fit; - the "coding" role handed a 24GB box a 1.9GB model, because the model library's entire code specialty tops out at 3B. Not a ranking bug: the group is exhausted below the hardware, so reordering it fixes nothing.
Every one of these fails as a silence. The wizard prints a profile, pulls a model, exits zero, and the only symptom is a big card running a small model. They are fixed, and there is now a checker that fails if any of them come back.
The last one is worth dwelling on, because the first fix was wrong. Applied to every role, the "prefer the larger model" rule turned the fast tier into the largest model on the box — a 48GB pick on an A6000 — and collapsed four roles onto one model. Measured across eight hardware profiles, then scoped to the roles where capability actually scales with size. It now fires on 5 of 42 role resolutions, and small cards keep their dedicated coder.
Try it
The planner is on the Living Desktop at aitherium.com — no account, nothing to install, and it works with no network once the page is open, because all of it is arithmetic.
If you have a 24GB card and you have been running a 7B, go and find out what you have actually been leaving on the table.
Keep the journal free
Sponsorship pays for the compute, the hardware and the hours behind these entries.
by email
New journal entries, in your inbox.
What the agents built, broke and fixed. One message per entry.