Parameter count

Also known as: number of parameters · model size

On this page 7

Parameter count is the total number of learned numerical values, mainly weights and biases, that a trained model adjusts during training and uses to compute its outputs. In artificial intelligence, it is the standard shorthand for model size, which is why models are described as having 7 billion, 70 billion or more parameters.

The number of parameters shapes how much a model can represent, how much memory it needs and how expensive it is to train and run. It is a useful first indicator among AI fundamentals, but it is not a direct measure of capability: data quality, training compute, architecture and fine-tuning matter at least as much.

What counts as a parameter

A parameter is any value that the learning algorithm updates through gradient descent and stores in the model weights file. In a neural network, almost all parameters sit in weight matrices that connect layers, with a much smaller share in bias vectors, normalization scales and embedding tables.

Values chosen by engineers rather than learned, such as the learning rate, the number of layers or the batch size, are hyperparameters and do not count. Fixed buffers, such as precomputed positional tables, are also excluded. The table below shows where parameters come from in common layer types.

Layer typeParameter formulaExample size
Fully connected layerinputs x outputs + outputs4,096 x 4,096 gives about 16.8 million
Convolutional layerkernel area x in channels x out channels + out channels3 x 3 x 256 x 256 gives about 590,000
Embedding tablevocabulary size x embedding width50,000 x 4,096 gives about 205 million
Layer normalization2 x width2 x 4,096 gives 8,192
How common layers contribute to parameter count

For a decoder-only transformer, a useful approximation is about 12 x layers x width squared, plus the embedding table. A model with 32 layers and a width of 4,096 lands near 6.4 billion parameters before embeddings, which matches the familiar 7B class.

Total versus active parameters

Modern architectures distinguish total parameters, which are stored, from active parameters, which are actually used to process each token. In a dense model the two numbers are equal; in a mixture-of-experts model a router sends each token to only a few expert subnetworks, so the active count can be a small fraction of the total.

MetricWhat it measuresWhat it predicts
Total parametersAll stored weightsMemory and storage needs
Active parametersWeights used per tokenCompute cost per token
Non-embedding parametersWeights outside embedding tablesScaling behavior in research
Trainable parametersWeights updated during fine-tuningFine-tuning cost
Ways of reporting model size

These distinctions matter when comparing models. A mixture-of-experts model with hundreds of billions of total parameters may cost about as much per token as a dense model with tens of billions, yet it still needs enough memory to hold every expert. With parameter-efficient methods such as LoRA, the trainable parameter count can fall below 1 percent of the total.

Parameter count, memory and compute

The memory needed to hold a model equals parameter count times bytes per parameter, so numerical precision has as much effect as size. Training needs far more memory than inference because optimizer states and gradients must also be stored, typically 16 to 20 bytes per parameter with the Adam optimizer in mixed precision.

PrecisionBytes per parameterWeight memory
FP324About 28 GB
FP16 or BF162About 14 GB
INT81About 7 GB
4-bit quantization0.5About 3.5 GB
Approximate weight memory for a 7-billion-parameter model

Compute follows a similar rule of thumb. Training a dense transformer costs roughly 6 floating-point operations per parameter per training token, and inference costs about 2 operations per parameter per generated token. These estimates exclude attention over long contexts, which adds cost that grows with sequence length.

How parameter count relates to capability

Larger models generally reach lower loss, but scaling laws show that size only pays off when training data grows with it. The compute-optimal analysis published in 2022, known as the Chinchilla result, suggested about 20 training tokens per parameter; many recent models are trained far beyond that ratio because a smaller, longer-trained model is cheaper to serve.

  • Data quality and volume often outweigh extra parameters.
  • Architecture choices such as attention variants change efficiency at a fixed size.
  • Post-training with instruction tuning and reinforcement learning shapes usable behavior.
  • Overparameterized models can still generalize well, contrary to classical statistical intuition.

As a result, a well-trained 8-billion-parameter model can outperform an older model several times larger on many benchmarks. Parameter count is best treated as a capacity ceiling, not as a score.

Common misreadings of model size

Published size figures are frequently misinterpreted, especially in comparisons between models with different architectures. The table below lists the most common errors and the correct reading.

MistakeWhy it misleadsBetter practice
Ranking models by size aloneIgnores data and training qualityCompare task benchmarks
Equating total and active countsOverstates mixture-of-experts costReport both numbers
Ignoring precisionMemory estimate can be off fourfoldState bytes per parameter
Treating parameters as stored factsKnowledge is distributed, not indexedTest recall directly
Comparing to brain synapsesUnits are not equivalentAvoid biological analogies
Frequent mistakes when interpreting parameter count

Some developers also report rounded or marketing figures, and the inclusion of embedding or vision-encoder parameters varies. When exact comparison matters, the configuration file or the weights themselves are the reliable source of the count.

Understanding it simply

An AI model is built from a huge set of numbers. Training tunes these numbers, one small step at a time. The parameter count is how many of these numbers the model has.

Think of a mixing desk with knobs. A desk with more knobs can shape sound in finer ways. But it also costs more and needs more space. A bigger model is not automatically smarter. What it learned from, and how well it was trained, matters just as much.

Applied in practice

A hospital IT team wants to run a language model on its own servers so that patient notes never leave the building. Their server has one GPU with 24 GB of memory. A 70-billion-parameter model would need about 140 GB in 16-bit precision, so it is ruled out immediately.

The team compares an 8-billion-parameter model in 16-bit precision, which needs about 16 GB for weights, with a 14-billion-parameter model quantized to 4 bits, which needs about 7 GB plus room for the context cache. After testing both on 200 sample summarization tasks, they choose the quantized 14B model because it scores slightly higher and still leaves memory for long documents. The decision rests on parameter count, precision and measured quality together, not on size alone.