{"course":{"slug":"hugging-face","title":"Hugging Face, End to End","url":"https://addaly.com/learn/hugging-face","level":"intermediate","track":"create"},"lesson":{"slug":"reading-a-model-name","title":"A model's name is a specification, if you can read it","url":"https://addaly.com/learn/hugging-face/reading-a-model-name","position":4,"of":75,"minutes":8,"answer":"A model name can suggest its owner, family, count, tuning and format. Check context and licence separately. For mixtures of experts, distinguish total stored weights from parameters active per token.","keyIdea":"A model name can suggest its owner, family, count, tuning and format. Check context and licence separately. For mixtures of experts, distinguish total stored weights from parameters active per token."},"body":{"format":"markdown","text":"## Nine fields in one string\n\nHere is a repository identifier you will meet:\n\n```\nQwen/Qwen2.5-7B-Instruct-GGUF\n```\n\nUnpacked, that is: owner `Qwen`, family `Qwen2.5`, roughly seven billion parameters, tuned to follow instructions, converted to the GGUF file format. Four of those five facts change what you can do with it, and all four are in the name. Learning to read the convention saves you opening twenty repositories to find out they were the wrong shape.\n\nThis is a naming convention. Confirm the clues against the model card, configuration and files.\n\n## Parameter counts, and the arithmetic they imply\n\n`7B` means about seven billion parameters. Other labels such as `3B` and `70B` are rounded counts. You can use the count to make a first estimate of weight memory:\n\n> **bytes ≈ parameters × bytes per parameter**\n\nAt bfloat16, two bytes per parameter gives about 14 GB for 7B weights. At 4-bit the raw estimate is 3.5 GB. File and quantization overhead, activations, key-value cache, context and batch size affect how much memory you need. Check an actual configuration before choosing hardware.\n\nTwo naming patterns hide a different arithmetic:\n\n> Figure: What a mixture-of-experts name is actually stating. A two by two grid, rows Mixtral 8x7B and Qwen3-30B-A3B, columns Total parameters and Active per token: Mixtral 8x7B and Total parameters: ~47B; Mixtral 8x7B and Active per token: ~13B; Qwen3-30B-A3B and Total parameters: 30.5B; Qwen3-30B-A3B and Active per token: 3.3B. The total gives a weight storage estimate. The active count describes per-token computation, not measured speed. Actual runtime memory depends on precision, overhead and where the weights are placed.\n\n- **`8x7B`** is a mixture of experts. It does *not* mean 56 billion parameters of compute; for [Mixtral 8x7B](https://docs.mistral.ai/models/mixtral-8x7b-0-1), the publisher rounds to 47 billion total and 13 billion active per token. Size storage for all weights, and plan where the runtime will keep them. Active count is not a latency measurement.\n- **`A3B`** or similar, as in `Qwen3-30B-A3B`, signals rounded total and active counts. The [Qwen release card](https://huggingface.co/Qwen/Qwen3-30B-A3B) lists 30.5 billion total and 3.3 billion active.\n\n## Base, instruct, chat, and why it matters more than size\n\n- **No suffix, or `-Base`**: often a pretrained text continuation model. Confirm the training stage in the card. Ask it a question and a good base model will often produce three more questions, because that is what a page of questions looks like. This is not a fault.\n- **`-Instruct`, `-it`, `-Chat`**: the model has been tuned to treat the input as an instruction or a conversation. It expects its own chat template, and using the wrong one degrades output in ways that look like the model being stupid rather than misused.\n- **`-Coder`, `-Math`, `-Vision`, `-VL`**: specialisation clues. Check the actual inputs, outputs and evaluated abilities.\n- **`-Reasoning` or `-Thinking`**: may indicate a mode that uses more tokens. Check how the release exposes that mode, and measure its latency and token use.\n\nThe practical rule: for anything you would phrase as a request, you want an instruct or chat variant. Read the model card and use the expected prompt or chat template.\n\n## Format and quantization suffixes\n\n- **`-GGUF`**: converted for `llama.cpp` and the tools built on it, which run well on CPU and on Apple silicon. Files inside are further labelled `Q4_K_M`, `Q5_K_S`, `Q8_0`: the digit is bits per weight, the letters are the variant of the scheme. Lower bit counts reduce the raw weight estimate. Measure the difference on your task; neither quality nor runtime memory is fixed by the suffix.\n- **`-AWQ`, `-GPTQ`**: 4-bit schemes aimed at GPU serving rather than CPU.\n- **`-ONNX`**: exported to a portable model format. Check whether your runtime supports its operators and target hardware.\n- **`-bnb-4bit`**: pre-quantized with bitsandbytes, loadable directly by transformers.\n\n## Distil, mini, tiny, turbo\n\n`distil` has a specific meaning: a smaller model trained to imitate a larger one, as in `distilbert` or `distil-whisper`. `mini`, `tiny`, `small`, `nano` and `turbo` have no agreed meaning at all and are chosen by whoever uploaded the file. Check the config, not the adjective.\n\n## The two things the name never tells you\n\n**Context length.** A 7B model might accept 4,096 tokens or 128,000. Check the card, positional settings and runtime limits. `max_position_embeddings` is one possible signal, not a universal usable limit.\n\n**Licence.** Nothing in the name is load-bearing here. `Llama` in a name does not tell you which Llama licence applies, and a new card label alone does not resolve restrictions on a base model.\n\n## Do this now\n\nTake three models you have heard of and write out, from the name alone, the parameter count, whether it is instruction-tuned, and the memory it needs at bf16 and at 4-bit. Then open each config to check what you could not have known (context length) and notice how often that, not size, is the deciding number."},"check":{"question":"Somebody sizes a machine for `mistralai/Mixtral-8x7B-Instruct-v0.1` by reasoning that only about 13B parameters are used per token, so a 16 GB GPU at 4-bit should be comfortable. What is wrong with the reasoning?","options":[{"text":"Mixture-of-experts models cannot be quantized to 4 bits, so the memory estimate should have used bfloat16 throughout.","correct":false,"tempting":"Invents a restriction; MoE weights quantize with the same schemes as dense weights."},{"text":"The 8x7B naming means 56 billion parameters, so every figure in the estimate is too small by a factor of four.","correct":false,"tempting":"Multiplies the name out literally; the experts share layers, so the true total is about 47B rather than 56B."},{"text":"The model has about 47B total parameters. Active parameters describe computation per token, not the size of all weights that need a storage and loading plan.","correct":true},{"text":"The instruct suffix adds a second copy of the weights for the chat head, which doubles the memory an equivalent base model would need.","correct":false,"tempting":"Imagines instruction tuning adds weights; it changes the existing ones and adds only a template."}]},"prev":{"slug":"reading-a-model-card","title":"Read the licence and limitations before the demo","url":"https://addaly.com/learn/hugging-face/reading-a-model-card"},"next":{"slug":"inside-a-repository","title":"What the files in a model repository are for","url":"https://addaly.com/learn/hugging-face/inside-a-repository"},"authorship":"Founder and series editor: Dr Mustafa Mun. Written by AI models to a written standard. Source and assessment review continues. Academic review invited.","review":{"status":"Draft, open for academic review"},"cite":"Addaly (2026) 'A model's name is a specification, if you can read it', in Hugging Face, End to End. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/hugging-face/reading-a-model-name (Accessed: 29 November 2026).","licence":{"name":"CC BY-NC-SA 4.0","url":"https://creativecommons.org/licenses/by-nc-sa/4.0/"},"reader":{"schema":1,"title":"A model’s name is a specification, if you can read it","courseTitle":"Hugging Face, End to End","module":{"index":1,"slug":"the-hub-as-a-repository-host","title":"The Hub, read properly"},"answer":null,"keyIdea":"A model name can suggest its owner, family, count, tuning and format. Check context and licence separately. For mixtures of experts, distinguish total stored weights from parameters active per token.","hero":{"kind":"figure","figure":{"t":"figure","label":"Figure","figure":{"type":"matrix","title":"What a mixture-of-experts name is actually stating","caption":"The total gives a weight storage estimate. The active count describes per-token computation, not measured speed. Actual runtime memory depends on precision, overhead and where the weights are placed.","rows":["Mixtral 8x7B","Qwen3-30B-A3B"],"cols":["Total parameters","Active per token"],"cells":[["~47B","~13B"],["30.5B","3.3B"]],"cellLabels":[["about 94 GB of bf16 weights","publisher estimate"],["about 61 GB of bf16 weights","publisher estimate"]]},"alt":"Figure: What a mixture-of-experts name is actually stating. A two by two grid, rows Mixtral 8x7B and Qwen3-30B-A3B, columns Total parameters and Active per token: Mixtral 8x7B and Total parameters: ~47B; Mixtral 8x7B and Active per token: ~13B; Qwen3-30B-A3B and Total parameters: 30.5B; Qwen3-30B-A3B and Active per token: 3.3B. The total gives a weight storage estimate. The active count describes per-token computation, not measured speed. Actual runtime memory depends on precision, overhead and where the weights are placed."}},"blocks":[{"t":"h2","id":"nine-fields-in-one-string","runs":[{"text":"Nine fields in one string"}]},{"t":"p","runs":[{"text":"Here is a repository identifier you will meet:"}]},{"t":"code","lang":"","label":"Text","text":"Qwen/Qwen2.5-7B-Instruct-GGUF"},{"t":"p","runs":[{"text":"Unpacked, that is: owner "},{"text":"Qwen","code":true},{"text":", family "},{"text":"Qwen2.5","code":true},{"text":", roughly seven billion parameters, tuned to follow instructions, converted to the GGUF file format. Four of those five facts change what you can do with it, and all four are in the name. Learning to read the convention saves you opening twenty repositories to find out they were the wrong shape."}]},{"t":"p","runs":[{"text":"This is a naming convention. Confirm the clues against the model card, configuration and files."}]},{"t":"h2","id":"parameter-counts-and-the-arithmetic-they-imply","runs":[{"text":"Parameter counts, and the arithmetic they imply"}]},{"t":"p","runs":[{"text":"7B","code":true},{"text":" means about seven billion parameters. Other labels such as "},{"text":"3B","code":true},{"text":" and "},{"text":"70B","code":true},{"text":" are rounded counts. You can use the count to make a first estimate of weight memory:"}]},{"t":"quote","runs":[{"text":"bytes ≈ parameters × bytes per parameter","b":true}]},{"t":"p","runs":[{"text":"At bfloat16, two bytes per parameter gives about 14 GB for 7B weights. At 4-bit the raw estimate is 3.5 GB. File and quantization overhead, activations, key-value cache, context and batch size affect how much memory you need. Check an actual configuration before choosing hardware."}]},{"t":"p","runs":[{"text":"Two naming patterns hide a different arithmetic:"}]},{"t":"ul","items":[[{"text":"8x7B","b":true,"code":true},{"text":" is a mixture of experts. It does "},{"text":"not","i":true},{"text":" mean 56 billion parameters of compute; for "},{"text":"Mixtral 8x7B","href":"https://docs.mistral.ai/models/mixtral-8x7b-0-1"},{"text":", the publisher rounds to 47 billion total and 13 billion active per token. Size storage for all weights, and plan where the runtime will keep them. Active count is not a latency measurement."}],[{"text":"A3B","b":true,"code":true},{"text":" or similar, as in "},{"text":"Qwen3-30B-A3B","code":true},{"text":", signals rounded total and active counts. The "},{"text":"Qwen release card","href":"https://huggingface.co/Qwen/Qwen3-30B-A3B"},{"text":" lists 30.5 billion total and 3.3 billion active."}]]},{"t":"h2","id":"base-instruct-chat-and-why-it-matters-more-than-size","runs":[{"text":"Base, instruct, chat, and why it matters more than size"}]},{"t":"ul","items":[[{"text":"No suffix, or ","b":true},{"text":"-Base","b":true,"code":true},{"text":": often a pretrained text continuation model. Confirm the training stage in the card. Ask it a question and a good base model will often produce three more questions, because that is what a page of questions looks like. This is not a fault."}],[{"text":"-Instruct","b":true,"code":true},{"text":", ","b":true},{"text":"-it","b":true,"code":true},{"text":", ","b":true},{"text":"-Chat","b":true,"code":true},{"text":": the model has been tuned to treat the input as an instruction or a conversation. It expects its own chat template, and using the wrong one degrades output in ways that look like the model being stupid rather than misused."}],[{"text":"-Coder","b":true,"code":true},{"text":", ","b":true},{"text":"-Math","b":true,"code":true},{"text":", ","b":true},{"text":"-Vision","b":true,"code":true},{"text":", ","b":true},{"text":"-VL","b":true,"code":true},{"text":": specialisation clues. Check the actual inputs, outputs and evaluated abilities."}],[{"text":"-Reasoning","b":true,"code":true},{"text":" or ","b":true},{"text":"-Thinking","b":true,"code":true},{"text":": may indicate a mode that uses more tokens. Check how the release exposes that mode, and measure its latency and token use."}]]},{"t":"p","runs":[{"text":"The practical rule: for anything you would phrase as a request, you want an instruct or chat variant. Read the model card and use the expected prompt or chat template."}]},{"t":"h2","id":"format-and-quantization-suffixes","runs":[{"text":"Format and quantization suffixes"}]},{"t":"ul","items":[[{"text":"-GGUF","b":true,"code":true},{"text":": converted for "},{"text":"llama.cpp","code":true},{"text":" and the tools built on it, which run well on CPU and on Apple silicon. Files inside are further labelled "},{"text":"Q4_K_M","code":true},{"text":", "},{"text":"Q5_K_S","code":true},{"text":", "},{"text":"Q8_0","code":true},{"text":": the digit is bits per weight, the letters are the variant of the scheme. Lower bit counts reduce the raw weight estimate. Measure the difference on your task; neither quality nor runtime memory is fixed by the suffix."}],[{"text":"-AWQ","b":true,"code":true},{"text":", ","b":true},{"text":"-GPTQ","b":true,"code":true},{"text":": 4-bit schemes aimed at GPU serving rather than CPU."}],[{"text":"-ONNX","b":true,"code":true},{"text":": exported to a portable model format. Check whether your runtime supports its operators and target hardware."}],[{"text":"-bnb-4bit","b":true,"code":true},{"text":": pre-quantized with bitsandbytes, loadable directly by transformers."}]]},{"t":"h2","id":"distil-mini-tiny-turbo","runs":[{"text":"Distil, mini, tiny, turbo"}]},{"t":"p","runs":[{"text":"distil","code":true},{"text":" has a specific meaning: a smaller model trained to imitate a larger one, as in "},{"text":"distilbert","code":true},{"text":" or "},{"text":"distil-whisper","code":true},{"text":". "},{"text":"mini","code":true},{"text":", "},{"text":"tiny","code":true},{"text":", "},{"text":"small","code":true},{"text":", "},{"text":"nano","code":true},{"text":" and "},{"text":"turbo","code":true},{"text":" have no agreed meaning at all and are chosen by whoever uploaded the file. Check the config, not the adjective."}]},{"t":"h2","id":"the-two-things-the-name-never-tells-you","runs":[{"text":"The two things the name never tells you"}]},{"t":"p","runs":[{"text":"Context length.","b":true},{"text":" A 7B model might accept 4,096 tokens or 128,000. Check the card, positional settings and runtime limits. "},{"text":"max_position_embeddings","code":true},{"text":" is one possible signal, not a universal usable limit."}]},{"t":"p","runs":[{"text":"Licence.","b":true},{"text":" Nothing in the name is load-bearing here. "},{"text":"Llama","code":true},{"text":" in a name does not tell you which Llama licence applies, and a new card label alone does not resolve restrictions on a base model."}]},{"t":"h2","id":"do-this-now","runs":[{"text":"Do this now"}],"role":"try"},{"t":"p","runs":[{"text":"Take three models you have heard of and write out, from the name alone, the parameter count, whether it is instruction-tuned, and the memory it needs at bf16 and at 4-bit. Then open each config to check what you could not have known (context length) and notice how often that, not size, is the deciding number."}]}],"check":{"question":[{"text":"Somebody sizes a machine for "},{"text":"mistralai/Mixtral-8x7B-Instruct-v0.1","code":true},{"text":" by reasoning that only about 13B parameters are used per token, so a 16 GB GPU at 4-bit should be comfortable. What is wrong with the reasoning?"}],"options":[{"text":[{"text":"Mixture-of-experts models cannot be quantized to 4 bits, so the memory estimate should have used bfloat16 throughout."}],"correct":false,"tempting":[{"text":"Invents a restriction; MoE weights quantize with the same schemes as dense weights."}]},{"text":[{"text":"The 8x7B naming means 56 billion parameters, so every figure in the estimate is too small by a factor of four."}],"correct":false,"tempting":[{"text":"Multiplies the name out literally; the experts share layers, so the true total is about 47B rather than 56B."}]},{"text":[{"text":"The model has about 47B total parameters. Active parameters describe computation per token, not the size of all weights that need a storage and loading plan."}],"correct":true,"tempting":null},{"text":[{"text":"The instruct suffix adds a second copy of the weights for the chat head, which doubles the memory an equivalent base model would need."}],"correct":false,"tempting":[{"text":"Imagines instruction tuning adds weights; it changes the existing ones and adds only a template."}]}],"order":[0,2,1,3],"why":null},"prev":{"slug":"reading-a-model-card","title":"Read the licence and limitations before the demo","minutes":11},"next":{"slug":"inside-a-repository","title":"What the files in a model repository are for","minutes":10}}}