What 7B and 70B mean: LLM parameters explained

The B in 70B is a billion parameters. What parameters are, where they sit in a model, why bigger isn’t always better, and how mixture-of-experts changes the count.

Popo
On this page

Model names such as Llama 3.1 70B end in a size. B is for billion: the model has about 70 billion parameters, the numbers it learned in training. Running the model means multiplying and adding your text's numbers with these.

Counting every one

The count isn't a secret recipe. It follows from the model's published dimensions: how many layers, how long the list of numbers for each token is, how large the vocabulary is. For Llama 3.1 70B you can work out every parameter:

Llama 3.1 70B: 70,553,706,496 parameters

Feed-forward layers79.9%
Attention17.1%
Vocabulary tables3.0%
Everything else0.002%
Calculated from the model's published config.json: 80 layers, 8,192 numbers per token, feed-forward layers of 28,672 and a vocabulary of 128,256. The total matches the number in the model files exactly.

Attention gets the headlines, but four-fifths of the parameters are in the feed-forward layers, which process each token after attention has mixed in its context. The vocabulary tables, with one entry per token, take 3%.

No single parameter stores a fact. "Paris is the capital of France" is spread over many of them, and each takes part in a great many facts. That's why you can't open a model and edit one line.

Why models grew

In 2020 OpenAI researchers published scaling laws: as model size, data and computing grow, prediction error falls along a smooth, predictable curve. That made a large model something you could plan for, and sizes climbed.

GPT-32020175B
Chinchilla202270B
Llama 3.1 8B20248B
Llama 3.1 405B2024405B
DeepSeek-V3, total2024671B
DeepSeek-V3, used per token202437B
Billions of parameters, from each model's paper. The last two rows are the same model; see below.

Why bigger isn't simply better

In 2022 DeepMind asked how to split a fixed computing budget between size and data. The answer, in the Chinchilla paper, was that the models of the day were far too large for the amount of text they'd read. Size and training tokens should grow together: double one, double the other.

ModelParametersTraining tokensComputing budgetResult
Gopher280B300 billionSameBehind
Chinchilla70B1.4 trillionSameAhead on most tests
From the Chinchilla paper. A model a quarter the size, trained on over four times as much text with the same computing budget, came out ahead.

Later models went further, training smaller models on far more text than this rule suggests, because a smaller model is cheaper every time it's used, not just once. What happens after pre-training matters as much: people preferred a 1.3B model trained with human feedback to the 175B GPT-3.

So compare sizes only within a family of the same generation. Between generations, a newer small model can beat an older large one.

Mixture of experts: 671B, but 37B at a time

Many recent models split their feed-forward layers into many "experts" and use only a few for each token. DeepSeek-V3 has 671 billion parameters, of which 37 billion are used for any one token.

That gives two answers to "how big is it?" All 671 billion must be held in memory, but the calculation per token is about that of a 37-billion-parameter model. When you see one number for such a model, check which it is.

What you can and can't tell from a size

  • Memory: yes, quite exactly. See how much memory a model needs.
  • Speed: roughly, if you use the active parameters.
  • Quality: only loosely.
  • How much it has read: no. That's a different number, and often unpublished.

Companies behind most leading commercial models don't disclose a size at all. Figures you see quoted for them are estimates.