Skip to content

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

  1. Terabytes of text are gathered.
  2. The model reads them and predicts the next token.
  3. Each error corrects the weights through gradient.
  4. 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

See Also

← All terms