Pre-training
What is Pre-training?
In one sentence: Pre-training is the first, giant training stage where a model learns general knowledge from enormous amounts of data.
Before a model can chat or follow instructions, it needs to understand language and facts about the world. In pre-training, it reads huge piles of text, often trillions of words, and learns to predict what comes next. This stage takes the most time, data and money. Later stages, like fine-tuning, shape it into a useful assistant.
What does Pre-training look like?
A language model reading a big slice of the internet, books and code to learn how language works is pre-training.
Why does Pre-training matter?
Pre-training gives a model its basic knowledge, so it sets how smart the model can become.
Pre-training vs. Fine-tuning
Pre-training teaches broad language and world knowledge from scratch on trillions of tokens, while fine-tuning adapts an already pre-trained model to follow instructions or specialize in a domain.
| Dimension | Pre-training | Fine-tuning |
|---|---|---|
| Starting point | Randomly initialized weights | An existing pre-trained checkpoint |
| Data scale | Trillions of raw unlabeled tokens | Thousands to millions of curated examples |
| Typical cost | Millions of dollars and thousands of GPUs | Dollars to thousands of dollars on 1–8 GPUs |
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/pre-training/">Pre-training, explained simply</a> (The AI Math Dictionary)