Ollama Model Library and Model Selection
This chapter reviews how to read Ollama's model library, the positioning of mainstream model families, and the trade-offs of quantization precision, finally giving you a practical method for selecting models by task.
Pick the right model and half the performance problems disappear.
How to read the model library: the capability tag system
Ollama model library (ollama.com/search) uses a tag system to label each model's capabilities; the first step in selecting a model is to filter by tag.

| tag | Meaning | Typical use |
|---|---|---|
| vision | Supports image input | Image Q&A, screenshot understanding, document recognition |
| tools | Supports tool calling | Agents, function calling, automation |
| thinking | Supports thinking mode | Math, logic, complex reasoning |
| embedding | Text to vector | RAG, semantic search, knowledge base |
| cloud | Runs in the cloud, no local compute needed | Call large models when local configuration is insufficient |
Taking this tutorial's qwen3.5 as an example, it carries the vision, tools, and thinking tags in the model library simultaneously, making it an "all-round" contender, which is why the whole book chooses it as the test model.
Each model page also lists all tags, download size, context window, input types, and update time; spending a minute reading them before downloading saves a lot of trial-and-error time.
Overview of mainstream model families
Ollama is not a model but a platform for running various open-source models. Below are the most common families today:
| Family | Vendor | Positioning | Suitable scenarios |
|---|---|---|---|
| Qwen (Tongyi Qianwen) | Alibaba | Full range of specs, strong Chinese, complete multimodal and tool calling | Chinese tasks, general development, this tutorial's examples |
| DeepSeek | DeepSeek | The reasoning series (R1) excels at chains of thought | Math, logic, tasks needing deep reasoning |
| Gemma | Lightweight specs perform well, multimodal | Low-end devices, lightweight tasks | |
| Llama | Meta | Broadest ecosystem, abundant community resources | General tasks, English scenarios |
| GPT-OSS | OpenAI | OpenAI's open-source series, supporting thinking levels | General tasks, agent experiments |
| Mistral | Mistral AI | Representative of the European camp, efficient small models | Lightweight deployment, multilingual |
Models iterate on a weekly basis; the actually available specs and capabilities are subject to the live model library page. Selection thinking outlives specific conclusions: first define the task and capability tags, then check spec-to-hardware matching.
Quantization precision: size vs quality trade-off
Quantization compresses model weights from high-precision decimals into low-bit-width storage, the key to "fitting large models into small graphics cards".
For different quantized versions of the same model, the size and quality relationship is roughly as follows:
| Precision | Relative size | Quality performance | Applicable scenarios |
|---|---|---|---|
| fp16 / fp32 | Baseline (largest) | Lossless | Original weights before training and quantization |
| q8_0 | About 1/2 | Almost lossless | Preferred when VRAM is ample |
| q4_K_M | About 1/4 | Slight decrease, best value for money | The choice for the vast majority of local deployments |
| q4_K_S | Slightly smaller than q4_K_M | A bit lower than q4_K_M | Extreme VRAM squeezing |
Models in the library are already quantized by default (commonly q4_K_M), ready to download and use, with no need to worry.
To confirm a local model's actual precision, use the show family of commands or the API to check the quantization level; to compress an fp16 model into a smaller size yourself, use the quantize parameter of the create command, fully demonstrated in the next Modelfile chapter.
Selecting models by task
Turn "selecting a model" into a classification problem: first determine the task, then match the recommendation.
| Task | Recommended model | Hardware reference | Notes |
|---|---|---|---|
| Daily chat, writing | qwen3.5:4b ~ 9b | Runs on 16GB RAM | Top value for money, full capability tags |
| Code generation | qwen3-coder | 24GB or more VRAM recommended | Needs 64K context with coding tools |
| Math, logical reasoning | deepseek-r1 / qwen3.5 thinking mode | Standard configuration by spec | More stable but slower with think enabled |
| Image and screenshot understanding | qwen3.5 (native vision) | Same as chat specs | Pass image paths directly on the command line |
| RAG, semantic search | embeddinggemma / qwen3-embedding | Small size, low requirements | Embedding models cannot be used for chat |
Embedding models and generative models are two different things: the former only turns text into vectors for retrieval and similarity computation, and does not output text answers. When building a knowledge base you need both; don't mix them up.
Size and hardware matching
Elimination is more useful than memorization: first use a rough rule to judge "whether it can run", then fine-tune.
Rough rule: a model's download size roughly equals the minimum RAM/VRAM requirement, with another 1~2GB reserved for runtime overhead, and more added for larger context windows.
| Your available RAM / VRAM | Maximum spec you can run | Recommendation |
|---|---|---|
| 8GB | qwen3.5:0.8b ~ 2b | Experience first, accept the capability ceiling |
| 16GB | qwen3.5:4b ~ 9b | Sweet spot for daily use |
| 8GB VRAM (discrete graphics card) | qwen3.5:9b | Only 100% GPU gives speed |
| 24GB VRAM | qwen3.5:27b / qwen3-coder | Advanced development and code tasks |
| Above 48GB VRAM | 35b+ and multi-GPU combinations | Default context also increases automatically |
After it is running, verify with ollama ps: the PROCESSOR column showing 100% GPU means everything is in VRAM; a CPU/GPU mixed ratio means VRAM is insufficient and the model is split, with a noticeable speed drop; in that case switch to a smaller spec rather than forcing it.
Cloud models and the retirement mechanism
When local compute is insufficient but you want to use an ultra-large model, Ollama offers a third path: cloud-tagged models.
Example
Log in to your Ollama account (required for cloud models)
ollama signin
Run cloud models like local models, no weight download needed
ollama run qwen3.5:cloud
Cloud models are used exactly like local models: same commands, same APIs, same tool integrations, except inference happens on Ollama's servers.
Note that cloud models have a retirement mechanism: the vendor periodically retires old models and recommends replacements, notifying via email and official announcements; automation flows depending on a cloud model should watch for such notices.
Local models are completely unaffected by the retirement mechanism; weights downloaded to disk remain usable forever, which is the most reassuring feature of a pure local solution for teams.