Core question: What exactly do we mean by a "model"?
Key concepts: Model, Architecture, Parameters, Weights.
Complete model lifecycle overview:
Definition
Model does not mean exactly the same thing in every context. This article focuses on large language models and multimodal generative models, using model repositories published on Hugging Face as engineering examples.
| Context | What "model" usually means | Examples |
|---|---|---|
| Machine learning | A mathematical system trained on data that can compute outputs from inputs | Classification model, language model, diffusion model |
| Architecture | A computation structure or design | Transformer, Decoder-only, Diffusion Transformer |
| Weights | A concrete set of parameter values from a particular training run | Weights of Qwen3.8-27B |
| Engineering | A complete set of downloadable, loadable, runnable model resources | A Hugging Face model repository |
Sometimes people call "Transformer" a model, sometimes a .safetensors file a model, and sometimes an entire Hugging Face repository a model. These are not all the same layer of meaning.
When this article says "a runnable model," it mainly uses the engineering sense: trained weights at the core, plus architecture implementation, configuration, Tokenizer or Processor, and other supporting resources.
Concepts
Conceptually, or as a mental picture:
- A model is a mathematical system that can compute outputs from inputs. Its architecture defines how the computation works, while the specific parameter values are obtained through training.
- Architecture is like a pre-designed computation framework; weights are the large set of numeric values filled in during training. Together they form a model with concrete capabilities.
In abstract terms, a model is a mathematical system that obtains parameters through training and can compute outputs from inputs.
From an engineering implementation perspective:
Architecture implementation
+ Trained weights
+ Model configuration
+ Tokenizer / Processor
+ Inference framework
β A model that can be loaded and run- The "model core":
Model core = Architecture + Trained Parameters- Runnable model package:
Runnable model package β
Model core
+ Config
+ Tokenizer / Processor
+ Generation Config
+ Chat Template-
The inference framework is what actually runs the model package, for example:
- Transformers
- vLLM
- llama.cpp
- ComfyUI
- Diffusers
Architecture Overview
Model
β
βββ Architecture
β βββ Defines which computation modules the model consists of, and how data flows
β
βββ Parameters / Weights
β βββ Large numbers of values learned through training
β
βββ Input Representation
β βββ Tokenizer (text)
β βββ Processor (image / audio / video)
β
βββ Configuration
βββ Model Config (model structure configuration)
βββ Generation Config (generation configuration)Different states of a model:
| Classification dimension | Common states |
|---|---|
| By training stage | Pretrained, Instruction-tuned, Fine-tuned |
| By numeric / deployment form | BF16, FP16, FP8, INT8, INT4, Quantized |
| By completeness | Base, Pruned, Distilled |
| By use or capability | Text, Vision-Language, Embedding, Reranker |
In engineering practice, a "model" is not always a single file; it often appears as a model repository composed of weights, configuration, tokenizer, preprocessing rules, and documentation.
Example
Taking the Qwen3.8 model as an example, its structure includes weight files, structure configuration, Tokenizer, input preprocessing rules, generation configuration, and more.
Where:
- Architecture configuration and weights determine the model itself;
- Tokenizer and preprocessing configuration turn inputs into a form the model can accept;
- Chat Template and Generation Config govern interaction and generation behavior;
- Model Card and License describe the model's capabilities, usage, and usage boundaries.
Model Family Β· Variant β The 27B-parameter variant of the Qwen3.8 family; this repository contains full weights, not a quantized version
License β Rules for use and distribution
Model Card β Describes capabilities, usage, limitations, and examples
Chat Template β Formats system / user / assistant messages into the input format the model expects
Model Config β Describes the model type, layers, and dimensions so software can construct the model
Generation Config β Default generation settings such as temperature and sampling
BPE Merges β Rules for progressively merging pieces into tokens
Weight Shard β One part of the complete weights; all 18 shards together contain the full parameter set
Weight Shards β These are not 18 separate models
Weight Index β Records which shard stores each parameter
Image Preprocessor β Rules for image resizing, normalization, and other preprocessing
Tokenizer β Converts text into tokens and tokens back into text
Tokenizer Config β Tokenizer type and special tokens
Video Preprocessor β Rules for video frame sampling and resizing
Vocabulary β Maps tokens to numeric IDs
Open repository Β· Hugging Face / ModelScope
Summary
A model is a computation system made of architecture and parameters; it obtains weights through training and converts inputs into outputs. Training results are saved as a set of files in a model repository, and are finally loaded into memory and VRAM by an inference framework to run.
Architecture defines how the model "computes"; weights store what the model "has learned." In engineering, they also need to work together with configuration, Tokenizer, or multimodal Processor resources to be loaded and used correctly.