Model parameters
Definition
The numbers learned in training that determine what a model outputs; a model's size is usually quoted as how many of them it has.
In more detail
Counts are written with B for billions: the largest model in Meta's Llama 3 family has 405B. More of them generally buys capability at a higher running cost, as scaling laws describe, though training data and post-training matter as much.
The count sets the memory needed to run a model. Each one takes 2 bytes at 16-bit precision, so a 70B model needs about 140 GB for its weights alone; 4-bit quantization cuts that to roughly a quarter. Mixture-of-experts models use only part of their weights for each token, so their speed follows the active count while memory follows the total.
Related terms
Large language model (LLM)
A neural network trained on very large amounts of text to predict the next token, which lets it generate and transform language.
Mixture of experts (MoE)
A model architecture that routes each token through a few specialised sub-networks, so only part of the model runs per token.
Open-weight model
A model whose trained weights are published for download, whatever the licence terms on their use. Training data and code may stay private.
Quantization
Storing model weights at lower numerical precision, such as 8 or 4 bits, to reduce memory use and speed up inference at a small quality cost.
Scaling laws
Empirical rules showing that a language model's loss falls predictably, as a power law, when parameters, training data and compute grow.
Read more about Model parameters
- Run local models with Ollama
Install Ollama, run an open-weight model on your own machine, call it from scripts over the local API and choose a model size your hardware can handle, offline.
- Local models
Running open-weight models on your own hardware for privacy, cost or offline use.
- Choosing AI models
Picking the right model for a task by testing quality, cost, speed and data terms.