No fluff. Just the config that works.
Executive Summary
Objective: Make LLM model names readable. A string like Qwen3-30B-A3B-Instruct-2507-Q4_K_M.gguf looks like a password, but every chunk tells you something concrete: who built it, how big it is, how much of it actually runs per token, what it was tuned to do, when it shipped, and how hard it was compressed to fit your hardware. Once you can read LLM model names, picking a model for Ollama, LM Studio or llama.cpp stops being guesswork.
Target audience: Engineers running local models (Ollama, LM Studio, llama.cpp, MLX), security teams vetting which models are allowed on the network, and anyone staring at a Hugging Face file list wondering which of the 20 downloads is the right one.
What you will be able to do: Read any model name left to right, estimate its memory footprint before you download it, spot names that are misleading, and verify what a name claims with three commands.
Prerequisites and Architecture
Assumed knowledge: You know what an LLM is and have pulled at least one model. If you need the background first, start with the InfoSecMonkey AI primer on models, RAG, MCP and agents.
Lab requirements (optional, for the verification section):
| Component | Purpose | Notes |
|---|---|---|
| Ollama | Pull and inspect local models | ollama show reads the model metadata |
| curl and jq | Read a Hugging Face config.json |
Works against any public model repo |
Python 3 with the gguf package |
Dump GGUF file metadata | pip install gguf provides gguf-dump |
| 16 GB of RAM or unified memory | Run the example models | Apple Silicon unified memory counts as VRAM |
The full anatomy at a glance
Figure 1: Annotated breakdown of an LLM model name

Not every model uses every field, and vendors put them in different orders. But almost every name you will see is built from the same 12 parts. Here they are, left to right.
Decoding LLM Model Names, Field by Field
1. Publisher or namespace
Example: Qwen/, meta-llama/, mistralai/, google/, or a community uploader like <quantizer>/
The part before the slash on Hugging Face (or before the model name on Ollama, as namespace/model) is who uploaded these exact files. That is not always who trained the model. Official orgs publish the original weights; community quantizers re-publish compressed copies in formats like GGUF.
Why it matters: This is the supply chain field. Anyone can create a repo called Llama-3-70B-Instruct. Prefer the original org or a well-known quantizer, prefer safetensors or GGUF files over old pickle-based .bin files, and treat an unknown namespace the same way you treat an unsigned binary.
2. Family (brand)
Example: Llama, Qwen, Mistral, Mixtral, Gemma, Phi, DeepSeek, gpt-oss
The product line. The family tells you the vendor, the license you are agreeing to, the tokenizer, and the chat template the model expects. Two models from different families can be the same size and behave nothing alike.
3. Generation and version
Example: Qwen3, Llama-3.1, Qwen2.5, Mistral-7B-v0.3, Gemma 3n
The number glued to the family is the generation. A point release (3 to 3.1) is usually a refresh with more training, longer context, or better tool use on the same architecture. A whole-number jump (2.5 to 3) usually means a new architecture or training recipe. A v0.3 style suffix is the vendor’s own revision counter.
Why it matters: Qwen3-8B and Qwen2.5-7B are different generations, not a slightly bigger version of the same model. Compare within a generation when you can.
4. Parameter count
Example: 0.5B, 1.5B, 7B, 8B, 14B, 32B, 70B, 135M
B is billions of parameters (weights), M is millions. This is the single best predictor of capability and of memory cost. Rough memory math for the weights alone:
size_in_GB ~= billions_of_params x bits_per_weight / 8
So an 8B model at 16-bit precision is about 16 GB, at 8-bit about 8.5 GB, and at 4-bit about 5 GB. Add a few GB on top for the context window (the KV cache) and runtime overhead.
5. Architecture markers: experts, active and effective parameters
This is where most people get fooled, because these models do not follow the simple size rule.
| Marker | Example | What it means |
|---|---|---|
NxSizeB |
Mixtral-8x7B |
Mixture of Experts (MoE) with 8 expert blocks. It is NOT 56B and NOT 7B. Mixtral 8x7B has 46.7B total parameters and uses 12.9B per token. |
A + size |
Qwen3-30B-A3B |
Total parameters, then Activated parameters per token. 30B total (30.5B exactly), 3B active (3.3B exactly). |
Ne |
llama4:17b-scout-16e |
Number of experts (16 here). Size first is the active count. |
E + size |
Gemma 3n E4B |
Effective parameters. The model contains more total parameters but can run with a smaller effective memory load. |
The rule for MoE: memory cost follows the total count, speed follows the active count. A 30B-A3B model still has to fit all 30B parameters in memory, but it generates tokens about as fast as a 3B model. That trade is why MoE models are popular on Apple Silicon machines with lots of unified memory.
The rule for `E` models: Google’s Gemma 3n E2B loads over 5 billion parameters in standard execution, but parameter skipping and per-layer embedding caching bring the effective memory load to about 1.91B. The E number is what you plan around on a phone or laptop; the real total is larger.
6. Size tier words
Example: mini, nano, small, medium, large, lite, flash, pro, turbo, max, scout, maverick
Marketing tiers. They only mean something relative to other models from the same vendor at the same time. mini from one vendor can be bigger than small from another, and Phi-3-mini has nothing to do with any other vendor’s mini. Always look for the parameter count.
7. Training stage and tuning
| Suffix | Meaning | Use it for |
|---|---|---|
none, Base, pt |
Pretrained base model. Predicts the next token, does not follow instructions well. | Fine-tuning your own model |
Instruct, it, Chat |
Fine-tuned to follow instructions and hold a conversation, with a specific chat template. | Almost everything you run day to day |
Thinking, R1, Reasoning |
Tuned to produce a reasoning trace before the answer. Slower and more tokens, better on multi-step problems. | Math, code, planning |
Distill |
A smaller student model trained on outputs from a bigger teacher. | Reasoning on modest hardware |
Read distill names carefully. DeepSeek-R1-Distill-Qwen-7B is a Qwen model (the student, based on Qwen2.5-Math-7B) that learned from DeepSeek-R1 (the teacher). The architecture, tokenizer, context length and size are Qwen’s. The name leads with DeepSeek, but you are running a Qwen.
The base vs instruct trap: A base model in a chat app gives rambling, autocomplete-style answers. If a model “seems dumb,” check for a missing Instruct or it before blaming the model.
8. Specialization
Example: Coder, Math, VL (vision-language), Vision, Embed or Embedding, Guard, Audio, OCR
A domain-specific fine-tune or a different modality. Qwen2.5-Coder-32B-Instruct is tuned for code. VL models accept images. Embed models do not chat at all: they turn text into vectors for RAG. Guard models classify prompts and responses as safe or unsafe and are meant to sit in front of another model.
9. Context length
Example: 4k, 8k, 32k, 128k, 1M
Maximum tokens the model handles in one request (prompt plus response). Phi-3-mini-4k-instruct and Phi-3-mini-128k-instruct are the same model size with different context windows. Most newer models drop this from the name and put it on the model card instead. Bigger context costs memory at runtime, so a 128k window on a 16 GB machine is a promise you may not be able to keep.
10. Release stamp and channel
Example: 2507, 0613, -latest, -preview, -exp, -beta
A four-digit stamp is usually year and month (2507 is July 2025) or month and day (0613). latest is a moving pointer, not a version. preview and exp mean the vendor reserves the right to change or pull it.
Why it matters: Pin the dated name in anything that matters. -latest in a script means your outputs change the day the vendor ships an update, with no change on your side.
11. File format
| Format | Where you see it | Runs on |
|---|---|---|
safetensors |
Original weights on Hugging Face | Transformers, vLLM, most training tools |
GGUF |
-GGUF repo suffix, .gguf files |
llama.cpp, Ollama, LM Studio |
MLX |
mlx-community/ repos, -4bit, -8bit |
Apple Silicon via MLX |
GPTQ, AWQ, EXL2 |
Repo suffix | GPU inference servers |
ONNX |
-onnx suffix |
ONNX Runtime, Windows and edge |
The same model in a different format is the same brain in a different container. Pick the format your runtime supports, then pick the quantization.
12. Precision and quantization
The tail end of the name is how much the weights were compressed.
| Tag | Bits per weight (approx.) | 8B model size | Notes |
|---|---|---|---|
FP32 |
32 | about 32 GB | Training precision, rarely downloaded |
FP16 / BF16 |
16 | about 16 GB | Full quality reference |
FP8 |
8 | about 8 GB | GPU serving on newer hardware |
Q8_0 |
8.5 | about 8.5 GB | Near-lossless GGUF |
Q6_K |
6.6 | about 6.6 GB | Very close to Q8_0 |
Q5_K_M |
5.7 | about 5.7 GB | Quality step up from Q4 |
Q4_K_M |
4.9 | about 4.9 GB | The common default |
IQ4_XS |
4.25 | about 4.3 GB | I-quant, strong quality per bit |
Q3_K_M / Q2_K |
3.9 / 3.2 | about 4.0 / 3.2 GB | Tight memory only, test before trusting |
How to read a GGUF quant tag, using `Q4_K_M`:
Q4: quantized to roughly 4 bits per weight.K: the k-quant method. Weights are grouped in superblocks with their own scales, and important tensors get more bits than the rest.M: the mix size within that bit level.Sis small (more aggressive),Mmedium,Llarge (more tensors kept at higher precision)._0and_1(as inQ4_0,Q8_0): the original “legacy” block formats.Q8_0is still excellent;Q4_0is outclassed byQ4_K_Mat almost the same size.IQ(as inIQ4_XS,IQ3_M): i-quants, built to hold up at 2 to 4 bits. They work best when built with an importance matrix, which some uploaders mark withimatori1in the repo name.
The rule of thumb: a bigger model at Q4_K_M usually beats a smaller model at Q8_0. Spend your memory on parameters first, precision second.
Bonus: community tags
Example: abliterated, uncensored, merge, Hermes, Dolphin, -GGUF-i1
These come from the community, not the original vendor. abliterated and uncensored mean refusal behavior was removed. Merges combine weights from several models. None of these are inherently malicious, but they are third-party modifications of the original weights. In a corporate environment they belong on the same review list as any unsigned third-party binary.
Putting It Together: Three Names Decoded
| Name | Decoded |
|---|---|
Qwen3-30B-A3B-Instruct-2507-Q4_K_M.gguf |
Qwen family, generation 3, 30B total, 3B active per token (MoE), instruction-tuned, July 2025 release, 4-bit k-quant medium, GGUF file for llama.cpp or Ollama. Needs memory for 30B at about 4.9 bits, runs at small-model speed. |
DeepSeek-R1-Distill-Qwen-7B |
A 7B Qwen2.5-based student model trained on reasoning output from DeepSeek-R1. Dense, so 7B is both memory and compute. Thinks before it answers. |
llama3:8b-instruct-q8_0 (Ollama tag) |
Llama 3, 8B dense, instruction-tuned, 8-bit legacy quant. About 8.5 GB on disk. |
Verification and Validation
Never trust the name alone. These three checks confirm what a name claims.
Check 1: Ask Ollama
ollama show qwen3:30b-a3b-instruct-2507-q4_K_M
Expected output (values vary by tag):
Model
architecture qwen3moe
parameters 30.5B
context length 262144
embedding length 2048
quantization Q4_K_M
Success looks like: architecture ends in moe for an MoE name, parameters matches the total count in the name, and quantization matches the tag you pulled.
Check 2: Read the Hugging Face config
curl -s https://huggingface.co/Qwen/Qwen3-30B-A3B-Instruct-2507/raw/main/config.json \
| jq '{arch: .architectures, experts: .num_experts, active_experts: .num_experts_per_tok, ctx: .max_position_embeddings, dtype: .torch_dtype}'
Expected output:
{
"arch": ["Qwen3MoeForCausalLM"],
"experts": 128,
"active_experts": 8,
"ctx": 262144,
"dtype": "bfloat16"
}
Success looks like: an MoE architecture class, an expert count, and the number of experts routed per token. For a distill, this is where you see the student’s real architecture (a Qwen2ForCausalLM under a DeepSeek name, for example).
Check 3: Dump the GGUF metadata
pip install gguf
gguf-dump --no-tensors Qwen3-30B-A3B-Instruct-2507-Q4_K_M.gguf | grep -E 'general\.(architecture|name|size_label|file_type)'
Success looks like: general.architecture matches the family, general.size_label matches the parameter string, and general.file_type maps to the quant in the file name. If the file name says one thing and the metadata says another, trust the metadata and question the uploader.
Troubleshooting and Gotchas
Gotcha 1: “8x7B” does not fit where a 7B fits
Symptom: Mixtral 8x7B, or any MoE model, runs out of memory on a machine that runs 7B or 13B models fine.
Cause: MoE memory cost follows the total parameter count. Mixtral 8x7B loads 46.7B parameters even though it only computes with 12.9B per token.
Fix: Size the hardware for the total count. Check before pulling:
ollama show mixtral:8x7b | grep -E 'parameters|quantization'
Gotcha 2: The name says one vendor, the weights are another
Symptom: A “DeepSeek” model uses a Qwen chat template, has Qwen’s context limit, or carries a different license than you expected.
Cause: Distills and fine-tunes keep the student’s architecture. The name leads with the teacher.
Fix: Read architectures in config.json (Check 2) and the license on the model card before approving a model for internal use.
Gotcha 3: Tags that look right but do not exist, or quietly change
Symptom: ollama pull qwen3:7b fails, or a model you tested last month behaves differently today.
Cause: Ollama has no single tag grammar; it only serves the exact tags each model was uploaded with, and qwen3 was never published at 7B. Separately, latest and undated API aliases move when the vendor ships.
Fix: List the real tags before scripting a pull, and pin full tags in automation:
ollama list
ollama pull qwen3:8b-q4_K_M
Sources
- Mistral AI: Mixtral of experts announcement (46.7B total, 12.9B per token)
- Hugging Face: Qwen3-30B-A3B-Instruct-2507 model card
- Google AI for Developers: Gemma 3n model overview (effective parameters)
- NVIDIA: DeepSeek-R1-Distill-Qwen-7B model card
- Debian manpages: llama-quantize allowed quantization types
- Qwen documentation: Quantization with llama.cpp
- Kaitchup: Choosing a GGUF model, K-quants, I-quants and legacy formats
- Hugging Face LLM Course: Chat templates, base vs instruct models
- Hugging Face Transformers: Chat templating documentation
- thoughtbot: Understanding open source LLMs (Ollama tag sizes)
- Vucense: Ollama model tags explained