ComparisonModel comparisons
Best Open Source LLM to Run Locally: 8 Models Compared
The best open source LLM to run locally in 2026: 8 models compared on license, memory and context, plus a 10-minute setup and when ChatGPT is still better.
Verdict
Start with Gemma 4 12B or gpt-oss-20b in Ollama or LM Studio: both are free, Apache 2.0 licensed and run on a machine with 16 GB of memory. Local models win on privacy and offline use, but for hard tasks the top cloud models are still the safer bet.
A client contract, employee survey results, source code under NDA – some things you’d rather not paste into ChatGPT. A model running on your own laptop answers without sending a single word to the internet, and it keeps working at 35,000 feet.
So what’s the best open source LLM to run locally right now? Below you’ll find 8 models compared (as of November 22, 2026), a simple rule for working out how much memory you need, a step-by-step setup and an honest answer to when it simply isn’t worth it.
Open source vs open weights: what you actually get
Most models marketed as “open source” are really open weights. The developer publishes the trained weights (the file that holds what the model has learned), but not the training data or the full code used to build it.
The Open Source Initiative, which maintains the definition of open source, requires code, parameters and information about the training data before something counts as “Open Source AI”. Meta’s Llama 2 is on its list of systems that failed that validation.
What matters more for you is the license, because it spells out what you’re allowed to do:
- Apache 2.0 (gpt-oss, Gemma 4, Qwen3.8-27B, Ministral 3, Mistral Small 4, Muse Glimmer) – commercial use, modification and redistribution are allowed. You must keep the license and attribution notices.
- MIT (DeepSeek V4) – just as permissive and shorter; you keep the copyright notice.
- Llama 4 Community License – free, but with strings attached: companies with more than 700 million monthly active users need a separate license from Meta, distributors must display “Built with Llama”, and any model trained on Llama must have “Llama” at the beginning of its name.
- “Almost open” licenses – Mistral Large 4 uses a modified MIT license, but businesses offering it as a Model-as-a-Service need a separate commercial license. Meta’s Muse Spark Open ships under its own Muse license with a usage policy attached.
One catch: licenses can differ within the same model family. Always check the LICENSE file on the specific model card, not the family name.
The best open source LLM to run locally: 8 models (as of November 22, 2026)
| Model | Developer | Sizes | License | Context |
|---|---|---|---|---|
| gpt-oss | OpenAI | 20b (21B params), 120b (117B) | Apache 2.0 | 128K tokens |
| Gemma 4 | E2B, E4B, 12B, 26B A4B (MoE), 31B | Apache 2.0 | 128K (E2B/E4B), 256K (larger) | |
| Qwen3.8-27B | Alibaba (Qwen) | 27B | Apache 2.0 | 262K, extensible to 1M |
| Ministral 3 | Mistral AI | 3B, 8B, 14B | Apache 2.0 | 256K |
| Muse Glimmer | Meta | 30B | Apache 2.0 | ~131K |
| Llama 4 Scout | Meta | 109B (17B active) | Llama 4 license | 10M |
| DeepSeek V4-Flash | DeepSeek | 284B (13B active) | MIT | 1M |
| Mistral Small 4 | Mistral AI | 119B (~6B active) | Apache 2.0 | 256K |
“MoE” (mixture of experts) means only part of the model works on each token. That speeds things up, but the whole model still has to fit in memory.
| Model | Best for | Strengths | Weaknesses |
|---|---|---|---|
| gpt-oss-20b / 120b | chat, reasoning, tool use | 20b fits in 16 GB of memory, 120b in 80 GB | oldest in this list (August 2025); OpenAI benchmarks it against o4-mini, not its current flagships |
| Gemma 4 | office work, documents, images, speech | wide range of sizes, trained on 140+ languages, image input on every size, audio on E2B, E4B and 12B | the 31B is a ~20 GB download; the smallest sizes are clearly weaker than the big ones |
| Qwen3.8-27B | long documents, analysis, code | very long context, image and video input, adjustable “thinking” | thinking is on by default, so answers take longer; ~18 GB in Ollama |
| Ministral 3 | older laptops, simple tasks | the 3B is just 3 GB, 256K context, image input | small models trade quality for size – test it on your own work first |
| Muse Glimmer 30B | local agents, tools, multi-step tasks | built for always-on local agents, text and image input | new (August 2026); Meta targets 24 GB of VRAM at 4-bit; no audio |
| Llama 4 Scout | very long documents on a server | a record 10M-token context | 109B parameters: Meta says it fits on a single H100 only with int4 quantization; most restrictive license here |
| DeepSeek V4-Flash | company servers, coding, long context | MIT license, 1M-token context | 284B parameters means server hardware; Ollama offers it only as a cloud model |
| Mistral Small 4 | team assistant on a company server | Apache 2.0, image input, 256K context | Mistral’s stated minimum is 4× H100 – not a desktop model |
Left out of the table are the data-center giants: Mistral Large 4 (1T parameters, weights released in October 2026) and Meta’s Muse Spark Open (816B parameters, October 15, 2026).
Leaderboards online crown different winners because results depend on the task. The prompts and scoring sheet from our one-hour ChatGPT vs Claude vs Gemini test work just as well for local models.
Should you run an open source LLM locally instead of ChatGPT?
Yes, if you handle confidential data, need AI without an internet connection, or want full control over the model version and costs. No, if you need top quality on hard analysis, live web search and ready-made integrations. For many people the best setup is hybrid: sensitive data locally, everything else in the cloud.
In practice, a local model has the edge when:
- data can’t leave the building – a law firm summarizing case files, a bookkeeper cleaning up invoice descriptions, HR anonymizing open-ended survey answers,
- you work offline – on a plane, on a job site or on an air-gapped network,
- you want a fixed version – a model on your disk won’t change overnight, so prompts you’ve tuned keep working the same way six months later,
- you run lots of repetitive jobs – the license is free; you pay for hardware and electricity, not per request,
- you want to customize – Apache 2.0 lets you fine-tune the model and ship it inside your own product.
When ChatGPT, Claude or Gemini is still the better choice
Now the uncomfortable part. In our view, models that fit on a regular laptop are clearly weaker than the top cloud models at hard reasoning, long analysis and tasks that need broad world knowledge. Even OpenAI compares its largest open model with o4-mini, not with its current flagships.
Stick with the cloud when:
- mistakes are expensive – smaller models make things up more often; before you trust the output, read why AI hallucinates and how to stop it,
- you need current information – a local model doesn’t browse the web unless you set that up yourself,
- you don’t want to tinker – locally, updates, versions and settings are your job,
- your hardware is modest – with 8 GB of memory you’re limited to the smallest models.
Don’t forget the hidden cost: hardware. The license is free, but a 30B model needs a 24 GB graphics card or a Mac with at least 32 GB of memory. In our view, running AI locally only pays off financially if you already own that kind of machine.
How much memory do you need? A simple rule
Here’s the math: memory in GB ≈ parameters in billions × bits ÷ 8, then add 20–30% headroom for the conversation context and the app itself. The headroom is our rule of thumb, not a vendor figure.
Example: Qwen3.8-27B at 4-bit is 27 × 4 ÷ 8 = 13.5 GB. In Ollama the model file is 17 GB plus a 931 MB vision component – which is exactly why you need the headroom.
Quantization is “compression” for weights: instead of 16 bits per parameter, the model uses, say, 4. The file shrinks several times over, at the cost of some quality.
| Your hardware | What you can realistically run | Examples (Ollama download size) |
|---|---|---|
| Laptop with 16 GB RAM, no strong GPU | models up to ~12B at 4-bit | gemma4:e4b (6.6–9.5 GB), ministral-3:8b (6 GB), gemma4:12b (7.7–8 GB); gpt-oss:20b (14 GB) is borderline |
| Apple Silicon Mac, 16 GB | same as above, plus Mac-optimized MLX builds | gemma4:12b-mlx (7.7 GB); Google says Gemma 4 12B runs with 16 GB of unified memory |
| Mac with 32–64 GB | 26–31B models | qwen3.8 (18 GB), muse-glimmer:30b-mlx (19 GB), gemma4:31b-mlx (19 GB) |
| GPU with 24 GB VRAM | 27–31B models at 4-bit | qwen3.8 (18 GB), gemma4:31b (19–20 GB), muse-glimmer (18 GB; Meta targets 24 GB of VRAM at 4-bit); Ministral 3 14B in FP8 fits in ~24 GB |
| Workstation with 80 GB of GPU memory | large “office” models | gpt-oss:120b (65 GB) – OpenAI says it runs within 80 GB |
On a Mac, memory is shared between CPU and GPU, so what counts is total unified memory minus what macOS and your open apps need. LM Studio on Mac requires an M1 or newer and macOS 14, and recommends 16 GB of RAM or more.
How to run an LLM locally, step by step (Ollama)
Ollama runs on Windows, macOS and Linux. The commands below come from Ollama’s official docs and model library.
- Download and install Ollama from ollama.com/download.
- Open a terminal and type
ollama. During setup, pick a local model – you only need to sign in for cloud models. - Run your first model:
ollama run gemma4:12b. Ollama downloads the file (about 8 GB) and opens a chat. - Ask it something from your real work and judge the answer.
- Type
/byeto end the chat. - Check where the model is running:
ollama ps. The Processor column shows 100% GPU, 100% CPU or a split. - On weaker hardware try
ollama run gemma4:e4borollama run ministral-3:8b; on stronger machines,ollama run qwen3.8orollama run muse-glimmer.
Prefer a regular app? In LM Studio, open the Discover tab, search for a model (say, “Gemma 4”), download it, then pick it in the model loader on the Chat tab and start typing. According to LM Studio’s docs, nothing you type when chatting with a downloaded model leaves your device.
3 traps most guides don’t mention
1. A short memory you don’t notice. Ollama’s default context length is 4,096 tokens, even when the model supports far more. Paste a 30-page contract and the model may only “read” part of it – without telling you. Raise the limit inside the chat:
/set parameter num_ctx 32768
A longer context uses more memory. For how this limit works, see our explainer on context windows and long documents.
2. A “cloud” model inside a local app. Ollama also offers cloud models such as gpt-oss:120b-cloud or DeepSeek V4.1-Flash. With those, inference runs on Ollama’s servers and your prompt leaves your machine. Ollama says it doesn’t store or log those prompts, but it’s no longer local. Quick test: turn off Wi-Fi and ask a question. If you get an answer, it’s running on your machine.
3. License strings when you fine-tune. Fine-tune Llama 4 into a customer support bot and ship it? Under the license, your model’s name has to start with “Llama” and you must display “Built with Llama”. Apache 2.0 and MIT have no such requirements.
A ready-made prompt for your first test on a real document (strip out personal data first):
Read the document below and:
1. Summarize it in 5 bullet points.
2. List every date, amount and deadline in a table: value | where it appears.
3. If something isn't in the document, write "not in the text" – don't guess.
[paste document]
Check the table against the original – you’ll quickly see whether the model invents facts.
Privacy: local DeepSeek is not the DeepSeek app
When a model runs locally, your data stays on your computer – Ollama states plainly that it doesn’t see your prompts when you run locally. That includes DeepSeek weights downloaded to your own server.
The DeepSeek app and API are a different story. Its privacy policy says the company collects, processes and stores personal data in the People’s Republic of China. The policy lists model training among the purposes; you can opt out by emailing the address given in the policy.
European regulators have acted:
- January 30, 2025 – Italy’s data protection authority, the Garante, ordered an urgent limitation on processing Italian users’ data by the companies behind the DeepSeek chatbot and opened an investigation. It called the companies’ reply entirely insufficient.
- June 27, 2025 – Berlin’s data protection commissioner reported the DeepSeek app to Apple and Google as illegal content under the EU Digital Services Act, citing transfers of German users’ data to China without adequate safeguards.
To be fair: ChatGPT, Claude and Gemini in the cloud also process your data on their makers’ servers. The difference is where the data ends up, which laws protect it and what regulators have already found.
Verdict: which local LLM is right for you
In our view, start with Gemma 4 12B or gpt-oss-20b in Ollama or LM Studio. Both are Apache 2.0 and run on a machine with 16 GB of memory. Local models win on privacy and offline use, but for hard tasks the top cloud models are still the safer bet.
- 16 GB laptop, everyday office work: Gemma 4 12B (or E4B on weaker hardware) – broad language and image support.
- Older laptop, simple tasks: Ministral 3 3B or 8B.
- 24 GB GPU or 32 GB+ Mac, long documents: Qwen3.8-27B – the longest context in its class.
- Automations and agents on your own machine: Muse Glimmer 30B.
- Company with a GPU server: gpt-oss-120b (80 GB), or with a bigger budget DeepSeek V4-Flash (MIT) or Mistral Small 4 (Apache 2.0).
- New projects on Llama 4: in our view, skip it – the license is more restrictive than Apache 2.0, and Meta’s own newer Muse Glimmer is Apache 2.0.
Your first step today: install Ollama, type ollama run gemma4:12b and give it one real task from your job. Then give the same task to ChatGPT – and see how the big cloud assistants stack up in our ChatGPT vs Claude vs Gemini comparison.
FAQ
Can a local LLM work without internet?
Yes. You need a connection to download the app and the model. After that, chatting with a downloaded model works offline – in LM Studio and Ollama the processing happens on your computer. The exception is models labeled as cloud models.
What is the best local LLM for 16 GB of RAM?
The safest choice is Gemma 4 12B or E4B. Google says the 12B runs with 16 GB of memory. gpt-oss-20b also fits, but 16 GB is the limit – close other apps first.
Is a local LLM as good as ChatGPT?
For simple tasks it’s often good enough. In our view, for hard analysis, long reports and world knowledge, the top cloud models still clearly beat anything that fits on a regular laptop.
Can I use open source LLMs commercially?
With Apache 2.0 (gpt-oss, Gemma 4, Qwen3.8-27B, Ministral 3, Muse Glimmer) and MIT (DeepSeek V4), yes – keep the license notices. Llama 4 adds conditions, including the “Built with Llama” notice.
Does running DeepSeek locally send data to China?
Weights running on your own hardware don’t connect to DeepSeek’s servers. Data goes to China when you use the DeepSeek app or API – that’s what the company’s privacy policy says.
Sources
- OpenAI – Introducing gpt-oss
- Ollama – gpt-oss
- Google – Gemma 4: Byte for byte, the most capable open models
- Google – Introducing Gemma 4 12B
- Hugging Face – google/gemma-4-31B-it (model card)
- Ollama – gemma4
- Hugging Face – Qwen/Qwen3.8-27B (model card)
- Ollama – qwen3.8
- Mistral AI – Introducing Mistral 3
- Hugging Face – mistralai/Ministral-3-14B-Instruct-2512 (model card)
- Ollama – ministral-3
- Mistral AI – Introducing Mistral Small 4
- Mistral AI – Mistral Large 4 is now open weight
- Hugging Face – meta-models/Muse-Glimmer-30B (model card)
- Ollama – muse-glimmer
- Meta – Meta Connect 2026: The end-to-end recap
- Hugging Face – meta-models/Muse-Spark-Open-816B-A42B (model card)
- Hugging Face – meta-llama/Llama-4-Scout-17B-16E-Instruct (model card)
- Meta – Llama 4 Community License Agreement
- Hugging Face – deepseek-ai/DeepSeek-V4-Flash (model card)
- Hugging Face – DeepSeek-V4.1-Flash LICENSE (MIT)
- DeepSeek – Privacy Policy
- Garante per la protezione dei dati personali – DeepSeek (30.01.2025)
- Berliner Beauftragte für Datenschutz – DeepSeek (27.06.2025)
- Open Source Initiative – Open Source AI Definition FAQ
- Apache License 2.0
- The MIT License (OSI)
- Ollama – Quickstart
- Ollama – FAQ
- Ollama – Cloud
- LM Studio – System Requirements
- LM Studio – Get started
- LM Studio – Offline Operation