Module 5 · Where the weights come from

What a training run actually costs

In this lesson

  • 8 min read
  • 5 reading sections
  • Knowledge check
  • Lesson 6 of 10 in this chapter

This chapter’s goalExplain what each training stage optimises and what it cannot fix, estimate the compute cost of a training run from parameter and token counts, and choose between prompting, retrieval and fine-tuning by what each one actually changes.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
How much serving it takes to match the training runPretraining corpus15Output needed to equalthat compute45One year at 10 billiontokens a day3.6One year at 120 billiontokens a day43.8trillions of tokensTraining costs about six operations per parameter per token and generating costs about two, so theserving compute overtakes the training compute after three times as many tokens as the model wastrained on: 45 trillion here. A product doing ten billion tokens a day takes twelve years to getthere; one doing a hundred and twenty billion a day takes one.
Training costs about six operations per parameter per token and generating costs about two, so the serving compute overtakes the training compute after three times as many tokens as the model was trained on: 45 trillion here. A product doing ten billion tokens a day takes twelve years to get there; one doing a hundred and twenty billion a day takes one.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 6Free · no account needed
Lesson steps

The arithmetic, and why it is worth doing

Training costs are quoted as impressive numbers with no working. You can do the working yourself, and the result changes how you read announcements.

Training compute ≈ 6 × N × D, where N is parameters and D is training tokens. The 6 breaks down as roughly 2 operations per parameter for the forward pass and 4 for the backward pass.

Take an 8B model on 15 trillion tokens:

Text
6 × 8e9 × 15e12 = 7.2e23 floating-point operations

Now convert to time. A modern accelerator might deliver a few hundred teraflops of sustained bf16 throughput on a real workload: well below its headline peak, since utilisation of 35 to 50 per cent is considered good. At 400 teraflops sustained:

Text
7.2e23 / 4e14 = 1.8e9 seconds = about 500,000 accelerator-hours

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the AI, Actually Explained exam.

Stuck on something?Ask Anjali, your AI tutor

How to cite: Addaly (2026) ‘What a training run actually costs’, in How a Language Model Actually Works. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/how-llms-work/what-training-costs (Accessed: 29 November 2026).