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 › Fine-tuning

What is fine-tuning?

Continuing to train a pre-trained model on a smaller dataset chosen for a purpose, starting from the weights it already has.

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 fine-tuning?
Continuing to train a pre-trained model on a smaller dataset chosen for a purpose, starting from the weights it already has.
Where is fine-tuning 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 fine-tuning?
Pre-training on next-token prediction gives a base model with general knowledge.
Where can I learn fine-tuning 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
  • Hallucination
  • Pre-training
  • Prompt
  • Retrieval