Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Glossary › Pre-training

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.
Open the lesson

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.

Related terms

  • Context window
  • Fine-tuning
  • Hallucination
  • Prompt
  • Retrieval