Parameters and model size
Model sizes are quoted in billions of parameters. What is a parameter, what does a bigger count buy, and why is bigger not automatically better?
Parameters are learned numbers.
A model’s parameters are the adjustable numbers it uses to turn input into output. In a neural network most of them are the weights you met in the pretraining lesson. They start out arbitrary, and training nudges every one of them so the model’s predictions fit the data a little better. When training ends, they are frozen and the model answers using those fixed values.
A “7 billion parameter model” therefore has seven billion such numbers. The count describes the model’s capacity: how many different patterns it could be adjusted to represent. It does not describe what the model actually learned, and it is not a score of how good it is.

Turn the size dial.
Real models are far too large to watch, so this lab uses a toy: a curve with a chosen number of adjustable numbers, fitted to noisy dots. Start small and raise the dial. Watch two errors: how well the curve matches the dots it was fitted to, and how well it predicts fresh dots it never saw (held-out). Then switch to more examples and repeat.
Error on training examples0.17
Error on held-out examples0.21
Too small: too few adjustable numbers to follow the pattern.
Learned numbers
- w1 0.05
- w2 0.93
- w3 0.08
Held-out error at every size (12 examples)
Bars stop at an error of 0.70; values are exact.
Everything here is invented: the hidden pattern, the noisy examples and the errors, which are root-mean-square gaps between the curve and the dots. The held-out dots also pick the “lowest” size here, which makes that figure slightly optimistic. The “model” is a curve fitted by least squares, not a neural network, and its “parameters” are curve coefficients. Real language models have millions to billions of weights arranged in layers and are trained very differently, so this shows the idea of capacity versus data, not how any real model behaves.
Capacity is not quality.
Follow one run of the toy with 12 examples through the three settings you saw.
- 1. Too few numbersA single number can only draw a flat line. It misses the bend, so both errors are high. The model lacks capacity.
- 2. Enough numbersWith a handful, the curve follows the pattern and ignores most of the noise. The held-out error is at or near its lowest.
- 3. Many numbersWith as many numbers as examples the curve can pass through every dot, so the training error falls to about zero, yet it swings wildly between dots and the held-out error gets worse.
The training error only ever improves as the dial goes up, which is why it is a poor judge of quality. The held-out error is a more honest signal. Here we also use it to compare sizes, so the lowest value is a little optimistic, and a real project would keep a separate, untouched test set for the final estimate (a later lesson covers training, validation and test sets). With 40 examples, the extra numbers are mostly harmless, but they still did not beat a moderate size. Extra capacity needs enough data to constrain it, and even then it is not guaranteed to help.
Real language models are not polynomial curves, and very large networks trained on very large datasets do not fail in exactly this way. The transferable lesson is narrower: parameter count measures capacity, and the data, the amount of training and the later tuning decide how well that capacity is used. A smaller model that is well trained can beat a larger one that is not.
What size costs.
Size has a concrete price even when it does not buy quality. Every parameter is a number that must be stored and used, so a bigger model needs more memory, and a bigger dense model also needs more computation for each token it produces. Some designs use only part of their parameters for each token, so the count alone does not fix the compute. Storing the weights alone takes the parameter count times the bytes per number. The sizes below are hypothetical examples.
| Parameters | 16-bit (2 bytes each) | 4-bit (0.5 bytes each) |
|---|---|---|
| 1 billion | 2 GB | 0.5 GB |
| 7 billion | 14 GB | 3.5 GB |
| 70 billion | 140 GB | 35 GB |
Decimal gigabytes, weights only. Running a model needs extra memory on top of this, and real storage formats vary. Later lessons cover how cost, speed and quality trade off and how to choose a model for a task.
Check your understanding.
Take this with you.
Parameters are the numbers a model learns, and their count is its capacity. More capacity can help, but it costs memory and computation and is only as good as the data and training behind it. Treat model size as one input to a choice, never as a quality score.