Training a large model is not a single process. It is a sequence of distinct stages, run in order over a period of months, and each one is responsible for a different part of what you eventually experience. Almost everything people find puzzling about model behaviour becomes clearer once you know which stage produced it.
What happens before training starts?
Data collection and filtering, which takes longer than most people assume and matters more than most people assume. Text is gathered from web crawls, books, code repositories and licensed collections, then deduplicated, stripped of boilerplate, filtered for quality and scored for usefulness.
Every decision here has consequences that survive to the finished product. If a subject is thinly covered or filtered out, the model will be weak on it, and no amount of clever prompting will recover material that was never there.
What is pre-training?
The long, expensive stage where the model learns language. Text is fed through with parts hidden, the model predicts what is missing, and every wrong prediction is used to nudge its parameters very slightly in a better direction. This happens billions of times.
Nobody labels anything. The correct answer is simply the text that was actually there, which is why this approach is called self-supervised and why it could be applied at internet scale. What emerges is a model with broad knowledge and no idea how to behave: it will happily continue your question with more questions rather than answering it.
How does a model learn from its mistakes?
Through gradient descent, which is less mysterious than the name suggests. After a prediction, the difference between what the model produced and what was correct is measured. That error is traced backwards through every layer to work out how much each parameter contributed, and each one is adjusted a tiny amount to reduce it.
One adjustment changes almost nothing. Billions of them, across trillions of tokens, produce a system that has absorbed the statistical structure of written language. There is no moment where anything is understood; there is only a very long descent towards fewer errors.
What turns a raw model into an assistant?
Post-training, which has two main parts:
- Instruction tuning. The model is trained on examples of requests paired with good responses, teaching it that a question should be answered rather than continued.
- Reinforcement learning from human feedback. People compare alternative answers and pick the better one. Those preferences train a reward model, and the main model is then optimised to score well against it.
This stage is where helpfulness, tone, refusals and formatting habits come from. Two models trained on similar data can feel completely different because their post-training differed, and this is where most of the personality you notice actually lives.
Why does post-training create its own problems?
Because it optimises for what people approved of, and people approve of answers that sound confident, agreeable and complete. The result is a measurable tendency to agree with the user, to produce an answer rather than admit ignorance, and to write in the polished register that human raters rewarded.
Companies now spend considerable effort countering these side effects, which is why newer models push back more readily than the generation before them.
Where does testing fit?
Throughout, and after. Models are evaluated against benchmark sets, tested by red teams looking for harmful outputs, and often released to a limited group before general availability. Evaluation is genuinely difficult, because a benchmark that appears anywhere online may have leaked into training data, and a model that has seen the answers scores well without being better.
Does a model keep training while you use it?
No. Once training finishes, the parameters are fixed. Conversations do not update the model, corrections do not persist, and what looks like memory is a separate system that stores notes and inserts them into later prompts.
Improvements arrive as new versions, trained separately and released as a replacement. This is why a model has a knowledge cutoff, and why the same question can get a different answer after an update you were never told about.