Definition
Fine-tuning
Also called: model fine-tuning, finetuning, supervised fine-tuning (SFT)
What Fine-tuning means in practice
“Fine” signals small adjustments. The expensive part, pretraining on huge amounts of general data, is already done. Fine-tuning nudges that model with hundreds or thousands of targeted examples, such as questions paired with ideal answers.
You meet the term in two settings. AI labs fine-tune base models to follow instructions before release. Businesses and developers fine-tune models for narrower jobs, such as classifying tickets, matching a house style or producing a fixed output format.
One nuance: fine-tuning is better at teaching behaviour and format than at adding facts. For knowledge that changes, retrieval (RAG) is usually the better fit. Lightweight methods such as LoRA train only a small add-on set of weights, which makes fine-tuning far cheaper.
Example
Fine-tuning a model on 2,000 labelled support tickets so it always returns the right category in a strict JSON format.
Used in a sentence: Before we fine-tune anything, let’s see how far a better system prompt gets us.
Often confused with
- RAG
- RAG gives the model information at question time without changing it. Fine-tuning changes the model itself through training.
- System prompt
- A system prompt shapes behaviour through instructions and can be edited instantly. Fine-tuning bakes behaviour into the model and needs a new training run to change.
- Pretraining
- Pretraining builds a model’s general abilities from scratch on enormous datasets. Fine-tuning is the much smaller follow-up step.
Full guide
What is fine-tuning? →
How it works, examples, and common questions, explained in plain English.
Common questions
What does SFT mean?
SFT stands for supervised fine-tuning: training a model on examples that pair an input with the desired output. It is the most common form of fine-tuning and is often followed by preference-based methods such as RLHF.
What does RLHF mean?
RLHF stands for reinforcement learning from human feedback. People compare model answers, those preferences train a scoring model, and the language model is tuned to produce higher-scoring answers. It is a kind of fine-tuning used to make chat models more helpful.
Sources and further reading
Read more
- RAG vs fine-tuning
RAG (retrieval-augmented generation) gives a model new information at question time by searching your documents and pasting the relevant passages into the prompt. Fine-tuning changes the model itself by training it further on example inputs and outputs. Use RAG to change what the model knows; use fine-tuning to change how it behaves.
- Prompt vs context engineering
Prompt engineering is the craft of wording instructions so a model understands the task. Context engineering is the wider job of deciding everything the model sees on each call: system prompt, retrieved documents, tool definitions and results, memory, examples, and conversation history, all within a limited context window. Prompt engineering is one part of context engineering.
- What is a system prompt?
A system prompt is a set of instructions given to an AI model before the conversation starts, telling it who it is, what it should do and how it should behave. Users usually never see it. It sets the role, tone, rules and background knowledge, while user prompts are the individual questions or requests that follow.