Pre-training
Initial training of the model from scratch on a massive text corpus. The model learns one task — predicting the next word — and in the process acquires language, facts, and logic.
What Happens
- Terabytes of text are gathered.
- The model reads them and predicts the next token.
- Each error corrects the weights through gradient.
- After billions of iterations, a raw base model is obtained.
Why It Is Expensive
- Thousands of GPU in data centers;
- Months of computation;
- Tens of millions of dollars.
Therefore, pre-training is only available to large laboratories.
Pre-training vs Post-training
| Pre-training | Post-training | |
|---|---|---|
| Start | From scratch | Ready base |
| Goal | Know language and world | Be useful and safe |
| Cost | Enormous | Moderate |