Short answer
LLM parameters are the numbers a large language model learns during training: the weights and biases that determine how it transforms input text into output. A model described as "8B" has about 8 billion of these numbers. Most parameters sit in the transformer's attention and feed-forward (MLP) layers, with the rest in embeddings. A dense transformer has roughly 12 × layers × hidden size² parameters, which gives about 175 billion for GPT-3. Each parameter needs 2 bytes in 16-bit precision or about 0.5 bytes at 4-bit, so an 8B model needs about 16 GB or 5 GB of memory. In mixture-of-experts models, only a fraction of parameters is active per token (for example, 37 billion of DeepSeek-V3's 671 billion). More parameters usually mean more capability, but training data, architecture and training methods matter just as much.
What is a parameter?
A neural network is a large mathematical function. Its parameters are the adjustable numbers inside it. During training, the model predicts the next token, measures its error, and nudges every parameter slightly to reduce that error using gradient descent and backpropagation. After trillions of tokens, the parameters encode grammar, facts, reasoning patterns and style.
| Type | What it does | Share of parameters |
|---|---|---|
| Weights | Multipliers that set how strongly one value influences another | Almost all |
| Biases | Constant offsets added to outputs (many modern LLMs omit them) | Tiny or zero |
| Embedding parameters | Vectors representing each token in the vocabulary | Small to moderate share |
| Normalisation parameters | Scale values in layer norms | Tiny |
Where parameters live in a transformer
| Component | What it contains | Approx. parameters per layer (dense, hidden size *d*) |
|---|---|---|
| Attention (Q, K, V, O projections) | Weights that decide which tokens attend to which | ~4*d*² (less with grouped-query attention) |
| Feed-forward network (MLP) | Weights that transform each token's representation | ~8*d*² (standard 4× expansion) |
| Layer norms | Scale (and shift) values | ~2*d* |
| Token embeddings (once per model) | One vector per vocabulary token | vocabulary × *d* |
See What is a transformer? and the attention mechanism simulator.
How to count parameters
Rule of thumb for a classic dense transformer:
parameters ≈ 12 × layers × d² + vocabulary × dWorked example: GPT-3
- 96 layers, hidden size *d* = 12,288, vocabulary ≈ 50,257
- 12 × 96 × 12,288² ≈ 174 billion
- Embeddings: 50,257 × 12,288 ≈ 0.6 billion
- Total ≈ 175 billion, matching the published figure.
Worked example: an 8B Llama-style model
Modern models use SwiGLU MLPs (three matrices) and grouped-query attention:
| Part | Calculation | Parameters |
|---|---|---|
| Attention per layer (d = 4,096; KV dimension 1,024) | 4,096² × 2 + 4,096 × 1,024 × 2 | ~42 million |
| MLP per layer (intermediate size 14,336) | 3 × 4,096 × 14,336 | ~176 million |
| 32 layers | (42M + 176M) × 32 | ~6.98 billion |
| Input and output embeddings (vocabulary 128,256, untied) | 2 × 128,256 × 4,096 | ~1.05 billion |
| Total | ~8.0 billion |
Notice that the MLP layers hold most of the parameters.
Parameter counts of popular models
| Model | Year | Total parameters | Active per token | Type |
|---|---|---|---|---|
| GPT-2 | 2019 | 1.5 billion | 1.5B | Dense |
| GPT-3 | 2020 | 175 billion | 175B | Dense |
| PaLM | 2022 | 540 billion | 540B | Dense |
| Mixtral 8x7B | 2023 | 46.7 billion | ~12.9B | MoE |
| Llama 3.1 405B | 2024 | 405 billion | 405B | Dense |
| DeepSeek-V3 / R1 | 2024–25 | 671 billion | 37B | MoE |
| Qwen3-235B-A22B | 2025 | 235 billion | 22B | MoE |
| Llama 4 Maverick | 2025 | 400 billion | 17B | MoE |
| gpt-oss-120b | 2025 | 117 billion | 5.1B | MoE |
| gpt-oss-20b | 2025 | 21 billion | 3.6B | MoE |
| Kimi K2 | 2025 | ~1 trillion | 32B | MoE |
| GPT-4, Claude, Gemini (frontier closed models) | 2023– | Undisclosed | Undisclosed | Reports and estimates vary widely |
Parameter counts for closed models are not officially published; figures circulating online are estimates. See best open source LLMs to run locally.
Total vs active parameters (mixture of experts)
In a mixture-of-experts model, each layer has many "expert" MLPs, and a router sends each token to only a few of them.
| Total parameters | Active parameters | |
|---|---|---|
| Determines | Memory needed to store the model | Compute and speed per token |
| DeepSeek-V3 example | 671B (must all be loaded) | 37B (used per token) |
This is why MoE models are fast for their size but still need lots of memory.
How much memory do parameters need?
| Precision | Bytes per parameter | 8B model | 70B model | 405B model |
|---|---|---|---|---|
| FP32 | 4 | 32 GB | 280 GB | 1.62 TB |
| BF16 / FP16 | 2 | 16 GB | 140 GB | 810 GB |
| FP8 / INT8 | 1 | 8 GB | 70 GB | 405 GB |
| 4-bit (Q4) | ~0.5–0.6 | ~5 GB | ~40 GB | ~230 GB |
Running a model also needs memory for the KV cache, and training needs roughly 16 bytes per parameter for weights, gradients and optimizer states. Use the VRAM calculator and see LLM quantization.
Parameters vs tokens vs hyperparameters vs settings
| Term | Meaning | Example |
|---|---|---|
| Parameters | Learned numbers inside the model | "70B parameters" |
| Training tokens | Amount of text the model learned from | "Trained on 15 trillion tokens" |
| Context window | How many tokens the model can read at once | "128K context"; see context windows |
| Hyperparameters | Choices made before training | Learning rate, number of layers, batch size |
| Inference settings | Controls when generating text | Temperature, top-p; see LLM temperature |
Confusingly, settings like temperature are sometimes called "parameters" in API documentation, but they are not learned weights.
Do more parameters mean a better model?
Generally, yes, if other things are equal. Scaling laws show that loss falls predictably as parameters, data and compute grow together. But:
- Data matters: DeepMind's Chinchilla (70B) outperformed the much larger Gopher (280B) by training on more tokens.
- Training methods matter: instruction tuning, reinforcement learning and reasoning training add capability without more parameters.
- Small models keep improving: today's 8B models often beat much older 70B+ models. See small language models.
- Speed and cost scale with (active) parameters, so bigger isn't always practical.
Frequently asked questions
What does 7B or 70B mean in AI models?
The number of parameters: 7 billion or 70 billion learned weights.
Are parameters the same as neurons?
No. Neurons are computational units; parameters are the weights and biases connecting and adjusting them. A model has many more parameters than neurons.
How many parameters does GPT-4 have?
OpenAI has not disclosed it. Widely repeated figures are unconfirmed estimates.
How much VRAM do I need per billion parameters?
About 2 GB in 16-bit, 1 GB in 8-bit and roughly 0.55–0.6 GB at 4-bit, plus extra for context.
What is the difference between parameters and tokens?
Parameters are what the model learned (its size); tokens are pieces of text it reads and writes. See What are tokens in AI?
Sources and further reading
- Brown et al., Language Models are Few-Shot Learners (GPT-3, 2020)
- Hoffmann et al., Training Compute-Optimal Large Language Models (Chinchilla, 2022)
- DeepSeek-AI, DeepSeek-V3 Technical Report (2024)
- Meta, The Llama 3 Herd of Models (2024)
- MIT Technology Review, What even is a parameter? (January 2026)
- IBM, What are LLM parameters?




Leave a Reply