Sub topic 5
Reading model names and tags in the library
This chapter assumes you can run ollama pull and ollama run (covered in earlier chapters). It also assumes you know that a model has a parameter count and that quantization shrinks a model by storing its weights at lower precision. Quantization gets full treatment in a later chapter. Here the goal is narrower: read a model's name and tag and predict what you will download.
Anatomy of a model reference
Every model reference has up to three parts:
[namespace/]model[:tag]- The namespace says who published the model. Official library models have no namespace, so
llama3.2really meanslibrary/llama3.2. Community uploads use the publisher's username, for examplesomeuser/mymodel. - The model is the family name, such as
llama3.2,qwen2.5, ormistral. - The tag selects one specific build of that family. It follows a colon. If you leave it out, Ollama uses the tag
latest.
So these two commands pull the same thing:
ollama pull llama3.2
ollama pull library/llama3.2:latestWhat a tag encodes
A tag is a free-form label chosen by the publisher. There is no enforced grammar, but library tags follow common conventions. A tag is usually built from some of these pieces, joined with hyphens:
| Piece | Example | Meaning |
|---|---|---|
| Parameter count | `1b`, `3b`, `8b`, `70b` | Number of weights, in billions. Larger models need more memory. |
| Variant | `instruct`, `text`, `code` | Tuning of the model. `instruct` is trained to follow chat instructions. `text` is a base model that only continues text. |
| Quantization | `q4_K_M`, `q8_0`, `fp16` | Precision of the stored weights. Lower numbers give smaller files and some quality loss. |
| Version or date | `v0.3`, `2407` | A revision of the family. |
A tag such as 8b-instruct-q4_K_M reads as: 8 billion parameters, tuned for instructions, 4-bit "K-quant" medium quantization. Not every tag has all pieces. Many tags are just a size, like llama3.2:1b.
The exact tags differ from family to family. Always check the model's page in the library rather than guessing a tag from another family's pattern.
Size tags
The size tag is the first thing to check. Weights take roughly parameters multiplied by bytes per weight. At 4-bit quantization that is about half a byte per weight, so an 8b model is on the order of 5 GB on disk. You also need extra memory for the context (the running conversation), so the file size is a minimum, not a total.
Variant tags
Choose the variant that matches your use:
- Instruct or chat builds suit
ollama runand the chat endpoint. Most default tags are of this kind. - Text or base builds suit raw completion. They often ramble or ignore questions when you chat with them.
- Specialized builds (for example code or vision variants) exist for some families. Check the library page to see what a family offers.
Quantization tags
If a tag has no quantization piece, the build still has one. Many default tags use a 4-bit quantization, commonly q4_K_M or an older q4_0. Higher bit counts such as q8_0 are larger and closer to the original quality. fp16 is essentially unquantized and roughly four times the size of a 4-bit build.
The latest tag is not "newest"
This is the most common misreading. latest is only a tag name. The publisher decides what it points to, and it usually points to a mid-sized, default-quantized build chosen to run on typical hardware. It does not mean the most recent upload, the largest model, or the best one.
Two consequences follow:
ollama pull llama3.2andollama pull llama3.2:3bmay download the same data, but only if the publisher currently pointslatestat the 3b build. You can confirm by comparing IDs inollama list.- A tag can be repointed. If the publisher moves
latestto a different build, pullinglatestlater may give you something different from before. For repeatable setups, pin an explicit tag.
Seeing what a tag really is
Names tell you what the publisher intended. The ollama CLI tells you what is on your disk. Pull a specific size, then inspect it:
ollama pull llama3.2:1b
ollama list
ollama show llama3.2:1bollama list prints a table with the name, an ID, the size on disk, and when it was modified. The ID is a short form of a content digest. Two names with the same ID are the same build under different labels, which is how you detect that latest and a size tag are aliases.
ollama show prints details about the model, including its architecture, parameter count, context length, and quantization. Use it to verify that a tag matches what you expected. If a tag claims q8_0 but show reports another level, trust show.
Aliases and copies
The ID is not tied to the name. You can create your own label for a model you already have, without downloading anything:
ollama cp llama3.2:1b my-small-model
ollama listBoth names now appear in the list with the same ID. Disk usage does not double, because the underlying data is stored once. Removing one name with ollama rm leaves the data in place while any other name still refers to it.
Reading a library page
The model's page in the Ollama library website lists its tags in a table with each tag's size on disk and context length. A practical routine for picking a tag:
- Find your memory budget. Leave headroom for the operating system and for the context.
- Pick the largest size tag whose file size fits comfortably within that budget.
- Prefer an instruct variant unless you have a reason to use a base model.
- Leave quantization at the default unless you have measured a quality problem or have spare memory.
- Copy the explicit tag into your pull command.
Common errors
- Typing a tag that does not exist. Pulling
llama3.2:7bfails with a "manifest not found" style error, because that family has no 7b build. Check the page for the real list. - Assuming tags are comparable across families. An
8bmodel from one family can be better or worse than a7bfrom another. Size is a hint about memory, not a ranking. - Using a base model for chat. If answers look like continued text instead of replies, check whether the tag is a
textbuild. - Expecting
latestto update itself. Ollama does not re-pull in the background. To refresh, runollama pullagain. It downloads only the changed layers. - Trusting a community namespace like an official one. Anyone can publish under their own namespace. Check who the publisher is before running their model.
Exercise
You run ollama pull qwen2.5 on one machine and a colleague runs ollama pull qwen2.5:7b-instruct-q4_K_M on another. Explain what each reference expands to, whether you are guaranteed the same model, and what you would change to make a setup reproducible.
Show answer
Yours expands to library/qwen2.5:latest: official namespace, default tag. Your colleague's is library/qwen2.5:7b-instruct-q4_K_M: 7 billion parameters, instruction-tuned, 4-bit K-quant medium. You are not guaranteed the same model, because latest is whatever the publisher currently points it at, which may be a different size or quantization, and it can be repointed over time. To make the setup reproducible, both should use the same explicit tag, and you can confirm they match by comparing the ID column in ollama list or the details from ollama show.
Exercise
After ollama cp llama3.2:1b my-small-model, ollama list shows two entries. How can you tell they are the same build, and what happens to the data if you run ollama rm my-small-model?
Show answer
Both entries show the same ID, which is derived from the content digest. Removing my-small-model deletes only that name. The data stays on disk because llama3.2:1b still refers to it.