Model weightsContext + runtimeGPU-usable memory

  • 8k context +3 GB
  • 32k context +7 GB
  • 128k context +18 GB
The same box with two models at 8K context and one user. WeightsContext + reserveUsable memory of the boxDoesn’t fit
  1. Qwen3 8BQ4_K_M
    fits 8.2 GB / 18 GB
    fits8.2 GB
  2. too big 46 GB / 18 GB
    too big46 GB

What “fits” means

Two checks: the context stays within the model’s limit, and weights plus the context part fit the memory planned for the GPU. That is memory planning only, not proof of a working install, speed or answer quality. Check the Ollama hardware support for your GPU and driver before you buy.

Weights plus reserve

Weights are the download size of the linked variant, an approximation; the quantization is stated per model. Example: Qwen3 8B takes about 5.2 GB, our calculation gives 8.2 GB with 8k context and one user, not a measured peak.

More users: flat reserve × 1 + 0.6 × (min(users, 4) − 1), exact cache × users; beyond 4 we assume a queue.

KV cache: the exact figure per model

The flat reserve above is a planning value. For models with plain attention we also publish the exact KV cache from the model’s own config.json: 2 × layers × KV heads × head dim × 2 bytes per token (f16 values), times the context in tokens. Example, Qwen3 30B-A3B: 2 × 48 × 4 × 128 × 2 = 98,304 bytes per token; at 8K context (8,192 tokens) that is 0.81 GB, in decimal GB.

The figure is the cache only, without weights and runtime overhead. Models with sliding-window layers (Gemma 4, gpt-oss) or linear-attention layers (Qwen3.5, 3.6, 3.8) get the same sum per layer type, with the llama.cpp defaults: a sliding-window layer keeps min(context, window + 512 rounded up to a multiple of 256) cells (--swa-full off, 512 is the default batch), a linear-attention layer a constant f32 state (convolution plus recurrent state, from the linear_* fields of the config), and a layer that shares the cache of an earlier layer (Gemma 4 E2B and E4B) none. Models whose config is not public or does not state the layer rules stay out of the table instead of getting a guess. All rows, with their config links, are in the memory table and the CSV and JSON behind it (CC BY 4.0).

Which number is which: for a model with a row in that table, the planning figure at 8K, 32K and 128K uses the exact cache whenever it is larger than the flat reserve, never a smaller one, so a dense model is no longer planned too low at long context. Example, DeepSeek R1 32B at 128K: 20 GB file + 34.4 GB exact cache = 54.4 GB (the flat reserve alone would give 38 GB). Models without a row (gated or unclear config) keep the flat reserve at every context; the hubs and model pages say per figure which one applies.

GPU-usable is not total memory

With shared memory, the operating system, CPU applications and GPU compete for the same capacity, so we reserve part of the total and show the assumption on each device page (for example 96 of 128 GB). Apple unified memory and soldered LPDDR can’t be upgraded later; the manufacturer’s specification for the variant counts.

Speed: a theoretical back-of-the-envelope figure

tokens/s ≈ memory bandwidth ÷ active weights in GB × 0.65. For MoE we use a flat approximation of the active weights; all experts still have to fit in memory. The factor is not calibrated against our own measurements, and long contexts, prompt processing and thermal limits can lower real speed; small and MoE models in particular can come out too optimistic. It says nothing about time to first token or guaranteed team performance. Per user we divide by the square root of the number of users. The catalog devices are not measured by us; our own runs on one machine, with the estimate next to each measurement, are on LLMBOX Bench. How close public runs get to this limit: the bandwidth rule against 25 measurements.

How the recommendation is made

We filter by budget, preinstalled system, context limit and memory, then recommend the cheapest mini PC with at least 20 tokens/s per user, or the fastest one that fits, with a note. The formula rates no answer quality: a small model that fits can beat a large one that doesn’t. Use your own examples and the model cards.

Prices, sources and independence

Every price belongs to one RAM/SSD configuration, shop and date. We show offers from shops with an affiliate program, sorted by price including VAT and shipping; the cheapest is the “from” price. Other retailers may be cheaper, so check availability and coupons with the shop. We don’t show Amazon prices because Amazon requires API access for them.

Links marked “Ad” are affiliate links and can trigger a commission; it affects neither the order of offers nor our recommendations. Product images are illustrations. Error reports reach us via the contact page.

To cross-check