How much memory do you need to run a local LLM?
Two numbers, added together, held at the same time. The weights are a fixed download. The key-value cache grows with the context window you ask for, and on some models it ends up larger than the weights. Nemotron 3.5 Bolt 74B-A9B at IQ2 is 22 GB of weights plus 0.3 GB of cache at 32k context: 22.3 GB in one machine.
Run the numbers on that pairing
Jump to: Where the cache figure comes from · How much memory for a 7B or 8B model? · How much memory for a 14B to 32B model? · How much memory for a 70B model? · How much memory for a 100B model or larger? · Context is the part people miss · What can you run with the memory you already have?
Where the cache figure comes from
The weights are whatever the file weighs on disk. The cache is arithmetic. Every token in the context window leaves a key and a value behind in every layer, and all of it stays resident while the model is loaded.
Two things follow. The window you ask for is a hardware decision, not a setting: on most models the cache grows in step with it, and only the ones with sliding-window layers stop growing partway. And two models of the same size can want very different amounts, because the number of key-value heads and the width of each one are architecture choices.
How much memory for a 7B or 8B model?
16 models on this site are under 10 billion parameters. The weights come to 1.1 GB to 8.5 GB, and at 32k context the cache adds 0.2 GB to 5.4 GB on top. That puts the whole job at 1.5 GB to 12.8 GB of memory at once. The cheapest machine here that runs the hungriest of them, Llama 3.1 8B Instruct at Q8_0, is the Mac mini M6, 24GB at $1,099.
How much memory for a 14B to 32B model?
28 models on this site are between 10 and 40 billion parameters. The weights come to 7.1 GB to 34.8 GB, and at 32k context the cache adds 0.2 GB to 8.6 GB on top. That puts the whole job at 8 GB to 43.4 GB of memory at once. The cheapest machine here that runs the hungriest of them, Qwen3 32B at Q8_0, is the Strix Halo Corsair AI Workstation 300, 64GB at $1,700.
How much memory for a 70B model?
4 models on this site are between 40 and 100 billion parameters. The weights come to 22 GB to 48.4 GB, and at 32k context the cache adds 0.3 GB to 10.7 GB on top. That puts the whole job at 22.3 GB to 53.3 GB of memory at once. The cheapest machine here that runs the hungriest of them, Llama 3.3 70B Instruct, is the Strix Halo Framework Desktop, 128GB at $3,449.
| Model | Parameters | Weights | Cache at 32k | Needs | Cheapest machine that runs it | |
|---|---|---|---|---|---|---|
| Nemotron 3.5 Bolt 74B-A9BIQ2 | 74.9B | 22 GB | 0.3 GB | 22.3 GB | Strix Halo Framework Desktop, 32GB $1,269 | Run the numbers |
| Qwen3-Coder NextQ4_K_M | 79.7B | 48.4 GB | 0.8 GB | 49.2 GB | Strix Halo Framework Desktop, 128GB $3,449 | Run the numbers |
| DeepSeek-R1-Distill-Llama-70BQ4_K_Molder | 70.6B | 42.5 GB | 10.7 GB | 53.3 GB | Strix Halo Framework Desktop, 128GB $3,449 | Run the numbers |
| Llama 3.3 70B InstructQ4_K_Molder | 70.6B | 42.5 GB | 10.7 GB | 53.3 GB | Strix Halo Framework Desktop, 128GB $3,449 | Run the numbers |
How much memory for a 100B model or larger?
18 models on this site are over 100 billion parameters. The weights come to 63.4 GB to 358 GB, and at 32k context the cache adds 0.2 GB to 11.8 GB on top. That puts the whole job at 64.6 GB to 358.3 GB of memory at once. No machine on this list holds the hungriest of them, Ling 3.1 flash, which wants 358.3 GB at 32k context. The largest that does fit is GLM-5.3-Flash, on the Mac Studio M5 Ultra, 256GB at $10,799.
| Model | Parameters | Weights | Cache at 32k | Needs | Cheapest machine that runs it | |
|---|---|---|---|---|---|---|
| gpt-oss-120bMXFP4 | 116.8B | 63.4 GB | 1.2 GB | 64.6 GB | Strix Halo Framework Desktop, 128GB $3,449 | Run the numbers |
| Llama 4 Scout 17B-16EQ4_K_Molder | 108.6B | 65.4 GB | 2.8 GB | 68.2 GB | Strix Halo Framework Desktop, 128GB $3,449 | Run the numbers |
| Mistral Small 4 (119B-2603)Q4_K_M | 119.4B | 73.8 GB | 0.8 GB | 74.5 GB | Strix Halo Framework Desktop, 128GB $3,449 | Run the numbers |
| Ornith 1.5 122BQ4_K_M | 125.1B | 75.8 GB | 0.8 GB | 76.6 GB | Strix Halo Framework Desktop, 128GB $3,449 | Run the numbers |
| Ling 3.0 flashQ4_K_M | 124B | 77.8 GB | 0.3 GB | 78.1 GB | Strix Halo Framework Desktop, 128GB $3,449 | Run the numbers |
| Qwen3.5 122B-A10BUD-Q4_K_M | 125.1B | 78.3 GB | 0.8 GB | 79.1 GB | Strix Halo Framework Desktop, 128GB $3,449 | Run the numbers |
| GLM-4.5-AirQ4_K_Molder | 110.5B | 73 GB | 6.2 GB | 79.2 GB | Strix Halo Framework Desktop, 128GB $3,449 | Run the numbers |
| Devstral 2 123BQ4_K_M | 125B | 74.9 GB | 11.8 GB | 86.7 GB | Strix Halo Framework Desktop, 128GB $3,449 | Run the numbers |
| Qwen3.8 Flash NextQ4_K_M | 180B | 119.6 GB | 0.9 GB | 120.5 GB | Mac Studio M5 Ultra, 256GB $10,799 | Run the numbers |
| Qwen3 235B-A22B Instruct 2507Q4_K_Molder | 235.1B | 142.2 GB | 6.3 GB | 148.5 GB | Mac Studio M5 Ultra, 256GB $10,799 | Run the numbers |
| MiniMax M2.7Q4_K_M | 228.7B | 140.2 GB | 8.3 GB | 148.5 GB | Mac Studio M5 Ultra, 256GB $10,799 | Run the numbers |
| DeepSeek V4-FlashUD-Q4_K_M | 284B | 155.1 GB | 0.2 GB | 155.3 GB | Mac Studio M5 Ultra, 256GB $10,799 | Run the numbers |
| Inkling SmallUD-Q4_K_M | 266B | 162.5 GB | 1 GB | 163.6 GB | Mac Studio M5 Ultra, 256GB $10,799 | Run the numbers |
| GLM-5.3-FlashUD-Q4_K_M | 321.3B | 189 GB | 0.6 GB | 189.5 GB | Mac Studio M5 Ultra, 256GB $10,799 | Run the numbers |
| Tencent Hy3Q4_K_M | 295B | 182.2 GB | 10.7 GB | 192.9 GB | nothing on this list | |
| MiniMax M3.1 FlashUD-Q4_K_XL | 428B | 249.4 GB | 4.5 GB | 253.9 GB | nothing on this list | |
| Beam 1.0 501B-A23BUD-Q4_K_XL | 501.3B | 306.5 GB | 1.3 GB | 307.8 GB | nothing on this list | |
| Ling 3.1 flashQ4_K_M | 560B | 358 GB | 0.3 GB | 358.3 GB | nothing on this list |
Context is the part people miss
A longer window costs memory before it costs anything else. Here is how many of the 50 current models fit three machines as the window grows, counting a model only where its own context ceiling allows it.
| Context | Framework Desktop, 32GB24 GB usable | Corsair AI Workstation 300, 64GB48 GB usable | Framework Desktop, 128GB96 GB usable |
|---|---|---|---|
| 4k | 32 | 34 | 41 |
| 8k | 32 | 34 | 41 |
| 16k | 31 | 34 | 41 |
| 32k default | 30 | 34 | 41 |
| 64k | 27 | 34 | 40 |
| 128k | 18 | 32 | 40 |
Size is a poor guide to the cache. Two models here have the same 125 billion parameters: at 128k context Devstral 2 123B wants 47.2 GB of cache and Qwen3.5 122B-A10B wants 3.2 GB. Each model's page carries its own figure.
You can also make the cache smaller. llama.cpp keeps the key-value cache at 16 bits unless you pass --cache-type-k and --cache-type-v. q8_0 stores 32 values in 34 bytes and q4_0 in 18, so the cache shrinks to about a half or about a quarter. Every generated token reads the whole cache, so a smaller one also speeds up long contexts. Both are lossy; 4-bit loses more. (ggml-org/llama.cpp) The calculator has that switch, and every figure on this page is at the 16-bit default.
What can you run with the memory you already have?
Every size a machine on sale here comes in is below, with how much of it a model actually gets, how many of the 50 current models fit in that at 32k context, and the strongest of them. The number on the box is not the number a model gets: the system takes a share, and on a machine with unified memory the GPU is only allowed to address part of the rest. 32 GB appears 3 times below, handing a model anything from 21 GB on the Mac mini M6, 32GB to 31 GB on the AMD Radeon AI PRO R9700, 32GB. So find your size in the first column, then read down to the machine nearest yours. The cheapest machine is shown at each level, and each row opens the calculator on that machine and that model.
Read the strongest-model column before you spend anything. From 21 GB of usable memory up to 119.5 GB, the strongest model on this list does not change: it is Qwen3.8 27B the whole way. More memory across that stretch buys more models, more context and more room to work, not a cleverer one. The next step up is GLM-5.3-Flash, and the cheapest machine that holds it is the Mac Studio M5 Ultra, 256GB at $10,799.
Every size in that first column has a page of its own, and so does every other size a machine here is sold in: the machines you can buy at it, what each of them hands a model, every model that fits, and what the next size up buys. 12 GB · 16 GB · 24 GB · 32 GB · 36 GB · 48 GB · 64 GB · 96 GB · 128 GB · 192 GB · 256 GB · 512 GB.
Every figure is at 32k context unless the row says otherwise, with the cache at 16 bits, at the quantisation named against each model. Weights are the published file sizes on each model's page; the cache is worked out from the architecture recorded there. Machines are the current ones at list price, with the memory their maker publishes and the usable share on each machine's page; graphics cards are priced as the card alone, so add the PC around one before comparing one with a complete computer. All seven cards here are ranked by what each one holds. The tables by size cover all 66 models listed here, superseded ones included and marked, because people still run them. The two tables of what a machine holds count the 50 current ones instead, which is what every machine page and the calculator count. To change the context, the quantisation or the cache type, open the calculator.