AI

Model Parameters: What 7B or 70B Means in AI

Model parameters are the numbers an AI model learns. See what 7B and 70B mean, a parameter count worked out by hand, memory needs and why size is not all.

By OmniAI Editorial · Nov 22, 2026 · 12 min read

Model parameters are the numbers an AI model learns during training and then uses to turn input into output. In a large language model they are the weights stored in its layers, and they are what you download when you download a model. When a model is called 7B or 70B, the "B" means billion: it has roughly 7 billion or 70 billion parameters. More parameters mean more capacity to store patterns, and also more memory, more compute and a bigger bill to run, but the count alone doesn't tell you how good a model is.

This guide explains what parameters in an AI model are, what 7B and 70B mean in practice, a worked example that counts the parameters of a real model from its published settings, how much memory each size needs, why a smaller model can beat a larger one, what total versus active parameters means for mixture-of-experts models, and how to choose a size for your needs.

What Are Model Parameters?

What are model parameters, and what are parameters in LLM jargon? They're the adjustable numbers inside a model. Web.dev's guide puts it simply: parameters are the numerical values that an LLM learns during training, which it adjusts to understand language. Most of them are weights: numbers that scale the signal passing from one unit of the network to the next. A smaller share are biases, which shift the result. Training starts with random values and nudges them, billions of times, so that the model's predictions get better.

Think of a huge mixing desk with billions of dials. Before training, the dials are set randomly and the output is gibberish. Training turns each dial slightly after every batch of examples until the output makes sense. The final dial settings are the parameters, and saving them is what produces the model file.

Parameters in AI model files are not the data the model was trained on. The training text is gone after training; what remains is a compressed pattern of it, spread across the weights.

Model Parameters vs Hyperparameters

The two terms sound alike but describe different things:

Model parametersHyperparameters
Learned or chosen?Learned from data during trainingChosen by people before training
ExamplesWeights and biasesLearning rate, batch size, number of layers, hidden size
How many?Millions to trillionsA handful to a few dozen
Stored in the model file?YesOnly as configuration
Changed byThe training algorithmThe engineer, or a tuning search

Hyperparameters set up the structure and the training recipe, and parameters are what that recipe produces. Our guide to hyperparameter tuning covers how the settings are chosen.

What Do 7B and 70B Mean?

In a name such as Llama 2 7B or 70B, the number is the parameter count in billions, rounded. A 7B model has about 7 billion parameters and a 70B model about 70 billion, ten times as many. The numbers are approximate: web.dev notes that Gemma 2B has approximately 2 billion parameters, but not exactly. Model families usually come in several sizes so people can pick a trade-off: Meta's Llama 2, for example, was released as 7B, 13B and 70B models.

Size classParametersTypical role
SmallUnder about 3 billionPhones, laptops, simple tasks, fast responses
MediumAbout 7 to 14 billionEveryday assistants on a good consumer GPU or laptop
LargeAbout 30 to 70 billionStronger reasoning and writing, needs serious hardware
Very largeHundreds of billions and upFrontier systems run in data centres

The label is a size, not a quality grade. Two 7B models can differ widely depending on the training data, the architecture and the fine-tuning behind them.

Where the Parameters Live: A Worked Example

You can count a model's parameters yourself. The Llama 2 7B architecture is published (these are also the defaults in Hugging Face's LlamaConfig): 32 layers, a hidden size of 4,096, an MLP inner size of 11,008 and a vocabulary of 32,000 tokens. In a transformer, each layer has an attention block and an MLP block, and there is an embedding table at each end.

PartCalculationParameters
Attention per layer (query, key, value, output matrices)4 × 4,096 × 4,09667,108,864
MLP per layer (three matrices in the gated design)3 × 4,096 × 11,008135,266,304
One layerattention plus MLP202,375,168
32 layers32 × 202,375,1686,476,005,376
Input embeddings32,000 × 4,096131,072,000
Output layer (not tied to the embeddings)32,000 × 4,096131,072,000
Normalisation weights(2 × 32 + 1) × 4,096266,240
Total6,738,415,616

That is about 6.74 billion, which is why it's called 7B. Two lessons stand out: roughly 96% of the parameters sit in the repeated layers, and the embedding tables add only about 4%. A quick rule from the scaling-law literature is that non-embedding parameters in a standard transformer are about 12 × layers × hidden size squared. For this model that gives 12 × 32 × 4,096² ≈ 6.4 billion, close to the 6.48 billion we counted (the gated MLP makes the real number slightly higher).

A light panel with a row of thirty-two thin grey slices between two larger grey blocks, with an orange line above the slices only.
Most of a model's parameters sit in the repeated layers; the embedding tables at the ends are a small share.

How Much Memory Do Model Parameters Need?

Every parameter has to be stored as a number, and the size of that number is set by its precision. Memory for the weights is simply parameters times bytes per parameter:

PrecisionBytes per parameter7B model70B model
32-bit float (FP32)428 GB280 GB
16-bit (FP16 or BF16)214 GB140 GB
8-bit integer17 GB70 GB
4-bit integer0.53.5 GB35 GB

At 16-bit precision a 7B model needs about 14 GB just for the weights. This is why a 70B model can't fit on one consumer graphics card at full precision, while quantising it to 4 bits brings the weights down to about 35 GB. These figures cover the weights only. Running a model also needs memory for the context (the key-value cache, which grows with prompt length), for activations and for the software, so budget extra on top. Our guide to VRAM for AI shows how to size a GPU for each model.

Parameters and Compute: A Rule of Thumb

Training cost scales with both parameters and data. The scaling-law papers estimate the compute for training as about 6 floating-point operations per parameter per training token, written C ≈ 6 × N × D. Llama 2 7B was trained on 2 trillion tokens, so:

QuantityValue
Parameters (N)7 × 10⁹ (using the rounded figure)
Training tokens (D)2 × 10¹²
Compute (6 × N × D)8.4 × 10²² floating-point operations

That is about 84 sextillion operations, which is why training large models takes thousands of accelerators for weeks. Running a model is much cheaper: generating one token takes roughly 2 operations per parameter, so a 70B model needs about ten times the work per token of a 7B model, and a larger memory footprint to read the weights each time. For the data side, see our guide to LLM tokens.

Does More Parameters Mean a Better Model?

Not on its own. Parameters measure capacity, and capacity only helps if it is trained well. Three well-documented results show why:

  • Training data matters as much as size. DeepMind's Chinchilla paper trained a 70-billion-parameter model on about four times more data than the 280-billion-parameter Gopher, using the same compute, and it significantly outperformed Gopher across a wide range of tasks. The authors concluded that model size and training tokens should be scaled equally, and that most large models of the time were undertrained.
  • Fine-tuning can beat raw size. OpenAI's InstructGPT work found that human evaluators preferred outputs from a 1.3-billion-parameter model fine-tuned with human feedback to those of the 175-billion-parameter GPT-3, which has about 100 times as many parameters.
  • Architecture changes the maths. Mixture-of-experts models use only some of their parameters for each token (next section).

Within one family trained the same way, bigger usually is better: web.dev's guide notes that smaller LLMs are less capable than larger ones in the same family. But across families, "7B vs 70B" is only a meaningful comparison when the training recipe is similar, and newer small models regularly match older large ones.

Total vs Active Parameters in Mixture-of-Experts Models

A dense model uses all its parameters for every token. A mixture-of-experts (MoE) model splits some layers into several "experts" and sends each token to only a few of them. Mistral's Mixtral 8x7B has eight expert blocks in each layer, and a router picks two for every token. It has about 47 billion parameters in total, but only about 13 billion are active for any one token, and its authors report that it outperforms or matches Llama 2 70B and GPT-3.5 across the benchmarks they evaluated.

Dense modelMixture-of-experts model
Parameters used per tokenAllA fraction (for example 13B of 47B)
Memory neededProportional to totalProportional to total (all experts must be loaded)
Compute per tokenProportional to totalProportional to active
Quality per unit of computeBaselineOften better

That is why MoE names can confuse: memory follows the total, and speed follows the active count. When you see two numbers, such as 47B total and 13B active, plan your hardware by the first and your speed by the second.

Two light panels: on the left eight boxes in two rows, two grey and joined by lines to a small diamond router and six dotted, on the right a tall grey bar beside a short grey box with an orange dot above it.
A mixture of experts stores all its parameters but uses only a few per token.

7B vs 70B: How to Choose

A practical way to pick a size, starting from the task and the hardware:

If you need...ConsiderWhy
Fast, cheap answers on a laptop or phoneA small model (under about 3B)Fits in memory and responds quickly
A general assistant on a single consumer GPUAbout 7B to 14B, quantisedGood quality at around 4 to 16 GB of weights
Better reasoning, coding or writing and you have a workstationAbout 30B to 70B, quantisedMore capacity, weights of about 15 to 35 GB at 4-bit
Best quality regardless of costA very large model through an APINeeds data-centre hardware
A narrow task you can fine-tuneA small or medium modelFine-tuned small models often match larger general ones on one task

Test on your own prompts before deciding: benchmark rankings rarely predict how a model behaves on your data. Our guide to foundation models explains the larger family these models belong to.

Common Misunderstandings

  • "More parameters always means smarter." Training data, architecture and fine-tuning matter as much.
  • "7B means exactly 7 billion." The figure is rounded; the real count may differ by a few percent.
  • "Parameters are the training data." They are the learned numbers, not the examples.
  • "A 70B model needs 70 GB." It depends on precision: 140 GB at 16-bit and about 35 GB at 4-bit, plus memory for the context.
  • "Hyperparameters and parameters are the same." One is learned, the other is chosen.
  • "A mixture-of-experts model is as cheap as its active size." You still have to store all the experts.
  • "Bigger models are always worth the cost." For many tasks a smaller, well-tuned model is faster, cheaper and good enough.

FAQ

What are parameters in an LLM?

Parameters are the numbers, mostly weights, that a large language model learns during training. They are stored in the model's layers and determine how it processes text. A 7B model has about 7 billion of them.

What does 7B mean in an AI model?

The 7B means roughly 7 billion parameters; the B stands for billion. It describes the size of the model, so a 70B model has about ten times as many parameters and needs roughly ten times as much memory for its weights.

How much memory does a 7B model need?

About 14 GB for the weights at 16-bit precision, 7 GB at 8-bit and about 3.5 GB at 4-bit. Add extra memory for the context window and the software, so real usage is higher than the weights alone.

Is a 70B model better than a 7B model?

Usually, if both come from the same family and are trained the same way, because the larger model has more capacity. Across different families it depends on training data and design, and a newer 7B model can match an older 70B one.

What is the difference between parameters and hyperparameters?

Parameters are the weights and biases the model learns from data. Hyperparameters, such as the learning rate or the number of layers, are settings people choose before training that control how the model is built and trained.

All articles

Read next

Language

EnglishEnglish · en TürkçeTurkish · tr DeutschGerman · de العربيةArabic · ar

Account

Enter your email. We’ll send you a sign-in link and a 6-digit code. No password needed.

Sign in

Theme

Language

Show our email address

To keep spam out of our inbox, please confirm your own email first. We will send you a 6-digit code.

We send codes only to these providers: gmail.com, googlemail.com, outlook.com, hotmail.com, live.com, msn.com, proton.me, protonmail.com, pm.me, icloud.com, me.com, mac.com, yahoo.com, aol.com, gmx.de, gmx.net, web.de, t-online.de, yandex.com, omniai.blog