How LLMs Work
What Are Parameters in an AI Model?
When you hear that a model has billions of parameters, what does that mean? A knob-and-dial explanation.
A parameter is one of the adjustable numbers inside a model.
Illustration made for this site.
The dials analogy
Picture a giant sound mixer with billions of tiny dials. Training turns the dials little by little until the music, or the language, sounds right. Each dial is a parameter.
Why the count is mentioned
Companies often say how many parameters a model has, such as "7 billion" or "70 billion". More parameters can let a model learn more patterns, but size alone does not make a model good. Data quality and training matter a lot too.
Some real counts
These numbers come from the papers and announcements that describe each model.
| Model | Year | Parameters | Source |
|---|---|---|---|
| AlexNet (image recognition) | 2012 | 60 million | the AlexNet paper |
| GPT-2 | 2019 | 1.5 billion | OpenAI announcement |
| GPT-3 | 2020 | 175 billion | GPT-3 paper |
| Chinchilla | 2022 | 70 billion | Chinchilla paper |
| Llama 2 | 2023 | 7 to 70 billion (a family of sizes) | Llama 2 paper |
| phi-3-mini | 2024 | 3.8 billion | Phi-3 report |
Chinchilla is a useful warning: with 70 billion parameters it did better than the 280 billion parameter Gopher in its authors' tests, because it was trained on more data. See how big is a language model.
Memory and speed
More parameters need more computer memory and more time to run. That is why small models can run on a laptop, while the largest need big data centres.
Sources
- https://papers.nips.cc/paper_files/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html
- https://openai.com/index/better-language-models/
- https://arxiv.org/abs/2005.14165
- https://arxiv.org/abs/2203.15556
- https://arxiv.org/abs/2307.09288
- https://arxiv.org/abs/2404.14219
- https://en.wikipedia.org/wiki/Large_language_model