Lesson 11 of 28 · Language models and chat assistants
What are parameters in an LLM?
Parameters are the numbers inside a large language model that it learns during training. Each one is a tiny adjustable weight that shapes how the model turns input words into a prediction of the next word. A model described as '7B' has about seven billion of them. More parameters give more capacity to learn patterns, but also need more memory and computing power.
Parameters in plain language
A large language model (LLM) is a program that reads text and predicts what comes next, one token at a time (a token is a word or a piece of a word). Inside it is a neural network: layers of simple maths operations connected to each other. Each connection has a strength, stored as a number. Those numbers are the parameters, also called weights.
Picture a giant sound-mixing desk with billions of tiny knobs. No single knob means anything on its own, but together their positions decide what comes out of the speakers. In an LLM, the knob positions decide which next token looks most likely. Grammar, facts, writing styles and coding habits are all stored as patterns spread across those settings, not as entries in a list.
How a model learns its parameters
Before training, the parameters are set to random values, so the model produces gibberish. Training shows it enormous amounts of text, one passage at a time. For each passage the model guesses the next token, compares its guess with the real one, and every parameter is nudged slightly in the direction that would have made the right answer more likely. Repeat this billions of times and useful patterns emerge.
Once training ends, the parameters are frozen. When you chat with a model, it uses its parameters but does not change them, which is why a model does not permanently learn from your conversation. Changing them again requires more training, such as fine-tuning.
Does a bigger number mean a better model?
Not automatically. Research on scaling (Kaplan et al., 2020) found that language models tend to improve predictably as parameters, training data and computing power grow together. Later work (Hoffmann et al., 2022) showed that many large models had been trained on too little data for their size, and that a smaller model trained on more data could outperform a bigger one.
Size also has costs. Every parameter must sit in memory while the model runs, so larger models need more powerful hardware and are usually slower and more expensive per answer. Some designs, called mixture-of-experts, use only part of their parameters for each token, so you may see both a 'total' and an 'active' parameter count.
- More parameters: more capacity to store patterns and handle complex tasks.
- Also matters: the amount and quality of training data, and later tuning.
- Trade-off: more memory, slower responses and higher running costs.
What parameters are not, and where you will see them
Parameters are not the settings you can change in an app. Options such as temperature or maximum length are sometimes called 'parameters' in API documentation, but they only steer how the model produces an answer; they do not touch the learned weights. Parameters are also not a copy of the training data, and the count says nothing about the context window, which is how much text the model can read at once.
You will meet parameter counts in model names (such as '8B' or '70B'), on model cards and download pages for open-weight models, and in model comparisons. Many companies do not disclose the size of their closed models, so a missing number is common. For a sense of scale, the 2020 GPT-3 paper described a model with 175 billion parameters (Brown et al., 2020).
Example
Worked example: reading '8B' in a model name
Worked exampleModel name: example-model-8B 8B = about 8 billion parameters Each parameter is stored as a number: 16-bit precision = 2 bytes per parameter 8 billion x 2 bytes = about 16 GB of memory, just for the weights Compressed (quantised) to 4-bit = 0.5 bytes per parameter 8 billion x 0.5 bytes = about 4 GB Takeaway: the parameter count tells you roughly what hardware can run the model.
Rough arithmetic for the weights only; running a model also needs extra memory for the text it is processing. 'example-model-8B' is a made-up name.
Key points
- Parameters are the learned numbers (weights) inside a model.
- Training adjusts them; chatting with a model does not.
- '7B' or '70B' in a name means billions of parameters.
- More parameters add capacity, but data quality and tuning matter too.
- Bigger models need more memory and cost more to run.
Try it on Mindber
Related terms
Related topics
Frequently asked questions
How many parameters does a model need to be called 'large'?
There is no official threshold. 'Large' is relative, and the bar has moved as models have grown. In practice the label usually refers to models with billions of parameters, trained on very large text collections. What matters more for a user is how well a model performs on your task and what it costs to run, not whether it crosses a particular size.
Can I see or change a model's parameters?
Only for open-weight models, whose parameter files can be downloaded, run on your own hardware or adjusted through fine-tuning. Closed models keep their parameters on the provider's servers; you reach them through an app or API and can change only generation settings such as temperature, not the weights themselves.
Are parameters the same as tokens?
No. Tokens are the pieces of text a model reads and writes, such as words or parts of words. Parameters are the learned numbers inside the model that decide what to do with those tokens. Token counts measure how much text you send or receive; the parameter count measures the size of the model itself.
Sources
- Scaling Laws for Neural Language Models. Kaplan et al., arXiv, January 2020
- Training Compute-Optimal Large Language Models. Hoffmann et al., arXiv, March 2022
- Language Models are Few-Shot Learners. Brown et al., arXiv, May 2020
Last updated