“Fine-tuning” is not one single recipe. This chapter maps the main approaches so you can name what you are doing and why.
| Approach | Plain-English idea |
|---|---|
| Unsupervised fine-tuning | Continue training on domain text without instruction labels (domain language soak) |
| Supervised fine-tuning (SFT) | Train on input → desired output pairs |
| Safety / alignment fine-tuning | Extra training so the model follows policies and preferred behavior |
| Full fine-tuning | Almost every weight can update |
| PEFT | Train only a small part (adapters, LoRA, soft prompts, …) |
Feed lots of domain text (legal corpus, codebase, medical notes) so the model absorbs domain language. There may be no “instruction → answer” labels. Useful for domain familiarity; not the same as teaching a chat format.
The data is just raw text, with no question attached:
The insured party shall indemnify the underwriter against any
loss arising from misrepresentation of material fact...
After enough of this, the model stops being surprised by words like indemnify and underwriter, and predicts legal phrasing more naturally. What it has not learned is how to answer your questions — that needs the next approach.
You provide clear examples: given this input, produce that output. This is the workhorse for task adaptation and instruction-style models (next chapter goes deeper).
Here the data always comes in pairs:
{"input": "Customer says the parcel never arrived. Draft a reply.",
"output": "Hi Sam, I'm sorry your parcel hasn't arrived..."}
The model is graded on how close its answer is to the approved one, so it learns the task, not just the vocabulary.
After (or alongside) capability training, you further shape the model so it is more helpful, honest, and policy-compliant. Methods vary (preference data, RL-style loops, and related recipes). For now, remember the goal: safer, more aligned behavior. Lesson 3.5 goes deep on RLHF and DPO.
Every (or almost every) weight can move.
Update only a small number of parameters (or add tiny modules / soft prompts).
PEFT families you will meet later in Module 3:
| Family | Idea in one line |
|---|---|
| Additive | Add small modules (adapters) |
| Selective | Train only some existing weights |
| Re-parameterization | Cheap update forms (LoRA / QLoRA) |
| Soft prompting | Learn virtual prompt tokens |
Use PEFT when you want most of the benefit of adaptation without paying full fine-tune cost.
| Your situation | Sensible approach |
|---|---|
| The model does not know your domain's language | Unsupervised / continued pretraining |
| You have labelled input→output examples | SFT |
| The model is capable but occasionally unsafe or unhelpful | Alignment |
| You have lots of data, budget, and a big behaviour change | Full fine-tuning |
| You have modest data and want low cost and easy rollback | PEFT |
Most teams in practice land on SFT with PEFT — enough to change behaviour, cheap enough to repeat when the requirements change.
Fine-tuning comes in flavors — unsupervised, supervised, alignment, full, or PEFT — pick by data type, cost, and how much of the model must change.