Ollama models: which ones to choose based on your machine

The right Ollama model is the one whose size listed in the library fits in your free memory with some headroom. As of November 18, 2026: qwen3.5:4b (3.3 GB) for 8 GB of RAM, qwen3.5:9b (6.6 GB) for an 8 GB card, gemma4:12b (7.7 GB) for 12 GB, gpt-oss:20b (14 GB) for 16 GB, qwen3.8:27b (18 GB) for 24 GB or a 32 GB Mac.
The Ollama library has hundreds of models, each available in several tags of very different sizes. This guide starts from your machine (RAM, graphics card, Mac) and takes you to the exact tag to download, with sizes taken from ollama.com on November 18, 2026. You'll also learn how to read a tag, estimate actual memory use, avoid models that run in the cloud, and verify that the model is actually loaded on your GPU.
#Which Ollama model should you choose based on your machine's memory?
Choose a Ollama model whose listed size takes up no more than about 80% of your available memory: the graphics card's VRAM on a PC, unified memory on a Mac, or RAM if you don't have a GPU. The rest goes to the context, the system, and open applications.
The table below maps each memory tier to specific tags in the Ollama library. Sizes are those shown on ollama.com on November 18, 2026; a range (for example, 6.6 to 7.6 GB) means the variants of the same tag don't all have the same size. The recommended tier is a QuelLLM estimate based on a 20% margin, not a requirement published by Ollama.
Three tags in the table slightly exceed this 20% margin: qwen3.5:9b (6.6 GB) on an 8 GB card, gemma4:31b (up to 20 GB) on a 24 GB card, and gpt-oss:20b (14 GB) on a 16 GB card. For gpt-oss:20b, the model's Ollama page states that it runs on systems with 16 GB of memory thanks to the MXFP4 format. In these three borderline cases, keep the context modest and check loading with ollama ps.
| Available memory | Tag Ollama | Displayed size | Things to know |
|---|---|---|---|
| 8 GB of RAM, no graphics card | granite4.1:3b or qwen3.5:4b | 2.1 GB; 3.3 to 4.0 GB | Runs on the CPU, more slowly; Granite 4.1 reads text only, Qwen 3.5 also accepts images |
| 16 GB of RAM or an 8 GB card | qwen3.5:9b | 6.6 to 7.6 GB | Qwen 3.5 latest tag; borderline case on an 8 GB card |
| 12 GB card or 16 GB Mac | gemma4:12b | 7.7 to 8.0 GB | Context up to 256K, text and image |
| 16 GB card or 24 GB Mac | gpt-oss:20b | 14 GB | Text only; Ollama states that it runs with 16 GB of memory |
| 24 GB card or 32 GB Mac | qwen3.8:27b, gemma4:26b, or gemma4:31b | 18 GB; 16 to 19 GB; 19 to 20 GB | The most capable models that fit on a 24 GB consumer card; gemma4:31b is a borderline case there |
| Macs with 48 GB or more | qwen3.6:35b | 23 GB | latest tag of Qwen 3.6; leave room for long context |
| 80 GB and up (96 to 128 GB Mac, professional GPU) | gpt-oss:120b or llama4:scout | 65 GB; 67 GB | Ollama states that gpt-oss 120B fits on an 80 GB GPU |
#How do you read a tag in the Ollama library (Ollama library)?
Benefit from our experience and a guided path to build your local assistant and use your AI every day.
- Lifetime online access
- PDF + files
- Refunded within 30 days
The Ollama library is the official catalog published at ollama.com/library: each model page lists its tags, meaning its downloadable variants, along with their size, context window, and accepted input type (text, image). The tag comes after a colon: qwen3.5:9b refers to the 9-billion-parameter version of Qwen 3.5.
- The number (4b, 12b, 27b)
- The number of parameters, in billions. The larger it is, the more capable the model and the more memory it requires.
- latest
- The tag downloaded when you don't specify one. It varies by model: gemma4:latest corresponds to E4B (6.6 to 9.5 GB), but llama4:latest corresponds to Llama 4 Scout, which weighs in at 67 GB.
- q4_K_M, q8_0, bf16
- The quantization level, meaning the precision of the weights. Q4_K_M is the common compromise. Q8_0 is heavier: qwen3.8:27b-q8_0 weighs 30 GB versus 18 GB for the default tag. BF16 keeps the original precision and is the heaviest.
- mlx
- A variant built for the MLX engine on Apple Silicon Macs, for example qwen3.8:27b-mlx (18 GB).
- cloud
- A tag that doesn't download: the computation runs on Ollama's servers. It is marked by the word cloud in its name.
#How much memory does a Ollama model really use?
An Ollama model takes up its listed size, plus the context memory, known as the KV cache. Ollama's documentation states that a longer context increases the memory required, and that the default context depends on the detected VRAM: 4K under 24 GiB, 32K from 24 to 48 GiB, 256K from 48 GiB up.
This automatic setting has a concrete effect: starting at 24 GiB of detected VRAM, Ollama automatically reserves a 32K context, meaning more memory than with a 16 GB card set to 4K. For agents, web search, and coding tools, the documentation recommends at least 64,000 tokens of context, which further reduces the model size you can run.
Example calculation, as an estimate: qwen3.8:27b is 18 GB; with a 20% margin, plan for about 21.6 GB, which puts this model on a 24 GB card, not a 16 GB card. The OLLAMA_CONTEXT_LENGTH variable lets you set a different default context if you run short on memory.
#Which Ollama model should you choose on an Apple Silicon Mac?
On an Apple Silicon Mac, choose the Ollama model based on total unified memory, which is shared between macOS, your apps, and the model: 16 GB for gemma4:12b, 32 GB for qwen3.8:27b, 48 GB or more for qwen3.6:35b. Ollama uses Metal acceleration on Apple chips.
In a March 30, 2026 blog post, Ollama introduced a preview of a Mac backend built on MLX, Apple's machine learning framework, to take advantage of unified memory. Library pages now offer MLX-tagged models, such as gemma4:12b-mlx or qwen3.8:27b-mlx. The unsuffixed tag still works; Ollama describes MLX as the fastest option on Apple Silicon.
An 8 GB Mac is limited to small models like granite4.1:3b (2.1 GB) or qwen3.5:4b (3.3 to 4.0 GB), because macOS and the browser already take up a good chunk of memory. You can't add memory to a Mac after purchase: the tier you pick when ordering sets the maximum size of the Ollama models you can use.
#Which Ollama model should you choose on a PC with an NVIDIA or AMD graphics card?
On a PC, your graphics card's VRAM determines the Ollama model: 8 GB for qwen3.5:9b, 12 GB for gemma4:12b, 16 GB for gpt-oss:20b, 24 GB for qwen3.8:27b or gemma4:31b. If the model exceeds your VRAM, Ollama offloads part of it to RAM and generation slows down.
According to the Ollama hardware page, NVIDIA cards are supported starting at compute capability 5.0 with driver 550 or newer. AMD Radeon cards go through ROCm v7 on Linux and Windows, with a shorter list of cards on Windows (Radeon RX 7000 and PRO W7000); additional support comes through Vulkan on Windows and Linux. Without a compatible card, the model runs on the CPU and RAM.
System RAM is a fallback, not a replacement: an 18 GB model on a 12 GB card will start, but some of the layers are computed by the CPU. The ollama ps command shows this split in the PROCESSOR column, for example 48%/52% CPU/GPU. Aim for 100% GPU for comfortable use.
#What's the best Ollama model for each use case?
No Ollama model is the best at everything: first pick the family based on the task, then the size based on your memory. Each library page describes the model, its context, and its input type (text only, or text and image), which is enough to rule out candidates unsuited to your task.
| Usage | Ollama family | What the model page says |
|---|---|---|
| Chat, writing, summarization | qwen3.5, gemma4 | Text and image input, 128K to 256K context depending on the tag |
| Reasoning and agents | gpt-oss, qwen3.8 | gpt-oss is described as designed for reasoning and agentic tasks, Apache 2.0 license; qwen3.8 claims improvements on long-horizon agentic tasks |
| Code and coding agents | qwen3.6, qwen3.8 | qwen3.6 emphasizes agentic coding; qwen3.8 claims programming improvements |
| Image analysis | gemma4, qwen3.5, qwen3.8 | Text and Image input shown on every tag |
| Document search (RAG) | embeddinggemma, nomic-embed-text | 622 MB and 274 MB embedding models |
| Small machine, business use | granite4.1, ministral-3 | granite4.1:3b is 2.1 GB; Granite 4.1 and Ministral 3 are licensed under Apache 2.0 |
Ministral 3 from Mistral AI is available in the Ollama library in 3B, 8B, and 14B; the ministral-3:8b tag weighs 6.0 GB, and its Apache 2.0 license allows commercial use according to its page. This model doesn't have an entry in the QuelLLM catalog yet: compare it with qwen3.5:9b on your own texts before adopting it.
For local RAG, two models work together: an embedding model, which turns documents into vectors so they can be retrieved, and a chat model, which writes the answer. EmbeddingGemma was trained on more than 100 languages according to its Ollama page, making it a candidate for French-language documents.
#Local or cloud Ollama models: which ones send your data online?
A local Ollama model runs entirely on your machine; a cloud model sends your requests to Ollama's servers. The documentation states that cloud model inference runs on Ollama's cloud service and requires a Ollama account. Cloud tags include that word in their name.
Cloud models let you use models too large for your hardware, but they fall outside the scope of local AI: your prompts leave your computer. If privacy is what drives your choice, only download tags with a size shown in GB, and disable cloud features as Ollama's documentation allows.
#How do you install a Ollama model and check that it fits in memory?
You install a Ollama model with ollama pull followed by the name and tag, run it with ollama run, then check it with ollama ps, which shows where it's loaded. The commands below come from the official documentation and work the same way on macOS, Windows, and Linux.
- 01Choose the tagOpen the model's page on ollama.com/library and find the tag that matches your memory tier in this guide's table, for example gemma4:12b for a 12 GB card or a 16 GB Mac.
- 02Download the modelIn a terminal, type ollama pull followed by the name and tag. Without a tag, Ollama downloads the latest tag, whose size depends on the model.
- 03Start a conversationType ollama run followed by the same name to open a chat in the terminal. Ask a short question to confirm that the response comes back without a memory error.
- 04Verify loadingWhile the model is running, open a second terminal and type ollama ps. The PROCESSOR column should show 100% GPU on a machine with a graphics card or on a Mac; 100% CPU means the model is running in system memory.
- 05Freeing up spaceList installed models with ollama ls and remove the ones you no longer use with ollama rm, since each tag takes up its listed size on disk.
What is the best Ollama model?+
Why use Ollama to run a model?+
Where can you find the complete list of Ollama models?+
Can you use a Ollama model without a graphics card?+
Are Ollama models free for commercial use?+
Where does Ollama store downloaded models?+
#Sources and verification as of November 18, 2026
Sizes, contexts, and licenses were recorded on November 18, 2026 from the official pages of the Ollama library, the Ollama documentation, and its GitHub repository (version v0.40.16); latest tags and sizes change with every model update, so check the page before downloading.
- Source: model library (Ollama)
- Source: default context length by VRAM (Ollama)
- Source: FAQ, ollama ps command and context (Ollama)
- Source: Supported hardware, NVIDIA, AMD, Metal (Ollama)
- Source: cloud models and local-only use (Ollama)
- Source: Ollama and MLX on Apple Silicon, March 30, 2026 (Ollama)
- Source: latest release (Ollama GitHub repository)
Feedback, an error, or a clarification? Let us know—it improves the guide for everyone.