Sunday, 8 November 2026 | Updating Daily AI insight, written for builders

The Best Local LLMs to Run on Ollama in 2026 (Ranked by Use Case)

Updated · Originally published

Ollama can run more than a hundred models, which is exactly why people freeze when picking one. The good news: you only need a handful. This guide ranks the best local LLMs in 2026 by the job you’re trying to do — general work, coding, reasoning, or squeezing onto weak hardware — and tells you the memory each one needs.

New here? Start with what Ollama is, then check your hardware before downloading anything. If you do not know how much memory your GPU has, here is how to check your VRAM.

Key takeaways

  • Best all-rounder: Gemma 4 26B A4B — tool calling + vision, runs comfortably, the most practical pick for most people. ollama run gemma4:26b
  • Best for coding: Qwen 3.8 27B — Qwen’s model card puts it ahead of Qwen 3.6 27B on every coding benchmark it lists; an 18 GB download. ollama run qwen3.8:27b
  • Best for reasoning/math: DeepSeek-R1 7B — a 4.7 GB chain-of-thought model that fits modest hardware.
  • Best for weak hardware: Gemma2 2B — a 1.6 GB download, fine on a CPU-only laptop.
  • Safest commercial license: the Qwen 3 family (including Qwen 3.6 and 3.8) and Gemma 4 ship under Apache 2.0.

Quick answer

As of November 2026, the best local LLM to run on Ollama for most people is Gemma 4 26B A4B (ollama run gemma4:26b, a 16–19 GB download): Google’s mixture-of-experts model with tool calling, image input and an Apache 2.0 license. For coding, run Qwen 3.8 27B (ollama run qwen3.8:27b, 18 GB), which Qwen’s model card puts at 61.7 on SWE-bench Pro, against 53.5 for Qwen 3.6 27B; for step-by-step math and reasoning, DeepSeek-R1 7B (ollama run deepseek-r1:7b, 4.7 GB); and on a CPU-only laptop, Gemma2 2B (ollama run gemma2:2b, 1.6 GB). Always add the size tag: a bare ollama run gemma4 pulls the small E4B model, ollama run deepseek-r1 pulls the 8B and ollama run qwen3.6 now pulls the 35B-A3B model, according to Ollama’s library listings for Gemma 4, DeepSeek-R1 and Qwen 3.6. Tags that end in cloud, such as gemma4:cloud and gemma4:31b-cloud, are not local downloads: they run on Ollama’s servers, need you to sign in to an Ollama account and do not work offline. The current Ollama release is v0.40.15 (3 November 2026).

How to think about picking a model

Three things decide which model is “best” for you, in this order:

  1. What can your hardware fit? A model has to fit in your RAM or VRAM (in quantized form). The best model you can’t run is useless. Match the size to your machine using our system requirements guide.
  2. What’s the job? Coding, general chat, reasoning, and document work reward different models. A great coder isn’t always a great writer. For a ranking of the strongest open-weight models and the hardware each needs, see our open-source LLM leaderboard.
  3. Does the license matter? If you’re building a product, prefer Apache 2.0 models (Qwen 3, Gemma 4) over more restrictively licensed ones.

Best all-rounder: Gemma 4 26B A4B

Google’s Gemma 4 26B A4B (released 31 March 2026) is the model we’d put in most people’s hands first. It’s a mixture-of-experts design with built-in tool calling and vision support, and it punches well above its memory footprint — making it ideal for local agents, function calling, and structured output. It’s Apache 2.0, so you can build on it commercially.

ollama run gemma4:26b

If you want a single model for chat, light coding, summarizing, and agent work, this is the safe default. On a smaller GPU, step down within the same family: Ollama also lists a Gemma 4 12B (ollama run gemma4:12b, a 7.7–8.0 GB download with a 256K context window) and the edge-sized E4B and E2B models. Ollama’s Gemma 4 page says every model in the family has configurable thinking modes.

Best for coding: Qwen 3.8 27B

For writing and refactoring code locally — without sending a line to an API — Qwen 3.8 27B is our pick as of November 2026. It takes over from Qwen 3.6 27B because Qwen’s own model card puts it ahead of 3.6 on every coding benchmark it lists, including 61.7 vs 53.5 on SWE-bench Pro and 73.0 vs 63.4 on Terminal Bench 2.1. It is Apache 2.0 licensed and accepts images, and the default tag is an 18 GB download with a 256K context window, so it needs a GPU with more than 18 GB of memory (in practice a 24 GB card) or a Mac with plenty of unified memory. If your machine can hold it, it’s the closest thing to a cloud coding assistant that never phones home.

ollama run qwen3.8:27b

Two alternatives are worth knowing. Qwen 3.6 27B (ollama run qwen3.6:27b, 18–19 GB) is still a strong coder; its model card lists 77.2% on SWE-bench Verified. Flint (ollama run flint:40b, 23 GB), which Ollama added in October 2026, is Recursive’s 40B mixture-of-experts coding model with about 2.5B parameters active per token; Recursive reports 74.2% on SWE-bench Verified. Flint runs on Linux and Windows from Ollama v0.40.9.

Running on tighter hardware? Drop to a smaller Qwen coder variant or use Gemma 4. For the full breakdown of coding-specific picks and how they compare on real tasks, see our guide to the best local LLM for coding.

Best for reasoning and math: DeepSeek-R1 7B

DeepSeek-R1 7B is a chain-of-thought model: DeepSeek-R1’s reasoning distilled into a 7.6B Qwen base, published on Ollama as a 4.7 GB download under the MIT license. Because it “thinks” through problems step by step, it’s the one to reach for when correctness on multi-step logic matters more than speed. At 7B it fits on modest hardware, which makes it an unusually accessible reasoning model. It is also an older release (Ollama’s library shows it as last updated a year ago), and newer families now ship with thinking built in: Qwen 3.5 (sizes from 0.8B to 122B) and Gemma 4 both list a thinking capability, so if you already run one of them you may not need a separate reasoning model.

ollama run deepseek-r1:7b

Best for weak hardware: Gemma2 2B

No discrete GPU? Gemma2 2B is one of the lightest useful models in the library: a 1.6 GB download (4-bit Q4_0). It won’t win benchmarks, but it’s genuinely usable for summarization, simple Q&A, and drafting on a basic laptop — proof that you don’t need a workstation to start with local AI. Its limit is an 8K-token context window. If you need longer documents, newer small models are close in size: Llama 3.2 3B (ollama run llama3.2:3b, 2.0 GB, 128K context) and Qwen 3.5 2B (ollama run qwen3.5:2b, 2.7–3.1 GB, 256K context, with image input).

Best for enterprise scale: Qwen3 235B-A22B

If you have serious hardware and want a frontier-class open model with a clean license, Qwen3 235B-A22B is one of the safest enterprise picks: a mixture-of-experts model with 235B total parameters but only 22B active per token, under Apache 2.0. The default qwen3:235b tag is a 142 GB download (Q4_K_M), which puts it in multi-GPU or very-large-unified-memory territory. It’s well suited to multilingual apps and commercial products — provided you have the memory to host it. Our Qwen3 235B-A22B model page has its full specs.

Quick comparison

Model Best for Download (default tag) License
Gemma 4 26B A4B General / agents / vision 16–19 GB Apache 2.0
Qwen 3.8 27B Coding 18 GB Apache 2.0
DeepSeek-R1 7B Reasoning / math 4.7 GB MIT
Gemma2 2B Weak / CPU-only hardware 1.6 GB Gemma Terms of Use
Qwen3 235B-A22B Enterprise / multilingual 142 GB Apache 2.0

Download sizes are from each model’s tags page on ollama.com, checked in November 2026. Running a model takes more memory than the download, because the context window (KV cache) comes on top.

A simple decision path

  • One model for everything → Gemma 4.
  • 12–16 GB GPU, one model → Gemma 4 12B.
  • Mostly coding, strong GPU → Qwen 3.8 27B.
  • Hard reasoning or math → DeepSeek-R1.
  • Old laptop, no GPU → Gemma2 2B.
  • Building a commercial product → stick to the Apache 2.0 models (the Qwen 3 family, Gemma 4).

Whichever you choose, the command is the same — ollama run <model> — and you can keep several installed and switch freely. To run any of them, you’ll first need Ollama set up: here’s our step-by-step install guide. If you already have it, update Ollama before pulling newer models, and see the full Ollama models list for every family with its download sizes.

Quantization: why the same model can need 4 GB or 14 GB

Every VRAM figure in this guide is really a quantization figure. A model’s raw weights ship at 16-bit precision (FP16), but Ollama compresses them before they run on your machine — and that compression level, not the parameter count alone, decides whether a model fits. When you run ollama run gemma4 without a quantization tag, the llama.cpp build behind the default tag is Q4_K_M: a 4-bit quantization that is the de facto standard for consumer hardware. For newer models such as Gemma 4 and Qwen 3.6, ollama.com also lists a separate MLX build under the same default tag, which is why their sizes appear as a range.

The savings are dramatic. On ollama.com, DeepSeek-R1 7B is 15 GB at FP16, 8.1 GB at Q8_0, and 4.7 GB at Q4_K_M. That 4-bit default is why a 7B reasoning model fits an 8 GB card with room to spare, and why Qwen 3.8 27B is an 18 GB download rather than the 56 GB of its BF16 build. The quality cost of 4-bit varies by model and task: it is usually hard to spot in chat and drafting, and it shows up first in code and exact reasoning, which is why the advice below steps up to Q8_0 there.

So when should you move off the default?

  • Stay on Q4_K_M for chat, drafting, summarizing, and general agent work. It is the best balance of quality and footprint, full stop.
  • Step up to Q8_0 (near-lossless, but a much bigger download: 30 GB instead of 18 GB for Qwen 3.8 27B) only for code generation and exacting reasoning, where a single wrong token breaks the output — and only if you have the VRAM headroom.
  • Drop to Q3 or smaller as a last resort to squeeze a bigger model onto a small card. You will feel the quality loss, and a smaller model at Q4 is usually the better trade.

You pull a specific level by appending the tag: ollama run qwen3.8:27b-q8_0 instead of the bare name. The rule of thumb that holds across hardware: a bigger model at Q4 almost always beats a smaller model at Q8 at the same memory budget. Quantization is what lets you run the model you actually want — pick the largest model your machine fits at Q4_K_M first, then only raise precision if quality demands it and the VRAM is there.

FAQ

What is the best Ollama model in 2026?

For most people, Gemma 4 26B A4B — it’s a capable all-rounder with tool calling and vision, an Apache 2.0 license, and a reasonable memory footprint. For coding specifically, Qwen 3.8 27B is stronger; for reasoning, DeepSeek-R1 or a model with a built-in thinking mode such as Qwen 3.5.

What’s the best local LLM for low-end hardware?

Gemma2 2B. It is a 1.6 GB download and works on CPU-only laptops. If you have a little more headroom, a 7–8B model like DeepSeek-R1 7B gives noticeably better quality while still fitting modest machines.

Which local model is closest to ChatGPT?

The largest open models you can host — like Qwen3 235B-A22B — close much of the gap, but on the hardest reasoning tasks the best cloud frontier models still lead. For everyday chat, coding, and document work, a well-chosen local model is more than good enough and keeps your data private.

Do I need a powerful GPU for these models?

It depends on the model. Gemma2 2B runs on a CPU; a 7B model is comfortable on 8 GB of memory; Qwen 3.8 27B is an 18 GB download and wants a 24 GB-class GPU or a high-memory Mac. Match the model to your hardware using our system requirements guide.

Are these models free for commercial use?

The Qwen 3 family (including Qwen 3.6 and 3.8) and Gemma 4 ship under Apache 2.0, which is permissive for commercial use. DeepSeek-R1 is MIT-licensed, and Gemma2 uses Google’s Gemma Terms of Use. Always confirm the specific model’s license before shipping a product, since terms can vary by release.

How do I download a higher-quality, less-compressed version of a model?

Append the quantization tag to the model name. ollama run qwen3.8:27b gives you the default 18 GB build (Q4_K_M on the llama.cpp engine); ollama run qwen3.8:27b-q8_0 pulls the near-lossless 8-bit version of the same model, a 30 GB download. Browse a model’s page on ollama.com to see every tag it actually publishes — naming follows the model:size-quant pattern. For chat and general use the Q4_K_M default is the right call; reserve Q8_0 for coding or precise reasoning where you have VRAM to spare.

Can I run more than one model at the same time?

Yes, but they share your memory. Ollama loads a model on demand and, by default, keeps it in memory for 5 minutes after use, so switching between, say, Gemma 4 and DeepSeek-R1 is instant once both are installed — but running them concurrently means their footprints add up. On a single 8–16 GB GPU, expect to run one capable model at a time and let Ollama swap them as you call each. Keep as many installed as you like; only the active ones consume VRAM.

Why does my model slow down or run out of memory on long documents?

Because context costs VRAM. Beyond the model’s own weights, Ollama allocates a KV cache that grows linearly with the context window, and modern Ollama scales the default context with your hardware (about 4K tokens under 24 GB of VRAM, rising to 32K from 24–48 GB and 256K beyond that). Feeding in a long document or chat history can add gigabytes of cache and sharply cut tokens-per-second. If you hit limits, shorten the context length, or set OLLAMA_KV_CACHE_TYPE=q8_0: Ollama’s FAQ says an 8-bit KV cache uses about half the memory of the default f16 cache with a very small loss in precision. It needs Flash Attention, which Ollama turns on automatically where the hardware supports it.

Bottom line

You don’t need to test a hundred models — you need the right four or five. Run Gemma 4 as your default, Qwen 3.8 when you’re coding, DeepSeek-R1 when you need to reason, and Gemma2 2B when hardware is tight. Each is a single ollama run away, and all of them keep your data on your own machine.

Written by Mustafa Ihsan

Mustafa Ihsan is the founder and editor of Convly.ai. He built and maintains the site's live AI models database, its price-performance index, and its free calculators for VRAM requirements, API costs and self-hosting economics. He writes about model pricing, benchmark results and the hardware needed to run AI models locally, and consistently prefers measured numbers to vendor claims.

Scroll to Top