What is pre-training?
The first and largest stage of training a language model: predicting the next token on a very large body of general text.
Where it is taught
Pre-training and fine-tuning. A language model is trained in stages. First on an enormous amount of general text, then on a much smaller amount chosen to shape how it behaves.
What the lesson leaves you with
- Pre-training on next-token prediction gives a base model with general knowledge.
- Fine-tuning continues gradient descent on a small, chosen dataset.
- Low-rank updates train two thin matrices instead of the full one.
Questions
- What is pre-training?
- The first and largest stage of training a language model: predicting the next token on a very large body of general text.
- Where is pre-training used in AI?
- A language model is trained in stages. First on an enormous amount of general text, then on a much smaller amount chosen to shape how it behaves.
- What is the key idea to remember about pre-training?
- Pre-training on next-token prediction gives a base model with general knowledge.
- Where can I learn pre-training step by step?
- In the lesson “Pre-training and fine-tuning” in Gradient’s course on the maths behind AI, with interactive diagrams and questions.