Sub topic 5
Reading Model Names and Tags in the Library
This chapter assumes you can use a terminal, have installed Ollama, and have run a model with ollama run. Here you will learn to read a model reference such as llama3.2:3b-instruct-q4_K_M, so you can pick the exact build you want.
Anatomy of a model reference
A model reference has up to three parts: an optional namespace, a model name, and a tag.
[namespace/]name[:tag]- The name identifies a model family, for example
llama3.2orqwen2.5. - The namespace identifies who published it. Official library models have none. Community models look like
username/modelname. - The tag selects one build of that family. It appears after a colon.
If you leave out the tag, Ollama uses latest. So ollama pull llama3.2 and ollama pull llama3.2:latest mean the same thing.
What `latest` really means
latest is a tag like any other. It is not guaranteed to be the newest release. It is whatever the publisher chose as the default build, usually a small, 4-bit quantized version. Because it is a moving label, it can point to a different build later. If you need a repeatable setup, name the tag explicitly.
Decoding a tag
Tags are free-form text chosen by the publisher, but most follow a pattern. Pieces are joined with hyphens.
| Tag | Meaning |
|---|---|
| `3b` | The model has about 3 billion parameters. |
| `70b` | About 70 billion parameters. Needs far more memory. |
| `instruct` | Tuned to follow instructions and chat. |
| `text` | A base model that continues text and does not chat well. |
| `q4_K_M` | Weights are quantized to about 4 bits per value, using the K_M scheme. |
| `fp16` | Unquantized 16-bit weights. Largest and most accurate. |
Combined, llama3.2:3b-instruct-q4_K_M reads as: Llama 3.2, 3 billion parameters, instruction-tuned, 4-bit K_M quantization. The next chapters cover quantization and memory in detail. For now, remember that a higher parameter count or more bits per weight means a bigger download and more memory.
Finding tags
Browse a model's page in the Ollama library at ollama.com/library/<name>. The Tags section lists every build with its download size. Use that size to judge whether the build fits your hardware before you pull it.
After pulling, check what you got:
ollama pull llama3.2:3b
ollama list
ollama show llama3.2:3bollama list prints the exact name and tag, the ID, and the size on disk. Different tags of the same model can share an ID when they are the same build. For example, latest and a size tag often do.
Common errors
- Pulling a tag that does not exist. A typo such as
llama3.2:3B-q4returns a "file does not exist" style error. Copy the tag from the library page. - Assuming
latestis the largest model. It is usually a modest size. Ask for70bexplicitly if you want it, and check you have the memory. - Running a
textbuild and expecting chat. Base models often ramble or repeat. Choose aninstructbuild for conversation. - Trusting a community namespace blindly. Anyone can publish under their own name. Prefer official library models unless you know the publisher.
Exercise
You run ollama pull mistral and later want a larger, explicit build. Which parts of a reference tell you the tag, and what tag does the first command use?
Show answer
The tag is everything after the colon. The first command has no colon, so Ollama uses the default tag latest. To choose a specific build, add a tag such as mistral:7b-instruct, copied from the model's Tags list in the library.
Exercise
Decode qwen2.5:14b-instruct-q8_0.
Show answer
Qwen 2.5 family, 14 billion parameters, instruction-tuned, 8-bit quantization (q8_0). It is larger and more accurate than a 4-bit build of the same model.