A large language model (LLM) works by using hundreds of billions of numbers called "weights" to keep calculating the probability of the next token (a word fragment). This article works out how much storage, compute, electricity and money those weights turn into, using public records from Meta, DeepSeek and Google and estimates from the IEA and Epoch AI, with formulas you can use to estimate the numbers yourself.
Weights
Size = parameters × bytes per parameter
405 billion weights take about 810 GB at 16 bits. Training costs about "6 × parameters × training tokens" operations
Power
One query: 0.24 Wh to over 29 Wh
One training run: 1,287 MWh for GPT-3, and about 21,600 MWh for Llama 3.1 405B based on its GPU records
Money
Training compute costs millions to hundreds of millions of dollars
Frontier training costs grow several times a year, and the biggest costs are chips and staff, not electricity
Key points
- What weights are
- A set of numbers adjusted during training. Nobody sets them by hand. They come from practicing next-token prediction trillions of times.
- How much electricity
- The figure for one query varies more than 100-fold depending on who measured it, how, which model and how long the query is. Across society, data centres use about 1.5% of the world's electricity, and the IEA expects that to roughly double toward 2030.
- Development cost
- "Frontier training is a money fight" is broadly true. But public training records show that even models with similar total weights and training tokens can differ about 11-fold in both training compute and GPU hours because of their design (MoE), so money alone does not decide the outcome.
Original papers, model cards and public materials from the IEA, Epoch AI and Stanford HAI checked on November 14, 2026
Contents
- 1. How weights predict the next token
- 2. Putting numbers on the size of weights
- 3. Training and generation compute follow simple formulas
- 4. Power for one training run, calculated from public records
- 5. Power per query depends on who measured it and how
- 6. Power across society: data centres use about 1.5% of the world's electricity
- 7. Is development a money fight?
- 8. Money is not everything: the efficiency gap
- 9. The next walls are power and chips
- 10. Four things to check when you read power or cost figures
- Summary
- FAQ
1. How weights predict the next token
ChatGPT, Claude and Gemini all work the same basic way. They calculate the probability of each possible next token as a continuation of the text so far, pick one and append it, then repeat until the text is finished. OpenAI's GPT-4 technical report likewise describes GPT-4 as a Transformer-based model pre-trained to predict the next token in a document.
Predicting the next token accurately takes more than grammar. It also takes content such as geography, arithmetic and programming. Training this prediction on huge amounts of text builds something that looks like knowledge and reasoning into the weights. The part that decides which words in the context matter is the Transformer's attention mechanism. It is what lets the model tell whether "bank" means a financial institution or a riverbank from its relationship to the surrounding words.
Training has two stages. Pre-training has the model read huge amounts of text while its weights are nudged a little at a time. Post-training then uses methods such as reinforcement learning from human feedback (RLHF) to teach helpful and safe ways to answer. For an introduction to the basics, see What is an LLM. For adapting a model to a specific use after training, see What is fine-tuning. This article deals with what comes next: the quantities.
2. Putting numbers on the size of weights
Each weight is a single decimal number. A model's "parameter count" is the number of these values, and the storage they need is a simple multiplication.
Formula for weight size
Size (bytes) = parameter count × bytes per parameter
Each parameter takes 2 bytes at 16 bits, 1 byte at 8 bits and 0.5 bytes at 4 bits. Lowering the bit count is explained in What is quantization.
For models that publish their size, the numbers work out like this.
| Model (publisher) | Parameters | 16-bit | 8-bit | 4-bit |
|---|---|---|---|---|
| Llama 3.1 8BMeta | 8 billion | about 16 GB | about 8 GB | about 4 GB |
| Llama 3.1 70BMeta | 70 billion | about 140 GB | about 70 GB | about 35 GB |
| Llama 3.1 405BMeta | 405 billion | about 810 GB | about 405 GB | about 203 GB |
| DeepSeek-V3DeepSeek | 671 billion (37 billion used per token) | about 1.34 TB | about 671 GB | about 336 GB |
Parameter counts are from Meta's Llama 3 paper and the DeepSeek-V3 technical report. Sizes are estimates from the formula, and real files vary slightly with the storage format. Running a model also needs working memory beyond the weights (PC specs for running a local LLM).
DeepSeek-V3, the last row, uses a mixture-of-experts (MoE) design. It has 671 billion weights, but only 37 billion of them are used to produce each token. Storage and loading depend on the full size, while compute per token depends only on the part in use, so the computation is light for the model's size.
The top models behind ChatGPT, Claude and Gemini, on the other hand, do not publish their parameter counts. The GPT-4 technical report states that it gives no details about the architecture (including model size), hardware or training compute. The size of frontier models can only be discussed through outside estimates. Keeping that in mind stops you taking online claims of "X trillion parameters" at face value.
3. Training and generation compute follow simple formulas
Once you know the number of weights, you can roughly work out the number of calculations too. The 2020 paper by Kaplan et al. at OpenAI estimates Transformer compute as follows.
Compute formulas (FLOP = number of floating-point operations)
Generation: per token ≈ 2 × parameters
Training: ≈ 6 × parameters × training tokens
Training adds the backward pass, which corrects the weights from the error, on top of the forward pass that produces the answer. The backward pass takes about twice as much compute, so training costs 6x per token. For MoE models, use the parameters active per token.
Here is how the formula compares with real records.
| Model | Calculated with the formula | Published figure |
|---|---|---|
| GPT-3175 billion × 300 billion tokens | 6 × 175 billion × 300 billion ≈ 3.15×10²³ | 3.14×10²³ (table in Patterson et al.) |
| Llama 3.1 405B405 billion × 15.6 trillion tokens | 6 × 405 billion × 15.6 trillion ≈ 3.8×10²⁵ | 3.8×10²⁵ (Meta's paper) |
| DeepSeek-V337 billion (active) × 14.8 trillion tokens | 6 × 37 billion × 14.8 trillion ≈ 3.3×10²⁴ | No compute figure given (GPU hours in section 7) |
| GPT-4 | Cannot be calculated because the parameter count is not public | About 2.1×10²⁵ (Epoch AI estimate, explicitly labelled low precision) |
The two published cases match the formula closely. The formula also tells you one more thing. Divide training compute (6×N×D) by the compute for one generated token (2×N) and you get 3×D. In other words, one training run takes as much compute as having that model generate about three times as many tokens as it was trained on. For Llama 3.1 405B, that is about 47 trillion tokens. For a model used every day around the world, total generation reaching that amount is only a matter of time. The more a model is used, the more its power use shifts from training to generation (inference).
4. Power for one training run, calculated from public records
Compute translates directly into power. You can estimate training energy by multiplying the number of GPUs, the time and the power per GPU.
Formula for training energy
Energy (kWh) ≈ GPU hours (GPUs × hours) × power per GPU (kW)
Power for cooling and other data centre needs is added on top through the data centre's efficiency (PUE). Check whether a published figure includes it.
| Model | Underlying record | Energy | CO2 |
|---|---|---|---|
| GPT-3 | Estimate by Google researchers (Patterson et al., 2021) | 1,287 MWh | 552 tonnes |
| Llama 3.1 405B | Meta's model card: 30.84 million H100 GPU hours at 700 W per GPU (MODEL_CARD) | About 21,600 MWh (calculated with the formula) | 8,930 tonnes (calculated from the local grid's energy mix) |
| All three Llama 3.1 sizes combined | Same source: 39.3 million GPU hours | About 27,500 MWh (calculated with the formula) | 11,390 tonnes (same basis) |
Meta describes the 700 W as the peak power capacity per GPU device used, adjusted for power usage efficiency. Actual consumption can be lower, so the energy above is an estimate close to the upper limit.
From GPT-3 to Llama 3.1 405B, compute grew about 120-fold (3.14×10²³ → 3.8×10²⁵), but energy grew only about 17-fold. Newer GPU generations do more computation with the same electricity. Note, though, that the GPT-3 figure comes from actual power use, while the Llama 3.1 405B figure uses 700 W, close to the per-GPU maximum, so the real gap may be even smaller. Even so, a single frontier training run is now on the scale of tens of thousands of MWh.
5. Power per query depends on who measured it and how
Figures for "watt-hours per query" are widely quoted, but the methods behind them differ completely depending on the source. Read company measurements and outside estimates separately.
| Figure | What it covers | Source | Method |
|---|---|---|---|
| 0.24 Wh | A text prompt in the Gemini app (median) | Google (August 2025, the company's own paper) | Measured in its own data centres, including idle machines and data centre overhead |
| About 0.34 Wh | A ChatGPT query (average) | Blog by OpenAI CEO Sam Altman (June 2025) | The company's own figure; the method has not been published |
| 0.42 Wh | A short prompt to GPT-4o (100 input and 300 output tokens) | Jegham et al. (third party, 2025) | Estimate calculated from public API response speeds and inferred hardware configurations |
| Over 29 Wh | A long prompt to DeepSeek-R1 (10,000 input and 1,500 output tokens) | Same | Same method; more than 65x Llama 3.1 8B (0.443 Wh), the lowest on long prompts |
Even for "one query", giving a long prompt to a model that thinks at length uses about 70 times as much as a short GPT-4o prompt (0.42 Wh) in the same paper. What drives electricity use is less the number of queries than which model you use and how much you have it read and think. Applied to your own use: if you ask 50 short questions a day, 0.24–0.42 Wh × 50 comes to about 12–21 Wh a day, roughly the same as running a 10 W LED bulb for one to two hours. A single long prompt to a reasoning model, on the other hand, can exceed 29 Wh. Sending light tasks to lighter models helps with both electricity and price (for the cost side, see How to cut AI token costs).
Each query is small, but the numbers add up. Jegham et al. estimate that at about 770 billion queries in 2025, a figure that allows for growth in use (80% short and 20% medium-length queries), the total would exceed the annual electricity of about 35,000 US homes.
6. Power across society: data centres use about 1.5% of the world's electricity
According to the International Energy Agency's Key Questions on Energy and AI (April 2026), global data centre electricity demand grew 17% in 2025 and accounted for about 1.5% of the world's electricity demand. AI-focused data centres grew 50% in the same year. In the IEA's central projection, data centre electricity roughly doubles from 485 TWh in 2025 to about 950 TWh in 2030, and the AI-focused share roughly triples. The same report also says that power consumption per AI task is falling rapidly. Each task is becoming more efficient, but the number of tasks is growing even faster.
The scale is different at the level of a single building too. In the Uptime Institute's 2024 survey, the average data centre rack (a shelf of servers) draws less than 8 kW. An NVIDIA DGX GB200 rack draws about 120 kW (NVIDIA documentation). In Epoch AI's tracking, the largest AI data centres today are approaching 1 GW (one million kW) of power capacity.
7. Is development a money fight?
The short answer: for frontier training, it is broadly true. Here are the numbers.
| Figure | What it is | Source |
|---|---|---|
| About $78 million | Cost of the compute used to train GPT-4 (estimate) | Stanford HAI "AI Index 2024" |
| About $191 million | Compute cost of Google's Gemini Ultra (estimate) | Same |
| 3.5x a year | Growth in frontier language model training costs since 2020. Compute grows 5x a year | Epoch AI tracking |
| Over $1 billion by 2027 | Cost of the largest single training run (if the 2.4x-a-year trend continues) | Cottier et al. (Epoch AI) |
| About $38 billion | Typical up-front cost of building one 1 GW AI data centre | Epoch AI tracking |
The Cottier et al. paper also breaks down the costs of overall development, including experiments and staff. The biggest items are AI accelerator chips and staff, each in the tens of millions of dollars. Other server components make up 15–22% and the interconnect linking GPUs 9–13%, while energy is only 2–6%. Power is a big issue for society and the grid, but in the developer's budget the largest expenses are chips and people.
The training-cost figures in the table above also cover only "the one successful training run". The trial and error before it, data preparation and the infrastructure for inference all cost extra. There is a wall of money that good ideas or clever methods alone cannot get past, and only a handful of companies that can raise huge sums, such as OpenAI, Google, Anthropic, Meta and xAI, compete at the frontier.
8. Money is not everything: the efficiency gap
The same money does not buy the same result, though. Put public training records side by side and the efficiency gap becomes visible.
| Model | GPU hours used for training | Cost stated by the publisher | What it excludes |
|---|---|---|---|
| Llama 3.1 405B | 30.84 million H100 hours | Not stated | — |
| DeepSeek-V3 | 2.788 million H800 hours (2.664 million pre-training, 119,000 context extension, 5,000 post-training) | $5.576 million (assuming a rental price of $2 per GPU hour) | Prior research and ablation experiments on architectures, algorithms or data |
Sources: the Llama 3.1 model card and the DeepSeek-V3 technical report. The H800 is an export version of the H100, so the GPU types differ slightly.
DeepSeek-V3 is close to Llama 3.1 405B in scale, in both total weights (671 billion vs 405 billion) and training tokens (14.8 trillion vs 15.6 trillion), yet needed about one-eleventh of the training compute and GPU hours. The difference comes from the MoE design in section 2: only 37 billion weights are used per token, so by the formula in section 3 its compute stays at about 3.3×10²⁴ (the GPU types, H800 and H100, also differ slightly). But as DeepSeek itself writes, the $5.576 million covers only the final training run and leaves out the earlier research costs. Reading it as "a frontier model was built for a few million dollars" is a mistake.
Efficiency gains reach the user side too. Google reports that the energy per Gemini app prompt fell 33-fold and its carbon footprint 44-fold over 12 months (Google's paper above). Distillation, which transfers a large model's knowledge to a smaller one, is also widely used to build cheaper, faster models. Pushing the top of performance is a contest of money; delivering good-enough performance cheaply is a contest of efficiency. Seeing it as these two layers is closer to reality.
9. The next walls are power and chips
Piling up money does not let you scale forever either. Epoch AI's analysis (August 2024) finds that training runs of 2×10²⁹ FLOP will likely be feasible by 2030, about 10,000 times the GPT-4 estimate. It examines four constraints (power, chip manufacturing capacity, data scarcity and latency) and concludes that power is likely to bind first, followed by chip manufacturing capacity.
As section 6 showed, the largest data centres are already approaching 1 GW. The bottleneck is shifting from "the budget to buy GPUs" to whether one site can keep receiving gigawatts of power, and whether enough chips can be made.
10. Four things to check when you read power or cost figures
When you see numbers about "AI's electricity" or "training costs" in the news or on social media, checking these four points helps you avoid comparisons that are off by orders of magnitude.
- 1
Who produced the figure A company's own measurement or an outside estimate? Company figures have consistent conditions but cannot be verified from outside. Third-party estimates are easier to compare but rest on more assumptions.
- 2
What it includes Only the GPUs, or the whole data centre including cooling (PUE)? For costs: compute only, or staff, research and failed attempts too?
- 3
One of what A short question, a long document, or a reasoning model that thinks at length? As section 5 showed, the same "one query" can vary more than 65-fold even within one paper.
- 4
Which model and hardware, and when In one case the energy per query fell 33-fold in a year. Do not use an old measurement as today's figure.
Summary
An LLM is a system that uses hundreds of billions of weights to keep calculating the probability of the next token. Weight size is roughly "parameters × bytes", training compute "6 × parameters × training tokens" and generation "2 × parameters per token", and these match the published records for GPT-3 and Llama 3.1 405B.
On power, one training run used 1,287 MWh for GPT-3 and about 21,600 MWh for Llama 3.1 405B (calculated from its GPU records). One query is 0.24 Wh in Google's measurement, and a third-party estimate puts a long prompt to a reasoning model at over 29 Wh. Across society, data centres use about 1.5% of the world's electricity, and the IEA expects that to roughly double by 2030.
On cost, "a money fight" is broadly true for frontier training (the compute for GPT-4 is estimated at about $78 million, and training costs grow several times a year). But the biggest costs are chips and staff, with energy at 2–6%, and public records show that models with similar total weights and training tokens can differ about 11-fold in training compute and GPU hours because of their design (MoE). When you see a figure, check who measured it, what it includes, one of what, and when.
FAQ
Q. Are models with more parameters (weights) smarter?
A. With the same design, bigger models tend to do better, but parameter count alone does not decide it. The amount and quality of training text, post-training and designs such as MoE change performance a lot. Most top models do not publish their parameter counts, so comparing them on published evaluations is more reliable (What is an LLM).
Q. Which uses more electricity, training or queries (inference)?
A. Per occurrence, training is far larger: a frontier training run is on the scale of tens of thousands of MWh. But as the formula in section 3 shows, one training run equals only about three times the training tokens in generation, so for a model used heavily every day, total inference overtakes it.
Q. Can I reduce electricity use through how I use AI?
A. Yes. A short question uses only about 0.24–0.42 Wh, so what matters is the content more than the count. Save reasoning models and long-document reading for tasks that really need them, and send light tasks to lighter models. Your costs fall in the same direction.
Q. Can I build my own LLM?
A. Frontier scale is out of reach for individuals (the compute for one training run costs tens of millions of dollars or more). Training a small model or fine-tuning a publicly available one is possible for individuals. For most uses, calling an existing model through an API is enough.
Sources
- Scaling Laws for Neural Language Models (Kaplan et al., OpenAI, 2020)
- Carbon Emissions and Large Neural Network Training (Patterson et al., Google, 2021)
- GPT-4 Technical Report (OpenAI)
- The Llama 3 Herd of Models and the Llama 3.1 model card (Meta)
- DeepSeek-V3 Technical Report (DeepSeek)
- Measuring the environmental impact of delivering AI at Google Scale (Google, 2025)
- How Hungry is AI? (Jegham et al., 2025)
- Key Questions on Energy and AI (IEA, April 2026)
- Trends and Can AI scaling continue through 2030? (Epoch AI)
- The rising costs of training frontier AI models (Cottier et al., 2024)
- AI Index Report 2024 (Stanford HAI)