Methodology

Every number, shown working.

How we turn file sizes and your confirmed memory into a verdict. The budgets, overhead, margin and speed range are uncalibrated defaults: sensible starting points, not measurements, and labelled that way wherever they appear.

01

How the estimate works

We work out how much memory a model needs, then compare it with how much memory your machine can give it.

Everything is counted in bytes. Model sizes come from the real download files, not from a rule of thumb.

Each recipe goes through the same steps: does it suit your task, does its licence allow your use, does it run on your system, how much memory does it need, does that fit, and how does it rank against the others.

The whole calculation runs in your browser. Nothing about your machine is sent anywhere.

The exact rule

Gates run in order: task, licence, artifact × runtime valid for the OS and CPU architecture, memory plan, verdict, rank, explain.

The planner is pure and deterministic: the same profile, task and settings always give the same plans.

02

Model weights

The weights are the model itself: the numbers it learned in training. They are the biggest part of the memory it needs.

We add up the exact byte sizes of the files you would download for that recipe. A smaller quantised file needs less memory.

weights = sum(artifact file bytes)

The exact rule

weights is the sum of the artifact's file sizes in bytes, from the catalogue or the Hugging Face file list. It is never estimated from parameters × bits.

For Ollama recipes we use the listed GGUF file size. Ollama's own download can differ slightly.

03

The attention cache (KV cache)

While a model reads and writes, it keeps notes on every token so far. These notes are called the KV cache.

The cache grows with the context length: twice the tokens means twice the cache.

Some models only look back over a fixed window of recent tokens in some layers. Those layers stop growing once the window is full.

By default each cached value takes 2 bytes (f16). With llama.cpp and Ollama you can choose a smaller cache precision in the what-if controls.

kv_full  = 2 × layers_full × kvHeads × headDim × ctx × bytes_per_value
kv_slide = 2 × layers_sliding × kvHeads × headDim × min(ctx, window) × bytes_per_value

The exact rule

Per attention block: 2 (key and value) × cache layers × kvHeads × headDim × tokens × bytes per value, rounded up to whole bytes.

tokens is the context length for full attention, and min(context, window) for sliding-window attention.

Linear-attention layers keep no KV cache. They hold a fixed-size state instead (see the next section).

The estimate covers one conversation at a time.

04

Worked example: the attention cache

Take a model with 32 layers, 8 key-value heads and a head size of 128, holding 8,192 tokens of context.

At 2 bytes per value, the cache is 2 × 32 × 8 × 128 × 8,192 × 2 = 1,073,741,824 bytes, which is exactly 1 GiB.

At q8_0 it is 0.531 GiB, and at q4_0 it is 0.281 GiB.

Double the context and each of these doubles too.

2 × 32 × 8 × 128 × 8,192 × 2 = 1,073,741,824 bytes = 1 GiB

The exact rule

This example is a unit test of the planner, so this page and the planner can't disagree.

05

Cache precision

A smaller cache precision stores each cached value in fewer bytes, so long contexts need less memory. It can cost a little answer quality.

f16 uses 2 bytes per value and is the default. q8_0 uses about 1.06 and q4_0 about 0.56.

Only llama.cpp and Ollama recipes use the precision you pick. Other runtimes keep f16, and the recipe says so.

The exact rule

Bytes per value: f16 2, q8_0 1.0625, q4_0 0.5625. The q8_0 and q4_0 figures include each block's scale factor.

06

Fixed-size state

Some newer models replace part of the attention cache with a small memory that doesn't grow with context. We call it state.

When the model's published layout lets us work out the state size, we use it. When we had to estimate it, we say so on the recipe.

For estimated state, we only call a fit comfortable if it would still fit with the state doubled. If only the plain estimate fits, the verdict is tight.

When part of a model's memory has no documented size at all, we never say it fits comfortably.

state = layers_linear × stateBytesPerSeq

The exact rule

state = cache layers_linear × stateBytesPerSeq.

need_upper doubles the estimated state (Inkling 2 Mini: doubles KV and state, because its repeated middle layers allocate extra cache slots). The comfortable test uses need_upper.

A model with any state size marked unknown has no need_upper, so the best verdict it can get is tight.

07

Latent attention (MLA)

Some models, such as recent DeepSeek, GLM Flash and Mistral Small releases, squeeze each token's key and value into one short compressed row before caching it. This is called multi-head latent attention, or MLA.

The cache still grows with context, but much more slowly than a normal cache of the same model size.

kv_mla = layers_mla × (kv_lora_rank + qk_rope_head_dim) × ctx × bytes_per_value

The exact rule

Per MLA block: cache layers × (kvLoraRank + ropeHeadDim) × tokens × bytes per value. There is no factor of 2: llama.cpp stores the latent and the rotary key as one row and keeps no separate value cache.

The cache precision you pick applies to it in llama.cpp and Ollama, as for any other cache.

08

Layers without a cache of their own

In some models, not every layer keeps a cache. Gemma's small E models let their last layers reuse the cache of an earlier layer. Nemotron-H models have blocks with no attention at all.

Those layers add nothing to the cache. The breakdown still lists them, at zero bytes, so every layer is accounted for.

The exact rule

kind none, with why = shared-kv or no-attention. The blocks of a model must still add up to its layer count.

09

Mamba state

Mamba layers (in NVIDIA's Nemotron-H models) keep a fixed-size state instead of a cache, so they cost the same at any context length.

We size it with llama.cpp's own formula, at 4 bytes per value. MLX keeps part of it in a smaller type, so for MLX this is an upper bound.

state_mamba = layers_mamba × ((d_conv − 1) × (d_inner + 2 × n_group × d_state) + d_state × d_inner) × 4

The exact rule

stateBytesPerSeq = ((conv_kernel − 1) × (inner + 2 × groups × state_size) + state_size × inner) × 4, where inner = mamba_num_heads × mamba_head_dim.

For Hugging Face lookups we compute it only for nemotron_h configs that state all five values. Other recurrent layers stay unknown.

10

Per-layer embeddings

Gemma's E models carry large per-layer embedding tables. Some runtimes can leave them in system memory instead of GPU memory.

We still count them in full as part of the weights, and say how much of the weights they are. We don't lower the estimate for them.

The exact rule

perLayerEmbeddingBytes is read per download from the pinned GGUF or safetensors header. It is already inside weights and is never subtracted from need.

11

Runtime overhead

The program that runs the model needs some working memory of its own, on top of the weights and the cache.

We allow 0.6 GiB plus 5% of the weight size.

This is a rough default, not a measurement. Real overhead depends on the runtime, its settings and your GPU driver.

overhead = 0.6 GiB + 0.05 × weights

The exact rule

overhead = 0.6 GiB + 0.05 × weights. It is a placeholder until we have measurements.

12

Total memory needed

The memory a recipe needs is its weights, plus the cache, plus any fixed state, plus the runtime overhead.

need = weights + kv + state + overhead

13

How much memory your machine can give

Your machine can't give all its memory to a model. The operating system, the display and your other apps need some too. So we use a budget.

On an Apple Silicon Mac, the GPU and CPU share one pool of memory. macOS lets the GPU use only part of it by default, so we budget 67% of it up to 36 GB installed, and 75% above that.

With a separate graphics card, the budget is its graphics memory minus 0.8 GiB for the display and driver.

Without a separate graphics card (built-in graphics or CPU only), the budget is your system memory minus 6 GiB for the operating system and apps.

If you have more than one graphics card, we plan for one. Graphics memory isn't added up across cards.

All these budgets are rough defaults. See "What 'uncalibrated' means" below.

apple    = RAM × (RAM ≤ 36 GB ? 0.67 : 0.75)
discrete = VRAM − 0.8 GiB
system   = RAM − 6 GiB

The exact rule

Apple unified: RAM × 0.67 when RAM ≤ 36 GB, else RAM × 0.75. This approximates macOS's default GPU working-set limit.

Discrete GPU: VRAM − 0.8 GiB for full offload.

Partial offload: weights that don't fit in VRAM spill into RAM − 6 GiB. The cache, state and overhead stay in VRAM.

CPU only or integrated graphics: RAM − 6 GiB.

Marketed memory sizes are binary, so GB here means GiB: 1 GiB is 1,073,741,824 bytes.

14

Verdicts

Comfortable: it fits with at least 10% to spare.

Tight: it fits, but only just. Other apps or a longer conversation could push it over.

Slow: it only runs if part or all of it uses system memory and the CPU. It works, but replies come more slowly.

Won't fit: it doesn't fit in any memory your machine has.

Unknown: we're missing something we need, usually your installed memory. We never guess it. Instead we tell you how much memory the recipe would need.

On a computer without a separate graphics card or an Apple Silicon chip, the best verdict is slow.

comfortable  need_upper × 1.10 ≤ budget
tight        need ≤ budget
slow         fits only with offload or CPU
wont-fit     fits no pool
unknown      a required input is missing

The exact rule

comfortable: need_upper × 1.10 ≤ budget (need_upper = need unless the state is estimated).

tight: need ≤ budget.

slow: fits only with partial offload, CPU only, or above the Apple working-set limit.

wont-fit: exceeds every pool.

unknown: a required input is missing, such as unconfirmed RAM or VRAM, or a model layout we can't read. An unknown result is never upgraded.

15

Macs above the GPU memory limit

If a model needs more than macOS lets the GPU use, but still fits in your memory minus 6 GiB, we say it runs slowly rather than not at all. Part of the model runs on the CPU.

You can raise macOS's GPU memory limit yourself. That is an advanced step, and we don't recommend it.

The exact rule

need > apple budget and need ≤ RAM − 6 GiB gives slow. The two budgets describe the same memory, so they are never added together.

16

When your memory is unconfirmed

Browsers can't tell us how much memory you have. Until you confirm it, the verdict is unknown.

Instead of guessing, we say how much memory the recipe would need: "fits if you have at least X GB".

Where we know which sizes your model of computer or graphics card was sold with, X is the smallest of those that would work.

The exact rule

For a GPU pool, X is the smallest size whose budget covers need_upper × 1.10 (comfortable), or need when need_upper is unknown (tight). For system memory, X covers need (slow).

Without a list of sizes, X is worked back from the budget rule and rounded up to a whole GB.

17

Context length

Context is how much text the model holds in mind at once, counted in tokens. We assume 8,192 tokens unless you change it.

Longer context needs a bigger cache, so a recipe that fits at the default can become tight, slow or too big at a longer one.

If you ask for more context than a model supports, we use its maximum and say so.

The exact rule

Default context: 8,192 tokens. The context is capped at the model's maximum, and the card says “The requested context is longer than this model supports.”

18

Speed

To write each new word, the model reads its active weights and its cache from memory. So memory bandwidth, how fast memory can be read, sets an upper limit on speed.

We show a range from 50% of that limit up to the limit, because real runtimes don't reach it.

It is a theoretical estimate, not a measurement or a promise. If there is no published bandwidth for your hardware, we show no number.

For mixture-of-experts models, only the active weights count. Without the active parameter count, we show no number.

On CPU-only plans we show no number either, because we don't have a bandwidth figure for system memory.

high_tps = bandwidth ÷ (active_weight_bytes + kv)
low_tps  = 0.5 × high_tps

The exact rule

high_tps = bandwidth (published GB/s) ÷ (active-weight bytes + kv bytes), where active-weight bytes = weights × activeB ÷ totalB.

low_tps = 0.5 × high_tps. The tier is always "theoretical".

With partial offload the range still uses the GPU's bandwidth, so it is optimistic for those recipes.

There is no prefill or time-to-first-token estimate yet.

19

Speed across context lengths

Each recipe's chart shows how the theoretical speed falls as the context grows, because the cache grows.

It also marks the exact context length where the verdict changes, for example from tight to slow.

The exact rule

About 12 context lengths, spaced on a log scale from 512 tokens to the model's maximum. Each verdict change is found exactly by bisection.

20

How recipes are ranked

We pick one best balanced recipe for your task, then a clearly faster one and a larger one, when they exist.

Models we have checked by hand always rank above models computed from a Hugging Face repo.

We judge quality only by model size, counting active parameters first. We don't use benchmark scores.

Larger models that didn't fit are listed with the reason, so you can see what you'd gain with more memory.

The exact rule

Order: verified before computed, task match, verdict (comfortable, tight, slow), active then total parameters, theoretical speed, then smaller need.

The faster alternative must be the same tier and task match, and a slow recipe is never offered as faster than a recipe that isn't slow.

A model with no evidence is never ranked above a documented one.

21

Any Hugging Face model

You can check a model that isn't in our list by pasting its Hugging Face name.

Your browser asks Hugging Face for that repo's file list, file sizes and config.json, then plans it with the same formulas. Only the repo name is sent. Nothing about your hardware is.

These results are marked "Computed from the repo's files, not reviewed by us" and always rank below models we have checked.

If the repo doesn't describe its attention layout, we can't size the cache, so we give no verdict.

The exact rule

Context is capped at the config's max_position_embeddings. The licence and tasks come from the repo and aren't reviewed.

Quantised repos without a config.json use the config of the one base model they name.

22

What the browser can and can't see

Browsers deliberately hide most hardware details, to stop sites from fingerprinting you. So we show what the browser reports, and you confirm the rest.

Memory: Chrome and Edge give a rounded, capped hint. It is not your installed memory, and Safari and Firefox don't give it at all. We never use it as your memory.

Graphics: Chrome usually names your GPU or Apple chip. Safari only says "Apple GPU", and Brave gives a generic name, so then your GPU is unknown.

Graphics memory: no browser reports it. WebGPU's largest buffer size is a browser limit, not your graphics memory.

CPU threads: the browser may report fewer than you have. We use it only as a hint.

Storage: the browser reports how much this site may store, not your free disk space.

Screen size helps us guess which size of MacBook you have. It is only used to order the choices, never to decide.

If your computer has two graphics chips, the browser may be using the slower built-in one. We tell you when we see that.

The exact rule

navigator.deviceMemory: power-of-two GiB, rounded and clamped to implementation-defined bounds; Chromium only. Recorded as observed-hint.

WEBGL_debug_renderer_info: ANGLE strings in Chromium; constants in Safari; generic in Brave; disabled under Firefox's resistFingerprinting.

GPUAdapterInfo has vendor, architecture, device and description, with no memory field. adapter.limits.maxBufferSize is a single-buffer cap.

We request low-power and high-performance adapters. Different answers suggest two GPUs.

storage.estimate() returns the origin quota. The tiny compute check runs only when you tap it.

23

What "uncalibrated" means

Some of our numbers are sensible defaults, not measurements. We haven't yet checked them against real machines running real models.

These are: the runtime overhead, every memory budget and reserve, the comfortable margin, and the speed range.

They could be off in either direction. A tight verdict could run fine, and a comfortable one could fail if other apps are using a lot of memory.

When we have measurements, we will update these numbers and say so here.

The exact rule

Calibrated p10 to p90 ranges, from a measured corpus such as llmfit's, are planned once its data licence and method have been checked.

24

What we don't model yet

We plan for one conversation at a time.

We plan for one graphics card. Several cards aren't added together.

We don't estimate prefill, the time to read your prompt, or how long until the first word appears.

We don't score answer quality. Bigger isn't always better, but it is the only fair signal we have without our own tests.

25

26Glossary

The words, in plain English.

Parameters
A model is a very large set of numbers, called parameters, learned during training. More parameters usually means a more capable model, but also more memory and slower replies. We use parameter count as a rough guide to quality because we don't run our own benchmarks.
Quantisation
Models are trained with high-precision numbers, but they still work well when each number is stored with fewer bits. A quantised file is much smaller, so it fits in less memory and runs faster. Go too far and answers get worse, which is why medium settings such as Q4_K_M are popular.
Q4_K_M
Q4_K_M is one of llama.cpp's "K-quant" formats. Most weights are stored at four bits, while a few sensitive parts are kept at higher precision, which is what the M (medium) means. It is a common default because it keeps much of the quality at a fraction of the full size.
GGUF
GGUF is a file format that packs a model's weights and its settings into one file. It was made for llama.cpp and is also used by Ollama and LM Studio. GGUF files are usually quantised, and the quantisation is named in the file, for example Q4_K_M.
MLX
MLX is Apple's open-source framework for running and training models on Apple Silicon. MLX models come as their own files, separate from GGUF, and are run with tools such as mlx-lm. It doesn't run on Intel Macs, Windows or Linux, so we only suggest MLX recipes for Apple Silicon.
llama.cpp
llama.cpp is a widely used open-source engine for running language models locally. It runs on Mac, Windows and Linux, and can split a model between the GPU and system memory. Ollama and LM Studio are friendlier apps built on the same engine.
Ollama
Ollama is a free app for running models on your own computer. You type a command such as "ollama run" with a model name, and it downloads and starts the model. Its downloads are GGUF files, but their sizes can differ slightly from the files listed on Hugging Face.
Token
Models don't read letters or whole words; they read tokens. A token is often a short word or part of a longer one, and punctuation counts too. Context length and speed are both measured in tokens.
Context window
The context window covers everything the model can see: your messages, its replies and any documents you paste in. A longer context lets it handle longer conversations and files. It also makes the KV cache bigger, so a model that fits at a short context may not fit at a long one.
KV cache
While a model works, it stores a key and a value for every token at every attention layer, so it doesn't have to recompute them. This store is the KV cache, and it grows in step with the context length. For long contexts it can need as much memory as the model itself.
KV-cache precision
The KV cache can be stored at full f16 precision or quantised to q8_0 or q4_0. Smaller precisions shrink the cache a lot, which helps most at long contexts. They can cost a little quality, and only some runtimes, such as llama.cpp and Ollama, let you choose.
Tokens per second
Tokens per second is the usual measure of how fast a local model replies. Writing each token means reading the model's active weights from memory, so memory bandwidth sets the upper limit. Our figures are theoretical ranges from published bandwidth, not measurements.
Prefill
Before writing anything, a model has to process every token you gave it; this is prefill. A long prompt or pasted document makes the wait before the first word longer. We don't estimate prefill or time to first token yet, because it depends on compute power we can't measure honestly.
Mixture of experts (MoE)
A mixture-of-experts model splits its layers into many experts and picks a few of them for each token. All the experts must be in memory, so it needs memory for its full size. But it only reads the active ones for each token, so it can be much faster than a model of the same total size.
Active parameters
In a mixture-of-experts model, only some of the parameters are used for each token; these are the active parameters. Memory need depends on the total parameters, while speed depends mostly on the active ones. A model name like "30B-A3B" means about 30 billion in total with about 3 billion active.
Unified memory
Apple Silicon Macs don't have separate graphics memory; the CPU and GPU share the same memory. That lets a Mac run models that wouldn't fit on many graphics cards. macOS only lets the GPU use part of it by default, so we budget less than the full amount.
GPU memory limit (macOS)
macOS sets a default limit on how much unified memory the GPU may use, leaving the rest for the system and apps. If a model needs more than this, part of it runs on the CPU and replies are slower. The limit can be raised by hand, but that is an advanced step and we don't recommend it.
VRAM
A separate graphics card has its own fast memory, called VRAM. A model runs fastest when all of it fits in VRAM. Browsers can't see how much VRAM you have, so we ask you; on Windows it is in Task Manager under Performance, GPU, Dedicated GPU memory.
System memory (RAM)
System memory is the main memory your operating system and apps use. Without a separate graphics card, a model runs from system memory on the CPU, which works but is slower. Browsers only give a rounded hint of it, so we ask you to confirm the real amount.
Offload
Offloading means moving a model's layers onto the GPU, where they run fastest. When the whole model doesn't fit in VRAM, some layers stay in system memory and run on the CPU; this is partial offload. It works, but replies are noticeably slower, so we mark it as slow.
Memory bandwidth
Memory bandwidth is how many gigabytes per second the chip can read from memory. A model reads its active weights for every token it writes, so bandwidth caps its speed. We use the bandwidth the manufacturer publishes; without it, we show no speed.
Apache-2.0
Apache-2.0 lets you use, change and share the model, including for commercial work. You must keep its licence and notices, and it includes a patent licence from the contributors. It is one of the least restrictive licences a model can have.
Licence terms
Every model comes with a licence that says what you may do with it. Some, like Apache-2.0, allow almost anything; others forbid commercial use or add their own conditions. We show each model's terms and mark non-commercial ones, but you should read the licence before relying on it.
Gated model
Some publishers gate their models on Hugging Face: you sign in and accept their terms before the files download. Gating says nothing about quality; it is about the publisher's conditions. We still list gated models, labelled, so you can decide.
Uncalibrated
Some of our numbers, such as memory reserves and runtime overhead, are reasoned defaults rather than measurements. We call them uncalibrated so you know how much to trust them. When we have measurements, we will update them and say so on the methodology page.