SYSTEM NOTE
The best local LLMs for 2027, and the hardware to run each one
Which open-weight models are worth running on your own hardware in 2027, sorted by how much memory you actually have, with the licence for each, the runtimes to use, and current Mac, NVIDIA and AMD options read off the vendors' own pages.
"Which local model is best" is the wrong first question. The right one is how much memory you have, because that decides which models are even on the table. After that comes the licence, and only then the benchmarks.
So this guide for 2027 is sorted by memory. Every model, licence and hardware figure below comes from the model card or the vendor's own page, listed at the end. Benchmark claims are the vendor's own and are labelled as such.
The short answer
- 16GB or less (most laptops, the base Mac mini): Qwen3.5 9B, Gemma 4 E4B or 12B, Granite 4.2 8B, or OpenAI's gpt-oss-20b.
- 32GB to 64GB: Qwen3.8-27B is my default here. Gemma 4 31B and Qwen3.6-35B-A3B are the strong alternatives.
- 128GB (DGX Spark, Mac Studio M5 Max, AMD Strix Halo, RTX Spark laptops): gpt-oss-120b or Mistral Small 4, both mixture-of-experts models with a small number of active parameters.
- 256GB and up: Mistral Medium 3.5 or DeepSeek-V4.1-Flash, if you have read their licences and have a reason to need them.
How much memory a model needs
The official llama.cpp quantisation notes give the bits per weight for each format. The arithmetic is simple: parameters multiplied by bits per weight, divided by eight, gives the size of the weights in bytes.
| Format | Bits per weight | Roughly, per billion parameters |
|---|---|---|
| F16 | 16.0 | 2 GB |
| Q8_0 | 8.50 | 1.06 GB |
| Q6_K | 6.56 | 0.82 GB |
| Q5_K_M | 5.70 | 0.71 GB |
| Q4_K_M | 4.89 | 0.61 GB |
So a 27B model at Q4_K_M needs about 16.5GB for the weights, and a 120B model needs about 73GB. The same README notes that the whole model is loaded into memory, so disk size and memory size are the same. On top of that you need room for the context window and the operating system, which is why I treat the weights as needing to fit in roughly two thirds of the memory you have.
Two more things decide whether a model feels usable rather than merely fits. Memory bandwidth sets how fast tokens come out, because every generated token reads the active weights. And active parameters matter more than total parameters for speed: a mixture-of-experts model with 6B active parameters generates far faster than a dense model of the same total size, even though both need the same memory to hold.
The models worth running
| Model | Released | Size | Context | Licence |
|---|---|---|---|---|
| Qwen3.5 9B | Feb | 9B dense | 262K | Apache 2.0 |
| Gemma 4 E4B | 2 Apr | edge, ~4B effective | 128K | Apache 2.0 |
| Gemma 4 12B | May | 12B dense | 256K | Apache 2.0 |
| Granite 4.2 8B | 25 Aug | 8B dense | 128K, to 512K | Apache 2.0 |
| gpt-oss-20b | Aug 2025 | 21B, 3.6B active | - | Apache 2.0 |
| Qwen3.8-27B | 14 Aug | 27B dense | 262K, to 1M | Apache 2.0 |
| Gemma 4 31B | 2 Apr | 31B dense | 256K | Apache 2.0 |
| Gemma 4 26B MoE | 2 Apr | 26B, 3.8B active | 256K | Apache 2.0 |
| Qwen3.6-35B-A3B | Apr | 35B, 3B active | 262K | Apache 2.0 |
| Muse Glimmer 30B (Meta) | Aug | ~30B dense | 131K | Apache 2.0 |
| gpt-oss-120b | Aug 2025 | 117B, 5.1B active | - | Apache 2.0 |
| Mistral Small 4 | Mar | 119B, 6.5B active | 256K | Apache 2.0 |
| Qwen3.8-Flash-Next | 27 Aug | 125B, 6B active | 262K, to 1M | Qwen community licence |
| Mistral Medium 3.5 | - | 128B dense | 256K | Modified MIT, with conditions |
| DeepSeek-V4.1-Flash | Sep | very large MoE | up to 1M | MIT |
Months without a year are this year. A dash means the model card does not state it.
Up to 16GB
This tier is for laptops, the base Mac mini and on-device features. The realistic jobs are classification, extraction, summarisation, drafting and light tool use, not long autonomous agent runs.
- Qwen3.5 9B. The newest small Qwen. Its card claims coverage of 201 languages and dialects, which matters if you need Arabic.
- Gemma 4 E4B and 12B. Google's small models under Apache 2.0, with official 4-bit QAT builds that are a good default for constrained machines. The 12B takes text, image, audio and video input.
- Granite 4.2 8B. IBM's dense model, aimed at tool calling and agentic workflows, with official MLX builds for Apple Silicon.
- gpt-oss-20b. OpenAI's open-weight model, which its card says runs within 16GB of memory. No new gpt-oss model has been released since.
- Ternary Bonsai 2 (2B, 4B, 9B). PrismML's ternary-weight builds of Qwen3.5 are tiny: the 9B is 2GB. Worth testing for on-device use, with the usual caution that extreme compression costs more on long tasks than on short benchmarks.
32GB to 64GB
This is where local AI became genuinely useful for real work, and where I would spend most of a budget.
- Qwen3.8-27B. Dense, Apache 2.0, with a 262K native context and image and video input. I covered why the licence matters more than its benchmark scores in A 27B model under Apache 2.0. At Q4 it fits comfortably on a 32GB machine, and at Q8 on 64GB.
- Gemma 4 31B. Google says it ranked third among open models on the Arena text leaderboard at launch. Also Apache 2.0.
- Qwen3.6-35B-A3B and Gemma 4 26B MoE. With only 3B to 4B parameters active per token they are noticeably faster than the dense models, which matters for agent loops that make many calls.
- Muse Glimmer 30B. Meta's newest open model is not a new Llama. Its card gives about 17GB for a quantised build that fits a 24GB card, and stresses tool use and recovery from failed tool calls.
- Ternary Bonsai 2 27B. A 5.9GB ternary build of Qwen3.8-27B. I wrote about where its headline 98% figure holds and where it does not in Ternary Bonsai 2 27B.
128GB
A year ago 128GB of fast memory meant a workstation. It now describes several off-the-shelf machines, and it opens up mixture-of-experts models above 100B parameters.
- gpt-oss-120b. 117B total, 5.1B active, and OpenAI says it fits on a single 80GB GPU.
- Mistral Small 4. Despite the name, 119B total with 6.5B active, under Apache 2.0, with image input.
- Qwen3.8-Flash-Next. 125B total with 6B active, which Alibaba describes as an early preview of the architecture for Qwen4. It ships under a Qwen community licence rather than Apache 2.0, so read the terms before any commercial use.
256GB and above
- Mistral Medium 3.5. A 128B dense model. Its modified MIT licence carries exceptions for large-revenue companies, so check whether you qualify before you build on it.
- DeepSeek-V4.1-Flash. MIT licensed, up to 1M context, and very large. It is realistic only on the biggest unified-memory machines or a proper GPU server.
Runtimes
- Ollama. The simplest way to get a model running on macOS, Windows or Linux, with a local API. Built on llama.cpp.
- LM Studio. A desktop app with a local API, using MLX and llama.cpp underneath. The friendliest option for non-engineers.
- llama.cpp. The engine underneath much of the ecosystem. It reached version 1.0 on 13 November, and supports CUDA, Metal, Vulkan, ROCm and more.
- MLX and mlx-lm. Apple's framework for running and fine-tuning models on Apple Silicon. Usually the fastest option on a Mac.
- vLLM and SGLang. Serving engines for when several people or agents share one model on NVIDIA or AMD hardware. Overkill for one person, necessary for a team.
The hardware
Starting prices are for the base configuration. The memory you actually want for local models usually costs more.
| Machine | Max memory | Bandwidth | From (USD) |
|---|---|---|---|
| Mac mini (M6) | 32GB | up to 170GB/s | $899 |
| Mac mini (M5 Pro) | 64GB | 307GB/s | $1,699 |
| Mac Studio (M5 Max) | 128GB | up to 614GB/s | $2,499 |
| Mac Studio (M5 Ultra) | 512GB | 1.2TB/s | $5,499 |
| NVIDIA DGX Spark | 128GB | 273GB/s | see NVIDIA |
| NVIDIA RTX Spark laptops | 128GB | - | $2,599 |
| NVIDIA RTX 5090 (GPU) | 32GB | - | - |
| AMD Ryzen AI Max+ 395 systems | 128GB | - | varies by maker |
Some notes on reading that table:
- The Mac Studio has the most memory bandwidth per dollar in this list, which is why it is what I use for internal agents. The 512GB M5 Ultra is the only machine here that can hold the largest open models in one box.
- The DGX Spark has less bandwidth than a Mac Studio, but it runs the full NVIDIA CUDA stack, which matters if your production target is NVIDIA. NVIDIA says one unit runs models up to 200B parameters, and two linked units up to 400B. A 64GB version from Acer, ASUS, Dell and others started shipping in October.
- The RTX 5090 is very fast but holds 32GB. It is the right choice for 27B-class models at speed, and the wrong one for anything bigger.
- AMD's Ryzen AI Max machines offer 128GB of unified memory on Windows and Linux. AMD has announced a PRO 400 series with up to 192GB.
- The Mac mini is a serious deployment target for small and mid-sized models. I wrote about that in Why I'm interested in Mac minis for local AI deployments.
What I would actually set up
For a single engineer or a small team: a 64GB to 128GB Apple Silicon machine, Qwen3.8-27B as the default model, a fast mixture-of-experts model such as Qwen3.6-35B-A3B for agent loops, and LM Studio or Ollama serving both behind a local API.
For a company that needs to keep data in-house: decide on the model and the licence first, then buy hardware for the quantisation you will run in production, with headroom for context and concurrent users. Most of the cost of a failed local AI project is buying the box before deciding the workload.
The part that is not about models
Running a model on your own hardware means the data does not go to a model provider. It does not, by itself, make a deployment compliant with PDPL or anything else. Access control, logging, retention and who can reach the machine still decide that, and they are the same questions a cloud deployment has to answer. For most organisations the honest answer is a mix of local and cloud, which I cover in The best architecture is sometimes hybrid.
If you want to run models inside your own network and need it designed properly, see services. For the coding agents that can point at these models, see The best AI coding tools for 2027.
Sources
- 01Qwen3.8 changelog
- 02Qwen3.8-27B model card
- 03Qwen3.8-Flash-Next model card
- 04Qwen3.6-35B-A3B model card
- 05Qwen3.5-9B model card
- 06Gemma 4
- 07Muse Glimmer 30B model card
- 08Mistral Small 4 model card
- 09Mistral Medium 3.5 model card
- 10gpt-oss-20b model card
- 11DeepSeek-V4.1-Flash model card
- 12Granite 4.2 8B model card
- 13PrismML launches Ternary Bonsai 2 27B
- 14Bonsai 2 family adds 2B, 4B and 9B models
- 15llama.cpp quantize README
- 16llama.cpp v1.0.0 release
- 17Apple introduces new Mac Studio with M5 Max and M5 Ultra
- 18Apple unveils a more powerful Mac mini featuring M6 and M5 Pro
- 19NVIDIA DGX Spark
- 20NVIDIA RTX Spark PCs available today
- 21AMD powers next-generation agent computers with new Ryzen AI