Stage 2 · Teens · Foundations

Training vs. Inference

The two very different phases of a model's life: learning, and being used.

Training is the (extremely expensive, one-time-ish) process of adjusting a model's billions (or trillions) of parameters so it gets better at predicting the next token across a massive dataset. This can take weeks and enormous compute clusters.

Inference is what happens every time you actually use the model — feeding in a prompt and generating output. The weights are frozen; no learning happens during inference (by default).

One Training Run vs. One Inference Call
Time
weeks–months
Hardware
thousands of GPUs
Weights
updated

Training fills a warehouse of GPUs for weeks. Inference is one frozen forward pass.

All lessons in Stage 2: How AI works