Pre-training Large Models
A model's parameter count is usually written at the end of its name, as in Llama-13B.
Why Model Size Keeps Coming Up
When people discuss recent progress in AI, one factor comes up again and again: how large the models have become. A large share of the improvement seen in recent years is attributed to increased model size. Because of this, it is hard to talk about foundation models without also talking about how many parameters they have.
This article works through three practical ideas. First, how to read a model's size from its name. Second, how size relates to a model's ability to learn and to its performance within one family of models. Third, how the compute needed to build such models is measured, and why that measurement is incomplete when it is reduced to a count of machines.
Reading Size From a Model Name
A model's parameter count is usually written at the end of its name. To read it, follow the name from left to right; the size is the last piece. The name Llama-13B shows the pattern. The part before the hyphen identifies the model family, here Llama, which is developed by Meta. The part after the hyphen gives the size.
Read the diagram from left to right. The family name tells you which line of models you are looking at. The hyphen marks where the size begins. The number 13 says how many billion parameters that version has, and the letter B confirms that the unit is billions. So Llama-13B tells you directly that this version of Llama has 13 billion parameters.
Tracing the size in a model name
A model is named Llama-7B. What is its family, and how many parameters does it have?
- 1Find the hyphen
The hyphen separates the family name from the size. Everything before it is Llama.
- 2Identify the family
The part before the hyphen names the model family, so this model belongs to the Llama family.
- 3Read the piece after the hyphen
The last piece is 7B. The number 7 is the size.
- 4Expand the B
B stands for billion, so 7B means 7 billion parameters.
Llama-7B is a member of the Llama family with 7 billion parameters.
What a Larger Parameter Count Signals
A parameter count tells you about a model's capacity to learn. Increasing a model's parameters increases that capacity, and the source states that this is likely to produce a better model within the same family. Read the relationship as a chain: the name carries the size, the size sets the capacity, and the capacity is what makes the better outcome possible.
What do you think happens?
Two models come from the same family, Llama-7B and Llama-13B. Which one has the larger capacity to learn?
Reveal answer
Llama-13B
The name gives the size directly: 13B means 13 billion parameters and 7B means 7 billion. Within one family, more parameters means more capacity to learn, and the source says this is likely to produce a better model.
The comparison above keeps the family fixed and changes only the size. That is the scope the source describes. Within one family, a larger parameter count is associated with greater capacity and a likelier better model. The source does not give performance figures for these sizes, so the direction of the effect is the claim to remember, not a specific amount of improvement.
Counting Machines to Measure Compute
Building a large model is not free. Pre-training large models requires compute, and one way to measure how much is needed is to count the machines involved. The source lists GPUs, CPUs, and TPUs as the kinds of machines counted this way. A team that reports its machine count gives you a first measure of how much compute went into training.
Counting machines is a useful starting measure, but it hides an important detail: machines are not interchangeable. The source gives three examples that are all machines but differ in capacity and cost: an NVIDIA A10 GPU, an NVIDIA H100 GPU, and an Intel Core Ultra Processor. Two entries in a machine count can therefore stand for very different amounts of work.
Read the concept map from the top. Compute is measured in practice by counting machines. That count does not reveal each machine's capacity or cost, and both of those depend on what kind of machine it is. A fair comparison of two efforts therefore needs to account for what each machine is, not only how many there are.
A Ten-Machine Example
Why ten machines can mean different amounts of compute
A team reports that it used ten machines for pre-training. Can you tell from that alone how much compute was spent?
- 1Identify what is known
The team reports only a count: ten machines.
- 2Ask what kind of machine
The source says machines differ in capacity and cost, so the kind matters. Ten GPUs of one kind and ten of another are not the same resource.
- 3Compare two hypothetical teams
Team A used ten of one machine type and Team B used ten of a different type with lower capacity. Both report ten machines, yet Team A has more capacity behind its count.
- 4Draw the conclusion
The count alone cannot settle how much compute was spent. Capacity and cost of each machine must also be taken into account.
A machine count is a useful starting measure, but it is incomplete. Two reports with the same count can describe different amounts of compute.
Mistakes When Reading Size and Compute
Common mistake Reading the number in a model name as a random label rather than the size
What it looks likeSeeing Llama-13B and treating 13B as just an identifier.
Why it failsThe source says the size is written at the end of the name, and 13B means 13 billion parameters.
Do this insteadRead the piece after the hyphen as the parameter count, expanding B as billion.
Common mistake Assuming a bigger parameter count always guarantees a better model
What it looks likeConcluding that any larger model in any family must outperform any smaller one.
Why it failsThe source's claim is that more parameters increase capacity and are likely to give a better model within the same family. It is a likelihood, scoped to one family.
Do this insteadCompare sizes within one family and treat the parameter count as a guide to capacity, not a guarantee.
Common mistake Treating a machine count as the complete measure of compute
What it looks likeBelieving that ten machines always means the same compute as another team's ten machines.
Why it failsThe source says machines differ in capacity and cost, so a machine count alone does not fully describe compute.
Do this insteadReport or compare the kind of machine along with how many were used.
Common mistake Forgetting that GPUs, CPUs, and TPUs are all counted as machines, so a mixed count needs more context to interpret
Practice Reading Model Names
Two models share a family name: Llama-7B and Llama-13B. Identify the family of each, state each parameter count, and say which one has the greater capacity to learn according to the source. Then explain why a machine count of ten alone would not tell you which training effort used more compute.
Hints
- The family is the part before the hyphen.
- The size is the piece after the hyphen, where B stands for billion.
- Within one family, more parameters means more capacity to learn.
- For the machine question, think about whether all machines have the same capacity and cost.
Key Takeaways
- A model's parameter count is usually written at the end of its name; in Llama-13B, the part after the hyphen gives the size of 13 billion parameters.
- Within one model family, increasing parameters increases capacity to learn and is likely to produce a better model.
- Pre-training large models requires compute, which can be measured by counting machines such as GPUs, CPUs, and TPUs.
- A machine count alone is incomplete because machines differ in capacity and cost, so a fair comparison must account for what each machine is.
- The scaling law is named in the source as the concept behind compute-optimal models, but it is only mentioned here and not explained.