Before buying hardware for local models, a simple question comes up: what size model does 32 GB of RAM buy you? Practitioners have a rough formula: available memory minus a quarter, divided by 0.6 — and it predictably matches reality. We break down the formula, its verification on live models, and the memory speed ladder that explains why size is not everything. If you are choosing between a 16 GB laptop, a 64 GB server, and the “maybe 128 will be enough” option, this article replaces guesswork with calculation.
The Formula: (RAM – 25%) / 0.6
Step one: available RAM = the stated amount minus 25% — the rest is eaten by the system, context, and buffers. Step two: the maximum model size in billions of parameters = available RAM / 0.6. The divisor of 0.6 is roughly how many bytes one parameter occupies with Q4_K_M-level quantization (about 5 bits per weight). An example from practice: 32 GB → 24 GB usable → a model up to 40B.
The table below applies the formula directly to typical RAM amounts. The numbers on the right are for Q4_K_M-level models: if you take Q8, divide the available memory by nearly a byte per parameter; if you are ready for extreme quants, the divisor drops fourfold. The right column is the upper bound of “it fits”, not a quality assessment: two-bit builds get a separate caveat below.
| RAM | Usable amount (minus 25%) | Model up to, billions of parameters |
|---|---|---|
| 16 GB | 12 GB | about 20B |
| 32 GB | 24 GB | about 40B |
| 64 GB | 48 GB | about 80B |
| 128 GB | 96 GB | about 160B |
| 256 GB | 192 GB | about 320B |
The formula also matches outside measurements: on a hybrid platform with 128 GB of unified memory, 128 is advertised but only about 96 GB is actually available — minus a quarter, exactly as in step one. The match between “on paper” and “in fact” is a good sign that subtracting a quarter is not over-caution but a reflection of the real memory distribution.
Verification on Live Models
The formula lines up with Ollama practice: an 8B model occupies a little over 5 GB, a 14B model about 9 GB — right around 0.6 bytes per parameter. From this comes the working rule: a model’s “size” is roughly the amount of RAM it will occupy, plus 1–2 GB of headroom. In the Ollama, LM Studio, and llama.cpp guide this rule is given as the starting point: first look at the weight of the model file, then check the headroom for the system and context.
The flip side: light quants let you squeeze in more, but not for free. A 235B Qwen fit into 128 GB only in harsh Q2 — and quality dropped: the model mixed up facts and was useless as an encyclopedia; the author “sees practically no point” in such builds unless you are ready to wait hours for an answer. Speed confirms the diagnosis: about 21 tokens/s on prompt processing and about 4 tokens/s on generation, with individual runs starting at 1 token/s and finishing at an average of about 3. The formula here honestly shows “it fits” — but says not a word about whether the result will be useful.
For reference: compressing DeepSeek to 2.25 bits per weight retained 99.8% of the original’s average result — but those are the compression authors’ own measurements, with no independent verification. Until independent tests exist, treat two-bit versions as an experiment, not as a working tool for everyday tasks.
The Memory Ladder: Why Speed Comes Down to the Bus
Capacity is half the story; the other half is the speed at which weights reach the compute units. The ladder from practice looks like this:
| Tier | Speed | Slower than the tier above |
|---|---|---|
| GPU VRAM | about 896 GB/s | — |
| Dual-channel DDR4 | about 51 GB/s theoretical maximum | about 17x |
| A fast SSD | about 7 GB/s | about 7x |
Each tier is 7–18 times slower than the one before it, and the main enemy of performance is not the amount of computation but the “road” data travels to reach the compute unit. A CPU-server example: 128 GB of DDR4-2400 gives about 135 GB/s on paper, about 120 in fact, and this is the generation bottleneck: core count and hyper-threading barely move speed. How such a build is arranged line by line is covered in the breakdown of a CPU server with 128 GB of DDR4.
In MoE models only a small part of the weights is read per token — that is why CPU inference makes sense at all: GPT-OSS 120B delivers about 11 tokens/s of generation on a RUB 60–70K server. But once a model outgrows the RAM, the next tier of the ladder comes into play. In practices with Strata — a scheme with budget-tier distribution across GPU, RAM, and SSD — replacing a SATA drive running at 41 MB/s with an NVMe at about 1300 MB/s raised generation from 11–16 to 43–47 tokens/s: almost fivefold on the same hardware. And when a model fits in neither VRAM nor RAM entirely, a fast SSD stops being storage and becomes part of inference — as in the breakdown of Tandem.CPP, which runs DeepSeek with 266 GB of weights on a 16 GB VRAM budget.
Headroom for Context and Buffers
Do not fill memory with the model entirely. First: headroom for context — on a card with 16 GB of VRAM a 14B model formally fits, but the context fills up quickly and speed falls. The effect is cumulative: in long scenarios with contexts approaching 128K tokens, generation sagged by about a fifth. Second: buffers — when launching an 80 GB model, top and htop show only 13–15 GB occupied: the rest is reserved, do not let the numbers alarm you.
Third: MoE models with expert offload require RAM beyond VRAM — the experts outside the GPU counted about 34 GB, so 64 GB is a sensible minimum for such pairings. The scheme works like this: VRAM holds the active part and the cache of frequently used experts, while the rest of the “library” lives in RAM and is swapped in as needed — the mechanics are covered in the article on Qwen3 30B-A3B with layer offload. If a model must run around the clock — for agents or services — budget memory for context in advance: adding RAM to a live system always costs more than getting the configuration right from the start.
Economics: What to Buy for the Money
A CPU server (two Xeon E5-2680v4 CPUs, 128 GB of DDR4 ECC) cost RUB 60–70K, with memory as the main expense line; a stick that used to cost ~RUB 3K stands at RUB 5–5.5K as of fall 2026. The alternative for the same money is a card with 16 GB of VRAM plus a cheap CPU set: “either large models or fast ones.” The formula helps you pick a direction: write down the models you actually want to run, convert their weights into gigabytes, and see where they land in the table above — in the 16 GB of a graphics card or in the RAM of a server.
A separate story is models that fit nowhere: DeepSeek with 266 GB of weights on home hardware is already about SSDs and expert-cache schemes, not about the simple formula. In such schemes the money saved on the graphics card goes almost entirely into RAM and the drive: the weakest link of the GPU — RAM — SSD trio will determine the final speed, so calculate the budget as a whole, not one line at a time.
One final correction: the formula answers “will it fit”, not “will it be comfortable”. On a minimal configuration with 16 GB of RAM and no graphics card, practitioners advised staying with models up to 8B: formally a 14B fits, but on pure CPU it answers painfully, and the “about 20B” from the table is the theoretical ceiling for Q4_K_M, not a purchase recommendation.
Frequently Asked Questions
Does the formula work for VRAM? The logic is the same: subtract headroom for context and the engine, then divide by bytes per parameter; VRAM additionally has a bus several times wider, which is why 16 GB on a graphics card feels larger than 16 GB of RAM.
Why 0.6 exactly? About 5 bits per weight — the Q4_K_M level; Q8 is almost a byte per parameter, and extreme quants are four times less.
What can 128 GB handle? By the formula — models up to ~160B; in practice MoE models like GPT-OSS 120B live comfortably (about 11 tokens/s), while a 122B Qwen already means waiting (about 4 tokens/s).
Where do you look after the formula? At the weights of the specific GGUF file: size depends on the architecture and the quant, so files “for 30B” differ noticeably between families. And choose the model for the task — the model choice table by task type will save you more than any memory upgrade.
The bottom line: (RAM – 25%) / 0.6 gives the upper bound, the memory ladder gives the real speed, and headroom for context decides whether the model will be comfortable. Action: calculate your RAM with the formula and cross-check it against the GGUF file weights in the catalog before buying hardware; if it fits with headroom — take it; if it is a tight fit — either a smaller quant or more memory. Figures are current as of fall 2026.
