Concepts / Pre-training Large Models

Pre-training Large Models

A model's parameter count is usually written at the end of its name, as in Llama-13B.

  • Programming

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.

Llamamodel family, developed byMeta-separates family from size13number of billionsBstands for billion
Which part of a model name like Llama-13B gives the parameter count, and what does each part of the name mean?

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.

Worked example

Tracing the size in a model name

A model is named Llama-7B. What is its family, and how many parameters does it have?

  1. 1
    Find the hyphen

    The hyphen separates the family name from the size. Everything before it is Llama.

  2. 2
    Identify the family

    The part before the hyphen names the model family, so this model belongs to the Llama family.

  3. 3
    Read the piece after the hyphen

    The last piece is 7B. The number 7 is the size.

  4. 4
    Expand the B

    B stands for billion, so 7B means 7 billion parameters.

Result

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?

  • Llama-7B

  • Llama-13B

  • They have the same capacity

Reveal answer
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.

Llama-7B7 billion parametersLlama-13B13 billion parameters
How do the sizes of models in the same family differ in parameters, and how does performance change as size grows?

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.

Pre-trainingcomputewhat the team spentMachine countGPUs, CPUs, TPUs countedCapacity of eachmachinemachines differMachine typeA10, H100, Core UltraCost of each machinemachines differmeasured by countinghideshidessetssets
Which factors combine to determine total pre-training compute besides the number of machines, and how are they connected?

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

Worked 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?

  1. 1
    Identify what is known

    The team reports only a count: ten machines.

  2. 2
    Ask 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.

  3. 3
    Compare 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.

  4. 4
    Draw the conclusion

    The count alone cannot settle how much compute was spent. Capacity and cost of each machine must also be taken into account.

Result

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 like

    Seeing Llama-13B and treating 13B as just an identifier.

    Why it fails

    The source says the size is written at the end of the name, and 13B means 13 billion parameters.

    Do this instead

    Read 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 like

    Concluding that any larger model in any family must outperform any smaller one.

    Why it fails

    The 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 instead

    Compare 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 like

    Believing that ten machines always means the same compute as another team's ten machines.

    Why it fails

    The source says machines differ in capacity and cost, so a machine count alone does not fully describe compute.

    Do this instead

    Report 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

EASY

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.

Related concepts

More concepts starting with P