To run an LLM locally you need three things: a runtime such as Ollama or LM Studio, a 4-bit copy of an open-weight model, and enough memory to hold it.
Plan on about 0.66 GB of memory per billion parameters. Installing the runtime takes ten minutes. Your memory decides everything else.
We sized the 128 open-weight models in our hardware catalog on December 2, 2026. Quality rises in steps: the best fit scores 40.5 at 16 GB, 54.9 at 24 GB, and still 54.9 at 96 GB.
Running an LLM locally takes a runtime, a model file, and memory
Think of a local LLM as two pieces: a model file on your disk and a program that loads it into memory and generates text from it. Nothing leaves your machine, and nothing is billed per token.
That program is the runtime, and three cover most home setups. llama.cpp is the MIT-licensed C/C++ engine underneath the other two. Ollama lists llama.cpp as its backend and wraps it in a one-line install for macOS, Windows, and Linux, plus commands such as ollama run gemma4. LM Studio puts it in a desktop app with a model browser, and on Apple Silicon it can also run models through Apple's MLX. All three work offline once you've downloaded the file.
Your model file is a compressed copy of an open-weight model. Most labs publish weights at 16-bit precision. Copies made for home use store most weights in about 4 bits, which cuts the file to roughly a quarter of the size. We come back to what that costs below.
Memory is where the model lives while it runs: the graphics card's own memory on a PC, or the unified memory a Mac shares between its CPU and GPU. If the model doesn't fit, it either fails to load or runs partly from slower system memory, and generation gets much slower.
So decide in reverse order. Pick the runtime last, because any of the three will do. Pick the model by memory first.
An LLM needs about 0.66 GB of memory per billion parameters
At 4-bit, every billion parameters takes about 0.57 GB of memory for the weights. Our VRAM calculator adds 15% on top for the runtime, which makes about 0.66 GB per billion. So an 8B model needs 5.3 GB and a 27B model needs 17.7 GB. At 45.9 GB, a 70B model doesn't fit one 24 GB card at 4-bit.
We checked that rule against the sizes Ollama lists for the same models in its library, read on December 2, 2026:
| Model | Parameters | Our 4-bit estimate | Ollama download |
|---|---|---|---|
| GPT-OSS 20B | 20B | 13.2 GB | 14 GB |
| LFM2.5-24B-A2B | 24B | 15.8 GB | 15 GB |
| Qwen3.8-27B | 27B | 17.7 GB | 18 GB |
| Gemma 4 31B | 31B | 20.4 GB | 19 GB |
| Qwen3.8-Flash-Next | 180B stored | 118.0 GB | 120 GB |
For all five, our estimate lands within 2 GB of the download. One clarification, though: the download is the floor, not the fit. Our 15% is headroom for the runtime, while the download is just the file. On top of the file, the runtime keeps a cache of the conversation so far, the KV cache, and it grows with context length. Long documents and long chats can need several more gigabytes. On a Mac, the operating system and your open apps share that same memory pool too.
Keep a model's estimate a few gigabytes under the memory you actually have free, not the number on the box.
The memory ladder: 24 GB buys the biggest step
Once you know what fits, the next question is what you get for it. We ran the calculator's fit rule over every open-weight model in our catalog that carries a public score, 69 of the 128, for twelve memory sizes from 8 GB to 512 GB on one machine. For each size, our chart shows the overall score of the best model that fits at 4-bit.
We call this the memory ladder, and it's a staircase, not a slope. Going from 16 GB to 24 GB adds 14.4 points, the largest step on the chart. Going from 24 GB to 96 GB, four times the memory, adds nothing: one model leads every rung in between. Only at 128 GB does Qwen3.8-Flash-Next fit, at 60.4.
Memory buys quality in steps, and the gigabytes between the steps buy no score at all.
They do buy something else, which is room. On a 32 GB card, a 27B model has space for a long context or a higher-precision copy that 24 GB can't give it. But if you're shopping for a better model, the ladder says to buy the rung, not the gigabytes.
Two more numbers sit on the chart. DeepSeek V4.1 Flash 1017, the best open-weight model in our tables, scores 70.0 and needs about 362 GB at 4-bit, so it belongs on a workstation or server, not a laptop. And Claude Fable 5.2, the overall leader, scores 93.2 and can't be downloaded at all. Running locally trades points for privacy, a fixed cost, and offline use. On a 24 GB card, that trade is 54.9 against 93.2.
Treat the ladder as a snapshot. If a lab releases a strong 14B or 40B model, it adds a rung where there isn't one today, and the local LLM rankings and the calculator update as our catalog does.
Local LLM quality comes in steps because labs ship fixed sizes
Nothing about memory itself makes the steps. Labs release families at a handful of sizes, and your memory either reaches the next size or it doesn't.
In our catalog, sized models bunch up. One cluster sits at 1B to 9B parameters and fits in about 6 GB. Another runs from 24B to 36B, from Qwen3.8-27B and Gemma 4 31B up to the 35B mixture-of-experts models, and needs 16 GB to 24 GB. Next comes a group at 117B to 128B that needs 77 GB to 84 GB, but its best model, Ling 3.0 Flash, scores 47.3, below the 24 GB rung. Models that beat the 24 GB rung start at 180B stored.
Between the clusters there's very little. In the 40B to 110B range we have sizes for ten models, only three of them carry a public score, and the best of those three scores 43.2. So a 48 GB or 64 GB machine reaches the same best model as a 24 GB one. It just runs it with more room to spare.
Within a cluster, scores aren't sorted by size either. Sage-A1.5, a 36B model with about 3B active parameters, scores 54.9. Gemma 4 31B, a dense 31B model, scores 45.4. GPT-OSS 20B scores 30.3. Newer training beats more parameters often enough that the right question at a given rung is which recent model fits, not which model is biggest.
Even the top of the rung isn't the practical pick at 24 GB. Sage-A1.5 needs 23.6 GB, which leaves almost nothing for the conversation on a 24 GB card. Qwen3.8-27B scores 54.0, ranks 83rd of the 217 models in our overall table, needs 17.7 GB, and is Ollama's default qwen3.8:27b tag at 18 GB. A point lower, with 6 GB left for context, is the better buy.
Mixture-of-experts models need big memory but little compute
Mixture-of-experts (MoE) models split their weights into many experts and use only a few of them for each token. Qwen3.8-Flash-Next stores 180B parameters, counting its embedding tables, and its model card says only 6B are active per token.
That split matters at home because memory and speed answer to different numbers. Every expert has to sit in memory, because the model doesn't know in advance which ones the next token needs, so memory follows total parameters: about 118 GB for Qwen3.8-Flash-Next at 4-bit. Each generated token reads only the active weights, so speed follows active parameters. With 6B active, a 180B MoE generates closer to a 6B model's pace than a 180B one's.
That's why big MoE models suit machines with lots of slower memory, such as a high-memory Mac, better than one fast 24 GB graphics card. Your Mac can hold all the experts. Your graphics card can't, however fast it is.
People usually get this wrong in the other direction. Names such as "35B-A3B" read like a 3B model, but they need memory for 35B: 23 GB at 4-bit, not 2 GB. Size by the first number, and expect speed from the second.
LLM quantization is why 4-bit is the default
Quantization stores each weight in fewer bits than the 16 a lab trains with. At 8 bits a model needs about half its 16-bit memory, and at 4 bits about a quarter. Our calculator uses 1.05 GB per billion parameters at 8-bit and 2 GB at 16-bit, against 0.57 GB at 4-bit.
Four bits became the default because it's where the trade usually lands for home hardware: small enough that a 27B model fits a 24 GB card, and close enough to the original that these copies are what most people download. Below 4 bits, files shrink further, and our calculator lists 2-bit at 0.32 GB per billion with the largest likely quality cost.
One limit applies to everything in this post. Our scores come from the labs' and benchmark runners' published results, run on the lab's own release or its API, not on the 4-bit copies people download. Your 4-bit file of the same model may score lower, and we don't publish scores for quantized copies. If you have the memory to step up from a 4-bit to an 8-bit copy of the same model, that's the cheapest quality you can buy. If you don't, a smaller model at 4-bit is usually safer than a bigger model squeezed to 2-bit.
In most home setups those files are GGUF files, the one-file format llama.cpp, Ollama, and LM Studio load, and they've become the mainstream way to get a model. We keep a daily read of Hugging Face downloads for our catalog. On November 30, 2026, GGUF repos took 32.9% of the 30-day downloads among about 3,700 popular models. On January 1, their share was 6.3%.
Ollama, LM Studio, or llama.cpp: the tool doesn't change the model
All three load the same GGUF files, so you're choosing an interface, not a set of models.
| Ollama | LM Studio | llama.cpp | |
|---|---|---|---|
| How you use it | Terminal command and a local API | Desktop app with chat and a model browser | Command-line tools and a server |
| Install | One command on macOS, Windows, Linux | Installer on macOS (Apple Silicon), Windows, Linux | Install script, Docker, or prebuilt binaries |
| Connects to other apps | Local API at localhost:11434 |
OpenAI-compatible local server | llama-server with a REST API |
| Pick it when | You want one command and other tools to call it | You want to browse and chat without a terminal | You want every setting and the newest features first |
Ollama is the shortest path if you're comfortable typing one command, and our Ollama models page lists which of its library models rank on our tables. LM Studio is easier if you'd rather click. Its system requirements page recommends 16 GB of RAM and, on a Mac, an Apple Silicon chip on macOS 14 or newer. With llama.cpp, new model support usually lands first, at the cost of more setup.
If you want a server for a team rather than a model for yourself, the cost question changes from memory to rental prices, and our self-host calculator compares GPU rental against the API price for the same model.
Your first local model takes five steps
- Find your memory. On a PC, it's the graphics card's memory. On an Apple Silicon Mac, it's the total memory in About This Mac.
- Find your rung on the ladder above, then subtract a few gigabytes for the conversation and, on a Mac, for everything else you have open.
- Pick the best-scoring model under that number that your runtime carries. On December 2, 2026 data and Ollama's library: LFM2.5-8B-A1B (
lfm2.5:8b, 5.2 GB) for 8 GB to 16 GB, LFM2.5-24B-A2B (lfm2.5:24b, 15 GB) for a 20 GB card, and Qwen3.8-27B (qwen3.8:27b, 18 GB) for 24 GB to 96 GB. - Install Ollama and run it, for example
ollama run qwen3.8:27b. Your first run downloads the file. - Give it a task you already know the answer to, ideally one from your real work, and compare its answer with the hosted model you use now.
Step five is the easy one to skip. But a local model is worth running only when it's good enough on your task, and our overall score is just the first filter. Your own test is the second.
Watch the empty space between 24 GB and 128 GB on the ladder. When a strong model lands at 40B to 70B parameters, the VRAM calculator will show it, and a 48 GB or 64 GB machine will stop running the same model as a 24 GB card. For what each open-weight license allows once the model is on your disk, see open-weight models explained.
Frequently asked questions
01Can I run an LLM on 8 GB of RAM?
Yes, with a small model. At 4-bit, a 4B model needs about 2.7 GB and an 8B model about 5.3 GB, so both fit 8 GB with room for the operating system. Expect a weaker model: the best open-weight score that fits 8 GB on our December 2, 2026 data is 39.8.
02Do I need a GPU to run an LLM locally?
No. Ollama, LM Studio, and llama.cpp all run on a CPU, and Apple Silicon Macs run models on their built-in GPU with shared memory. A dedicated GPU mostly buys speed. What decides which model you can load is total memory, either GPU memory or the system memory the model is loaded into.
03Is running an LLM locally free?
The software and the open-weight models cost nothing to download, and nothing is billed per token. You pay in hardware and electricity, and in model quality: the best open-weight model that fits a 24 GB GPU scores 54.9 on our December 2, 2026 data, against 93.2 for the best hosted model.
04What is the best local LLM for 24 GB of VRAM?
On December 2, 2026 data, Qwen3.8-27B is the practical pick: it scores 54.0, needs about 17.7 GB at 4-bit, and leaves room for a long conversation. Sage-A1.5 scores 54.9 but needs 23.6 GB, which leaves almost nothing for context on a 24 GB card.
