Fine-Tuning
A base model knows a little about everything. Fine-tuning is the short, focused course that gives it a job.
Last chapter left us with a raw next-token engine — a brilliant autocomplete that just rambles. Here's the surprisingly small step that turns it into something that actually answers you.
Out of pretraining you get a base model: it has read a huge slice of the internet and is astonishing at continuing text. But that's the only thing it knows how to do — continue. Ask it a question and it won't answer; it'll just predict more text that looks like your question, because on the web a question is usually followed by… more questions. Watch the difference for yourself:
Fine-Tuning Bench
Drag the slider · switch the course
Your instruction
Base model
trained only to continue text
Translate to French: "I'm so excited for the weekend." Translate to French: "The weather is lovely." Translate to German: "Good morning." Translate to Spanish: …
It never answers — it just predicts more text.
Fine-tuned model
Base behaviour — just autocompleting
Translate to French: "I'm so excited for the weekend." Translate to French: "The weather is lovely." Translate to German: "Good morning." Translate to Spanish: …
You taught it with examples like “Summarise this email.” → “Sure — here's the gist in two lines: …”
Drag the slider up. The same model goes from rambling to obeying— it didn't get smarter, it just learned the job. That's fine-tuning.
Start at 0 examples— the fine-tuned side is identical to the base model: pure rambling. Now drag the slider up. Around a dozen examples it “clicks” and starts obeying. Then switch the course from Helpful Assistant to Pirate or Haiku — same machine, different handful of examples, completely different behaviour.
From autocomplete to assistant
That second step is supervised fine-tuning: you keep training the base model, but now on a curated set of (instruction → ideal response) pairs written by humans. It's tiny compared to pretraining — thousands of examples, not trillions of words — which is exactly why it's called a finetune. You're not rebuilding the model; you're nudging a finished one toward a job.
Pretraining teaches the model language and facts. Fine-tuning teaches it behaviour and format — how to take an instruction and respond. It barely adds knowledge; it unlocks the knowledge that was already in there, in a shape you can talk to.
The same lever gives you specialists. Feed it medical Q&A and you get a clinical assistant; feed it your company's support tickets and you get a support bot. The Pirate and the Lawyer in the demo aren't a joke — they're the literal mechanism, just with a sillier dataset.
But fine-tuning only ever shows the model good answers. It never learns which of two perfectly good answers a human would actually prefer — shorter or longer, blunt or gentle, cautious or confident. Teaching it that preference is the next, stranger step: learning from feedback.
Feel like you get it?
Continue to “Learning from Feedback” →