Log inStart free
LESSON 11.06 · 5 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW

Scaling laws

Watch loss fall with model size and tokens, and find the best split of compute.


Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 2 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 11.06 · SCALING BAYN 2.9B · D 58B · C 10²¹ FLOPS
01
Stage 1 of 5 · Training tokens
A model with 2.9B parameters reads 58B training tokens. Each token costs about 6 FLOPs per parameter.
Explain it simply

The dot is one training run, with 2.9 billion parameters and 58 billion tokens. Each token costs 2 FLOPs per parameter going forward and 4 going back, so 6 in all. Below, the loss falls as the run reads more tokens. Then it flattens, because the model is too small to learn more.

A plane of model size against training tokens, both on log scales. One run sits at 2.9B parameters and 58B tokens. Below it, the loss of that model falls with more tokens and flattens near 2.06.

tokens Dparameters N, budgetlossbest run
100M1B10B100B1T10T100T10M100M1B10B100B1Tparameters Ntraining tokens Dlossrun2.03.04.0E + size term = 2.06E 1.82size 0.25data 0.24loss 2.306training tokensC ≈ 6 · N · D = 6 × 2.9B × 58B = 10²¹ FLOPs100M1B10B100B1T10T100T10M100M1B10B100B1Tparameters Ntraining tokens Dlossrun2.03.04.0E + size term = 2.06E 1.82size 0.25data 0.24loss 2.306training tokensC ≈ 6 · N · D = 6 × 2.9B × 58B = 10²¹ FLOPs
Toy: the Chinchilla loss law (Epoch AI 2024 fit), not trained here · 3 budgets
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
C≈6 N D\sy{c}{param}{C} \approx 6\,\sy{n}{param}{N}\,\sy{d}{data}{D}
C≈6×2.89×109×5.77×1010=1021 FLOPsC \approx 6 \times 2.89\times10^{9} \times 5.77\times10^{10} = 10^{21}\ \text{FLOPs}

Compute is 6 FLOPs per parameter per training token.

Common mix-ups

MYTHFor a fixed budget, a bigger model always trains better.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01If the budget grows 100 times, does the best model grow about 100 times or about 10 times?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
  • 4 more stages and 2 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.