Learn AI Math

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.

DimensionPre-trainingFine-tuning
Starting pointRandomly initialized weightsAn existing pre-trained checkpoint
Data scaleTrillions of raw unlabeled tokensThousands to millions of curated examples
Typical costMillions of dollars and thousands of GPUsDollars 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?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.