The best local AI model is the largest good one that fits in your memory with room left for the context. As of November 2026, a practical shortlist is qwen3:8b for 8 GB machines, gpt-oss:20b for 16 GB, qwen3:30b or gemma3:27b for 24 GB, and gpt-oss:120b for an 80 GB GPU.
There is no single winner, and this article does not pretend there is one. We did not run benchmarks. The picks below follow from published download sizes, memory statements and licenses on the official Ollama library pages and a model card, plus arithmetic you can check. Where a pick is a judgment call, it says so. Model lineups change quickly, so check the library pages before you download.
Quick answer: pick by memory
"Memory" means VRAM if you have a dedicated GPU, or system RAM on a CPU-only machine or an Apple silicon Mac, where the GPU shares RAM. The download size is the minimum you need for the weights. Add room for the context cache and your operating system.
| Your memory | Pick | Download | Why |
|---|---|---|---|
| 4 GB or CPU only | llama3.2:3b or qwen3:4b | 2.0 GB / 2.5 GB | Smallest models that are still useful for drafting and simple questions |
| 8 GB | qwen3:8b | 5.2 GB | Largest Qwen3 that leaves headroom on an 8 GB card |
| 16 GB | gpt-oss:20b or qwen3:14b | 14 GB / 9.3 GB | gpt-oss-20b is stated to run in 16 GB; Qwen3 14B leaves more headroom |
| 24 GB | qwen3:30b or gemma3:27b | 19 GB / 17 GB | Largest models that fit one consumer card with a modest context |
| 80 GB GPU | gpt-oss:120b | 65 GB | Ollama says it fits on a single 80 GB GPU |
Sizes are from the Ollama library pages for each model, which list GB as the download size of the default quantized build. To check what a quantized size means for your own card, see how much VRAM you need to run an LLM locally.
Best local AI model for 4 GB or a CPU-only machine
With little memory, choose by size first. llama3.2:3b is a 2.0 GB download with a 128K context window on Ollama. qwen3:4b is 2.5 GB. gemma3:4b is 3.4 GB and is the only one of the three that accepts images.
ollama run llama3.2:3b
ollama run qwen3:4b
ollama run gemma3:4b
Expect these to handle summaries, rewrites, simple extraction and short code snippets. Do not expect careful multi-step reasoning. If you have no GPU, Ollama runs the model on the CPU from system RAM. It works, just more slowly, so keep the model small.
Best local AI model for 8 GB
qwen3:8b is the pick. Ollama lists it at 5.2 GB, which leaves roughly 2.8 GB of an 8 GB card for the context cache and runtime buffers. The Hugging Face model card gives the license as Apache 2.0 and the size as 8.2 billion parameters.
ollama run qwen3:8b
Qwen3 has a thinking mode that is on by default. The model card says it writes its reasoning inside a <think>...</think> block before the answer, and that you can turn this off or switch per message with /think and /no_think. Thinking produces many more tokens, so on slow hardware use /no_think for simple questions.
The model card gives a native context length of 32,768 tokens, extendable to 131,072 with YaRN scaling, which it recommends enabling only when you need long inputs. Ollama's page shows 40K for this tag. A longer context grows the cache, which is the usual reason an 8 GB card runs out of memory. If you want a bit more capability and have a card with a few spare gigabytes, gemma3:12b is 8.2 GB, which is too large for 8 GB of VRAM but fits on a 12 GB card.
Best local AI model for 16 GB
Two good options, with a trade-off:
gpt-oss:20bis a 14 GB download with a 128K context window and an Apache 2.0 license. Ollama states it can run on systems with as little as 16 GB of memory. That is the floor, not a comfortable setting, so it suits a 16 GB GPU or a Mac with 24 GB or more better than a 16 GB laptop doing other work.qwen3:14bis 9.3 GB, leaving about 6.7 GB on a 16 GB card for the cache and everything else. Choose this if you want long contexts or other programs open.
ollama run gpt-oss:20b
ollama run qwen3:14b
On the gpt-oss page, Ollama explains that the weights are quantized to 4.25 bits per parameter (MXFP4) and that the mixture-of-experts weights make up over 90% of the parameters. That is why a 20-billion-parameter model fits in 14 GB. The arithmetic checks out: 20 billion × 4.25 ÷ 8 is about 10.6 GB for the expert weights alone, and the remaining tensors account for the rest. For background on these formats, see what LLM quantization and GGUF are.
Best local AI model for 24 GB
A 24 GB card opens up the 27 to 32 billion parameter class.
| Tag | Download | Context (Ollama page) | Notes |
|---|---|---|---|
qwen3:30b | 19 GB | 256K | Mixture of experts, named 30B-A3B: about 3B parameters active per token |
qwen3:32b | 20 GB | 40K | Dense model, all parameters used per token |
gemma3:27b | 17 GB | 128K | Accepts images; Gemma Terms of Use apply |
The practical difference is speed versus footprint. A mixture-of-experts model like qwen3:30b activates only a fraction of its parameters for each token, so it generally generates faster than a dense model of similar file size, though all of the weights still have to be in memory. gemma3:27b is the smallest download here and the one to choose if you need image input. At 19 to 20 GB, the two Qwen3 tags leave only 4 to 5 GB of a 24 GB card for the cache, so keep the context modest.
ollama run qwen3:30b
ollama run gemma3:27b
Best local AI model for 64 GB or more
On a Mac with 64 GB of unified memory or a workstation, the 24 GB options all fit with room to spare, including long contexts. The next step up in the models above is gpt-oss:120b, a 65 GB download. Ollama says it fits on a single 80 GB GPU, so a 64 GB machine cannot hold it entirely in memory, and part would run slowly from other memory. If you have 64 GB, a bigger context on qwen3:30b or gemma3:27b is the more realistic use of the extra space. See how to run an LLM on a Mac with Apple silicon for Mac-specific limits.
How to tell if a model is too big for your machine
Load the model, send a long prompt, then run:
ollama ps
Ollama's FAQ describes the PROCESSOR column. A value of 100% GPU means the whole model is in VRAM. Something like 48%/52% CPU/GPU means part of it spilled into system RAM, which is why generation slows down. If you see a split, choose the next size down or shorten the context. To compare runtimes, read LM Studio vs Ollama. To choose hardware before you buy, see how to choose a GPU for a local LLM.
How to choose between models of the same size
Once a model fits, the differences are about what you do with it, and the published pages let you narrow it down:
- Images in the prompt: Gemma 3 at 4b, 12b or 27b.
- Long documents: check the context window on the tag's page, and remember a long context costs memory. gpt-oss lists 128K, gemma3 (4b and larger) 128K, and several Qwen3 tags 40K.
- Licensing: gpt-oss is listed as Apache 2.0 and the Qwen3-8B card as Apache-2.0. Gemma points to its own Gemma Terms of Use, and the Ollama pages for qwen3 and llama3.2 name no license, so read the model card before commercial use.
- Reasoning versus speed: Qwen3 lets you switch thinking off per message, which helps on slower hardware.
The honest way to pick the best local AI model for your work is to run two candidates on five or ten of your real prompts and compare the answers and the speed. Published leaderboards measure someone else's tasks. Once you have a winner, how to run an LLM locally with Ollama covers installing and managing it.
Frequently asked questions
- What is the best local AI model for a laptop with 16 GB of RAM?
- gpt-oss:20b is a good first choice. Ollama lists its download at 14 GB and says it runs on systems with as little as 16 GB of memory, with a 128K context window and an Apache 2.0 license. Expect it to be tight once the operating system and a long context are counted, so qwen3:8b (5.2 GB) is the safer fit if the larger model swaps or runs slowly.
- Can I run a local AI model without a GPU?
- Yes. Ollama can run models on the CPU from system RAM, and the model still works, just more slowly than on a GPU. Small models such as llama3.2:3b (2.0 GB) or qwen3:4b (2.5 GB) are the practical choice on CPU-only machines.
- Are local models as good as ChatGPT or Claude?
- Not generally. The largest hosted models are much bigger than anything that fits on a consumer machine. Local models are good enough for many tasks such as summarising, drafting, code help and question answering over your own files, and they keep your data on your machine. Test a candidate on your own prompts before deciding.
- Which local model can read images?
- Of the models in this article, the Gemma 3 tags 4b, 12b and 27b accept images as input according to Ollama's library page. The 1b and 270m tags are text only.