Best local LLM for your hardware
Which open-weight model fits your computer’s memory, what its license allows, and the free app to run it.
Short answer
Size it to your memory.
With 8 GB, run a 3B to 4B model such as Qwen3.5 4B, a 3.3 GB download in Ollama. With 16 GB, Qwen3.5 9B or Gemma 4 12B. With 32 GB, Qwen3.8 27B or Gemma 4 26B A4B. Ollama and LM Studio run all of them for free on Mac, Windows and Linux.
16GB RAM
8 GB runs small modelsPick a local model for your computer
Pick the memory you have: RAM on a Mac with Apple silicon or a PC without a graphics card, VRAM on a PC with one. Each pick names the download size Ollama lists today and what the maker’s model card says. The command runs the first pick in Ollama.
- 01Qwen3.5 4B, Alibaba Qwen. The card describes a model that reads text and images, with a 262,144-token context. Ollama lists 3.3 to 4.0 GB for the qwen3.5:4b tag.
- 02Ministral 3 3B, Mistral AI. The card says it is built for edge devices and fits in 8 GB of VRAM at 8-bit. Ollama lists 3.0 GB for ministral-3:3b.
- 03Gemma 4 E2B, Google DeepMind. The card says the small Gemma 4 models are designed to run on laptops and phones. Ollama lists 4.6 to 7.5 GB for gemma4:e2b, so the top of that range is tight on 8 GB.
- 01Qwen3.5 9B, Alibaba Qwen. Same family as the 4B, with 9B parameters and the same 262,144-token context on the card. Ollama lists 6.6 to 7.6 GB for qwen3.5:9b.
- 02Gemma 4 12B, Google DeepMind. The card lists text, image and audio input and a 256K context. Ollama lists 7.7 to 8.0 GB for gemma4:12b.
- 03gpt-oss-20b, OpenAI. OpenAI’s card says it runs within 16 GB of memory and is meant for local use. Ollama lists 14 GB for gpt-oss:20b, which leaves little room for other apps.
- 01Qwen3.8 27B, Alibaba Qwen. The 27B member of Qwen3.8, Qwen’s newest family; the card names gains in coding and agent tasks. Ollama lists 18 GB for qwen3.8:27b.
- 02Gemma 4 26B A4B, Google DeepMind. A mixture of experts that uses about 4B of its 25.2B parameters per token, so the card says it runs faster than its size suggests. Ollama lists 16 to 19 GB for gemma4:26b.
- 03Devstral Small 2, Mistral AI. A 24B coding model; the card says it runs on a single RTX 4090 or a Mac with 32 GB of RAM. Ollama lists 15 GB for devstral-small-2.
- 01Qwen3.8 27B at 8-bit, Alibaba Qwen. The same model as the 32 GB pick, stored at 8-bit instead of 4-bit. Ollama lists 30 GB for qwen3.8:27b-q8_0.
- 02Qwen3.6 35B A3B at 8-bit, Alibaba Qwen. 35B parameters with 3B active per token; the card puts agentic coding first. Ollama lists 39 GB for qwen3.6:35b-a3b-q8_0.
- 03Llama 3.3 70B, Meta. A 70B text model the card describes as tuned for multilingual dialogue, with a 128K context. Ollama lists 43 GB for llama3.3:70b.
OpenAI’s larger gpt-oss-120b is a 65 GB download in Ollama, and its card targets a single 80 GB GPU, so it needs more than 64 GB.
Best local LLM for 8 GB, 16 GB and 32 GB of RAM
There is no single best local LLM, because the model has to fit in your memory first. The picks above follow one rule: the newest open-weight models from the big labs whose Ollama download leaves room for your system and the conversation. We do not rank them on benchmarks; each card publishes its own scores, measured by the maker.
8 GB. Stay at 3B to 4B parameters. Qwen3.5 4B and Ministral 3 3B are both 3 to 4 GB downloads. LM Studio’s system requirements say 8 GB Macs can still run it if you stick to smaller models and modest context sizes.
16 GB. Qwen3.5 9B and Gemma 4 12B are 7 to 8 GB downloads, and both cards list image input. Microsoft’s Phi-4 (14B, MIT license) is a 9.1 GB download, but its card lists a 16K-token context, far shorter than the others.
32 GB. You can run the 24B to 27B class: Qwen3.8 27B, Gemma 4 26B A4B, Gemma 4 31B (19 to 20 GB in Ollama), Mistral Small 3.2 24B (15 GB) and Devstral Small 2 (15 GB).
64 GB or more. Run the same models at 8-bit, or a 70B model such as Llama 3.3 at 4-bit (43 GB).
Qwen and DeepSeek come from Chinese labs. Our guide to Chinese AI models covers who makes them, which ones you can download and under which license, so this page does not repeat it. DeepSeek’s current V4.1 Flash has 552B backbone parameters on its card, and Ollama offers it only as a cloud model, so it is not a home model.
CNBest local LLM for coding tasks
Three open models say coding is their main job on their own cards:
- 01Qwen3 Coder 30B A3B: 30.5B parameters with 3.3B active, a 262,144-token context, and a card that names agentic coding in Qwen Code and Cline. Ollama lists 19 GB for qwen3-coder:30b.
- 02Devstral Small 2 24B: Mistral’s coding model, built for software engineering agents, with a 256K context. The card says a single RTX 4090 or a 32 GB Mac runs it.
- 03Qwen3.6 35B A3B: the card lists agentic coding and repository-level reasoning as the main upgrades. Ollama lists 23 GB for qwen3.6:35b-a3b.
On 16 GB, Qwen3.5 9B and gpt-oss-20b are the realistic choices; neither is a coding-only model. One setting matters more than the model: Ollama’s context length documentation says coding tools and agents need at least 64,000 tokens, while Ollama defaults to 4K on a GPU with less than 24 GiB of VRAM. Raise it with the slider in the Ollama app settings, and expect memory use to grow with it.
Best local LLM for writing: Gemma 4 and others
No maker publishes a writing score we could check, so pick by what the card says the model was built for and by size. Google’s Gemma 4 card lists text generation (scripts, marketing copy, email drafts) and summaries among its uses, and the family supports over 140 languages. Mistral’s Small 3.2 card says it follows precise instructions better than the version before, and the Ministral 3 cards suggest trying a higher temperature for creative work. Meta’s Llama 3.3 70B card describes a model tuned for multilingual dialogue.
The cards cover whole families, so the same notes apply to every size; the picker above shows which size fits your memory.
Best local LLM software: Ollama, LM Studio, llama.cpp
Setup for running local LLMs is short with any of the three: install the app, download one model, start a chat.
Ollama runs on macOS, Windows and Linux. Its pricing page puts running models locally in the $0 plan, with no subscription; the Pro ($20 a month) and Max ($100 a month) plans add usage credits for its cloud models. One command downloads and starts a model, as in the picker above, and the ollama ps command shows how much of a loaded model sits on the GPU.
LM Studio is a desktop app for Mac (Apple silicon, macOS 14 or newer), Windows (x64 and ARM) and Linux (x64 and ARM64). Its pricing page lists a Free plan with local model support. Its getting started guide is three steps:
- 01Open the Discover tab and download a model, from the curated list or by search.
- 02Go to the Chat tab and open the model loader.
- 03Select the model you downloaded, and chat once it has loaded.
llama.cpp is an open-source engine, and LM Studio says its own runtime uses MLX and llama.cpp. It is MIT licensed, treats Apple silicon as a first-class target and supports NVIDIA CUDA and Vulkan. After installing, its README shows one command that downloads a model from Hugging Face and starts a chat, and another that starts a local server compatible with the OpenAI API.
Jan is an open-source app under Apache 2.0 that its README describes as running fully offline, with builds for Windows, macOS and Linux.
Hardware: how much system RAM or VRAM a local LLM needs
The size of the weights follows from two numbers: parameters and bits per parameter. As a rule of thumb, parameters in billions times bits, divided by 8, gives gigabytes. The real downloads in Ollama run about a quarter to a third above that floor:
- 8B at 4-bit: 8 × 4 ÷ 8 = 4 GB. Ollama lists Llama 3.1 8B at 4-bit (q4_K_M) as 4.9 GB.
- 27B at 4-bit: 27 × 4 ÷ 8 = 13.5 GB. Ollama lists qwen3.8:27b-q4_K_M as 18 GB.
- 70B at 4-bit: 70 × 4 ÷ 8 = 35 GB. Ollama lists llama3.3:70b as 43 GB.
That is before the context. Ollama’s documentation says a longer context needs more memory, and it sets the default by VRAM: 4K tokens under 24 GiB, 32K from 24 to 48 GiB, and 256K at 48 GiB or more. For best speed it advises keeping the whole model on the GPU rather than offloading part of it to the CPU.
The part that grows is the KV cache: the model keeps a record of every token in the conversation, so a long context costs memory on top of the weights. Coding tasks and long reasoning tasks fill the context fastest. On consumer hardware without a large GPU, a model that does not fit in VRAM spills into system RAM and runs slower; Apple silicon Macs share one pool of memory between the CPU and GPU, which is why the picker counts it as one number.
Our own rule of thumb, not a vendor figure: keep the download under about three quarters of your memory, so the system and the context have room. The picker follows it, with the two exceptions flagged.
Local LLM models and their licenses
Every model in the table except Llama uses Apache 2.0 or MIT, licenses that allow commercial use. Llama is the exception: Meta’s license adds terms for services with more than 700 million monthly users. Checked November 6, 2026, on each model card.
| Model | Maker | License |
|---|---|---|
| Qwen3.5 4B, 9B | Alibaba Qwen | Apache 2.0 |
| Qwen3.8 27B | Alibaba Qwen | Apache 2.0 |
| Qwen3.6 35B A3B | Alibaba Qwen | Apache 2.0 |
| Qwen3 Coder 30B A3B | Alibaba Qwen | Apache 2.0 |
| Gemma 4 E2B to 31B | Google DeepMind | Apache 2.0 |
| gpt-oss-20b, 120b | OpenAI | Apache 2.0 |
| Ministral 3 3B, 14B | Mistral AI | Apache 2.0 |
| Mistral Small 3.2 24B | Mistral AI | Apache 2.0 |
| Devstral Small 2 24B | Mistral AI | Apache 2.0 |
| Llama 3.3 70B | Meta | Llama 3.3 Community License |
| Phi-4 14B | Microsoft | MIT |
| DeepSeek V4.1 Flash | DeepSeek | MIT (too large for home use) |
FAQ
What is the best local LLM right now?
The newest family that fits your memory. As of November 6, 2026, that means Qwen3.5 or Gemma 4 on 8 to 16 GB, and Qwen3.8 27B or Gemma 4 26B A4B on 32 GB. All are Apache 2.0.
What is the best local LLM for 16GB RAM?
Qwen3.5 9B (6.6 to 7.6 GB in Ollama) or Gemma 4 12B (7.7 to 8.0 GB). OpenAI says gpt-oss-20b runs within 16 GB, but its 14 GB download leaves little room.
What is the best local LLM for coding?
With 32 GB, Qwen3 Coder 30B A3B or Devstral Small 2, both built for coding agents per their cards. Set the context to at least 64,000 tokens, as Ollama’s docs advise for coding tools.
Can I run a local LLM with 8 GB of RAM?
Yes, a 3B to 4B model such as Qwen3.5 4B or Ministral 3 3B, both 3 to 4 GB downloads. LM Studio says 8 GB Macs work with smaller models and modest context sizes.
Is running a local LLM free?
Yes. The models above are free to download under their licenses, Ollama lists local use at $0, and LM Studio has a Free plan with local model support. You pay only for your own hardware and power.
Can I run DeepSeek locally?
Not the current one on a home computer. DeepSeek V4.1 Flash has 552B backbone parameters on its card, and Ollama lists it only as a cloud model.
Ollama or LM Studio: which should I use?
Both are free for local use. Ollama runs a model with one command and also has an app; LM Studio is a desktop app where you find models in the Discover tab and chat in the Chat tab.
Sources
- Hugging Face model cards, read November 6, 2026: Qwen3.5 4B and 9B, Qwen3.6 27B and 35B A3B, Qwen3.8 27B, Qwen3 Coder 30B A3B (Alibaba Qwen)
- Hugging Face model cards, read November 6, 2026: Gemma 4 E2B, E4B, 12B, 26B A4B and 31B (Google DeepMind)
- Hugging Face model cards, read November 6, 2026: gpt-oss-20b and gpt-oss-120b (OpenAI)
- Hugging Face model cards, read November 6, 2026: Ministral 3 3B and 14B, Mistral Small 3.2 24B, Devstral Small 2 24B (Mistral AI)
- Meta, Llama 3.3 model card and Llama 3.3 Community License, llama-models repository, read November 6, 2026
- Hugging Face model cards, read November 6, 2026: Phi-4 (Microsoft), DeepSeek V4.1 Flash (DeepSeek)
- Ollama library pages and tags for each model above, Ollama download and pricing pages, read November 6, 2026
- Ollama documentation, Context length and FAQ, read November 6, 2026
- LM Studio, System requirements, Get started with LM Studio, and pricing page, read November 6, 2026
- llama.cpp README (ggml-org, GitHub), read November 6, 2026
- Jan README (janhq, GitHub), read November 6, 2026
Spotted a mistake? Write to support@gptx.io and we will check it.
Next up4 minAI API pricing compared5When a local model is not enough: token prices of Claude, OpenAI, Gemini, DeepSeek and Grok.