Skip to content
StackDecode
LLM Library
TrainingAnimated walkthrough

Scaling Laws

Performance improves predictably with more parameters, data and compute.

The idea

Loss falls as a smooth power law in model size, data and compute. Chinchilla showed that for a fixed compute budget, size and data should grow together, roughly 20 tokens per parameter.

Watch it work

The steps light up one at a time. Use the controls to pause or step through.

  1. 1Train models at several sizes
  2. 2Plot loss against compute
  3. 3Fit the curve
  4. 4Choose size and data to fit the budget
1/4

Step by step

  1. 1Train models at several sizes
  2. 2Plot loss against compute
  3. 3Fit the curve
  4. 4Choose size and data to fit the budget

Where it is used

Planning training runs.

Watch out for

Many recent models train far past the compute-optimal point because a smaller model is cheaper to serve.