What is Fine-Tuning?
Fine-tuning continues training a pretrained model on a smaller task-specific dataset so that its weights adapt to your format, tone, and domain conventions.
The plain definition
Fine-tuning starts from a model that already works and continues training it on your examples at a low learning rate. It is the most direct form of transfer learning, and it changes the weights — which is what distinguishes it from prompting, where the model is unchanged and merely instructed.
What fine-tuning is genuinely good at is behaviour: reliably producing a specific output structure, adopting a house style, using domain vocabulary correctly, or performing a narrow classification task with high consistency. What it is bad at is knowledge. Teaching a model new facts by fine-tuning is inefficient, hard to update, and impossible to cite. Facts belong in retrieval.
LoRA and why the economics changed
Full fine-tuning updates every weight, which requires memory for the weights, their gradients, and optimiser state — historically putting large models out of reach for most teams, and producing a complete model copy per task.
Parameter-efficient methods changed that. LoRA freezes the base model and trains a pair of small low-rank matrices injected alongside the original weights. The trainable parameter count drops by orders of magnitude, memory requirements collapse, and the resulting adapter is a small file. QLoRA goes further by holding the frozen base in quantised form, bringing sizeable models within reach of a single GPU.
The operational consequence is as important as the cost saving: you can serve many task-specific adapters against one shared base model, swapping them per request. That turns fine-tuning from a heavyweight commitment into something closer to configuration.
The decision, and how to not waste the effort
Work up the ladder rather than starting at the top. First try a careful prompt with a few examples — prompt engineering is free and instant. If the gap is missing knowledge, add retrieval. Only fine-tune when prompting plateaus on a behaviour you need and you have the data to teach it. Fine-tuning is justified when you need consistency prompting cannot deliver, when a smaller fine-tuned model can replace a larger general one and cut inference cost, or when you want to shorten prompts by baking instructions into weights.
Data quality dominates volume here to an unusual degree. A few hundred carefully curated, consistent examples routinely beat tens of thousands of noisy ones, because the model will faithfully learn any inconsistency in your labels. Every example should demonstrate exactly the behaviour you want, in exactly the format you want.
Two failure modes to plan for. Catastrophic forgetting — hard fine-tuning on a narrow set degrades general capability; mitigate with lower learning rates, fewer epochs, and mixing in some general data. And maintenance — a fine-tune is pinned to a base model version, so provider upgrades mean re-running the job. Keep the training data and pipeline reproducible, and keep an evaluation set that can tell you whether the new version is actually better.
- Behaviour, not knowledge — format, tone, and task structure — use retrieval for facts
- LoRA made it cheap — small adapters, one shared base, swappable per request
- Curation beats volume — hundreds of clean examples outperform thousands of noisy ones
- It is a maintained artefact — pinned to a base version; keep the pipeline reproducible
More on Fine-Tuning.
How many examples do I need to fine-tune a model?
Fewer than most people expect, provided they are consistent. For teaching an output format or a narrow classification behaviour, 200 to 1,000 high-quality examples is often enough with LoRA. Broader behavioural change may want several thousand. The signal to watch is your evaluation set: train on increasing subsets and stop when held-out performance flattens, because beyond that point you are paying for curation that buys nothing.
Can fine-tuning stop a model from hallucinating?
Not reliably, and it can make things worse. Fine-tuning on question-answer pairs teaches the model to produce confident answers in that shape, which raises fluency without adding any mechanism for verification — so it may hallucinate more assertively. Reducing hallucination requires grounding the model in retrieved sources and instructing it to decline when the context lacks the answer. Fine-tuning can help it follow that instruction more consistently, but the grounding does the real work.
Related terms.
Transfer Learning
Transfer learning takes a model already trained on a large general dataset and adapts it to a narrower task, so the new task needs…
ReadRetrieval-Augmented Generation
Retrieval-augmented generation fetches relevant passages from your own corpus at query time and supplies them to a language model …
ReadPrompt Engineering
Prompt engineering is the practice of designing the text supplied to a language model — instructions, examples, and context — so t…
ReadQuantisation
Quantisation reduces the numerical precision used to store a model's weights and activations, shrinking memory footprint and speed…
ReadNeed this built?
Applying this to a
real system?
We build and ship production machine learning. If fine-tuning is part of a problem you are working on, tell us about it.
Start the conversationor write to us at [email protected]