#When to fine-tune and when not to
AddedFine-tuning means continuing to train a model on your own examples so its weights change: the behaviour you want becomes the model's default instead of something you ask for in every prompt. It's powerful and it's usually the last thing to try. The standard order, which you'll hear in any serious AI team: prompting first (a clear system prompt, examples, structured output), then retrieval if the model lacks knowledge (RAG), then fine-tuning if you still can't get the behaviour reliably, or need it cheaper or faster than a big model can give.
The mental model: prompting is giving instructions to a skilled contractor; fine-tuning is sending them on a training course. Instructions are instant, cheap to change and easy to inspect. A course takes time and money, has to be repeated when your needs change, and makes the contractor better at one kind of job, sometimes at the expense of others. Fine-tuning teaches behaviour, format and style well; it's a poor way to teach facts (they're baked in at training time, can't be cited, go stale, and the model can still hallucinate around them).
| Situation | Better choice | Why |
|---|---|---|
| The model doesn't know your product docs or today's data | RAG | Knowledge changes; retrieval is updatable and citable |
| Output format or tone is inconsistent | Better prompt, examples, structured outputs | Usually fixes it in minutes |
| A narrow, high-volume task (classification, extraction, routing) where a frontier model works but costs too much | Fine-tune (or distil into) a small model | A small tuned model can match a big one on one task at a fraction of the cost and latency |
| A consistent style or domain language that prompts can't hold over thousands of outputs | Fine-tune | Behaviour becomes the default instead of an instruction |
| Data can't leave your infrastructure | Fine-tune an open-weight model you host | You control the weights and the data |
| You have fewer than a few hundred good examples | Prompting with examples | Not enough signal to train on reliably |
| The task changes every month | Prompting or RAG | Every change means retraining and re-evaluating |
What fine-tuning costs beyond compute. A labelled dataset (often the hardest part: hundreds to thousands of high-quality examples), an eval set to prove it helped (Evals), the risk of catastrophic forgetting (getting worse at things you didn't train on), and ownership: you now have a model to version, serve, monitor and retrain when the base model is superseded. Hosted options exist (OpenAI's fine-tuning API offers supervised, DPO and reinforcement methods for some of its models; Anthropic's API documentation lists no fine-tuning endpoint for the Claude API as of December 2026), and open-weight models can be tuned with open tools on rented GPUs.
(a) A legal assistant must answer from the firm's 40,000 internal memos, updated daily. (b) A classifier labels 5 million support tickets a month into 30 categories; Opus 5.5 does it well but the bill is too high. (c) Product descriptions keep coming out in the wrong tone.
Show answer
(a) RAG, (b) fine-tune or distil a small model, (c) fix the prompt first.
- (a) is a knowledge problem with constantly changing data. Fine-tuning would bake in yesterday's memos and couldn't cite them; retrieval fetches the relevant memos per question, stays current with daily updates, and lets the answer quote its sources.
- (b) is a narrow, stable, high-volume task where a big model already shows the task is learnable. Label a sample with Opus 5.5 (or humans), fine-tune or distil a small model on it, and check on a held-out eval set that it matches. Cost and latency drop by orders of magnitude; the Batches API at half price is a quick win while you build it.
- (c) is a style instruction problem. A system prompt describing the tone with a reason, plus three or four example descriptions, will usually fix it in an afternoon. Fine-tune only if that fails at scale.
- The pattern: knowledge → retrieval; behaviour that prompts can hold → prompts; behaviour that must be cheap, fast or unshakeable at scale → fine-tuning.
A decision walkthrough on three real-world scenarios
The table above is the summary; in an interview or a design review you need to walk through a decision with numbers. This model runs three scenarios through the same questions in the same order: is it a knowledge problem, has prompting been tried properly, is there enough data, and do volume and cost justify owning a model? For the cost question it uses real Claude prices and stated assumptions about the self-hosted small model.
// USD per million tokens, Anthropic pricing page (December 2026).
const PRICE = { "claude-opus-5-5": { in: 4, out: 20 }, "claude-haiku-5-5": { in: 0.1, out: 0.5 } };
const monthlyApi = (s, model) => (s.requestsPerMonth * (s.inTokens * PRICE[model].in + s.outTokens * PRICE[model].out)) / 1e6;
const scenarios = [
{ name: "A. HR policy assistant", needsFreshKnowledge: true, promptingTried: false, labelledExamples: 0, requestsPerMonth: 20_000, inTokens: 3000, outTokens: 300, qualityGap: "answers miss recent policy changes" },
{ name: "B. Ticket router, 30 queues", needsFreshKnowledge: false, promptingTried: true, labelledExamples: 18_000, requestsPerMonth: 5_000_000, inTokens: 900, outTokens: 10, qualityGap: "Haiku 5.5 at 83% routing accuracy vs Opus 5.5 at 95% on the eval set" },
{ name: "C. Clinical-notes summariser", needsFreshKnowledge: false, promptingTried: true, labelledExamples: 2_400, requestsPerMonth: 60_000, inTokens: 2500, outTokens: 250, qualityGap: "style is right; data may not leave the hospital network" },
];
const selfHostedMonthly = 2 * 730 * 1.2; // ASSUMPTION: two small GPUs at $1.20/hour, always on, for a fine-tuned 8B model
for (const s of scenarios) {
const why = [];
let decision;
if (s.needsFreshKnowledge) { decision = "RAG, not fine-tuning"; why.push("the gap is missing, changing knowledge"); }
else if (!s.promptingTried) { decision = "improve the prompt first"; why.push("prompting hasn't been exhausted"); }
else if (s.labelledExamples < 500) { decision = "collect data before fine-tuning"; why.push(`only ${s.labelledExamples} labelled examples`); }
else {
const opus = monthlyApi(s, "claude-opus-5-5"), haiku = monthlyApi(s, "claude-haiku-5-5");
why.push(`Opus 5.5 would cost $${opus.toFixed(0)}/month, Haiku 5.5 $${haiku.toFixed(0)}/month, a self-hosted tuned 8B ~$${selfHostedMonthly.toFixed(0)}/month`);
if (/may not leave/.test(s.qualityGap)) { decision = "fine-tune an open-weight model you host (LoRA)"; why.push("the data constraint rules out hosted APIs"); }
else { decision = "fine-tune or distil a small model, keep Opus 5.5 for low-confidence cases"; why.push(`${s.labelledExamples.toLocaleString("en-GB")} labels; ${s.qualityGap}`); }
}
console.log(`${s.name}\n -> ${decision}\n because ${why.join("; ")}`);
}A. HR policy assistant
-> RAG, not fine-tuning
because the gap is missing, changing knowledge
B. Ticket router, 30 queues
-> fine-tune or distil a small model, keep Opus 5.5 for low-confidence cases
because Opus 5.5 would cost $19000/month, Haiku 5.5 $475/month, a self-hosted tuned 8B ~$1752/month; 18,000 labels; Haiku 5.5 at 83% routing accuracy vs Opus 5.5 at 95% on the eval set
C. Clinical-notes summariser
-> fine-tune an open-weight model you host (LoRA)
because Opus 5.5 would cost $900/month, Haiku 5.5 $23/month, a self-hosted tuned 8B ~$1752/month; the data constraint rules out hosted APIs- Each scenario records the facts you'd gather in a design review: is fresh knowledge needed, has prompting been tried properly, how many labelled examples exist, the traffic and token sizes, and the quality gap observed on an eval set.
- A. HR policy assistant: the gap is "misses recent policy changes", a knowledge problem with documents that change. The walkthrough stops at the first question: RAG over the policy documents, with citations. Fine-tuning would bake in last quarter's policies.
- B. Ticket router: knowledge isn't the issue and prompting has been tried. There are 18,000 labelled tickets (from historical routing decisions), 5 million requests a month, and a measured gap: Haiku 5.5 routes 83% correctly against Opus 5.5's 95%. The cost line shows Opus 5.5 at five million requests a month is a five-figure monthly bill. Haiku 5.5 is cheaper still, but its accuracy is the problem. Fine-tuning a small model on the labels (or distilling Opus 5.5's decisions) aims for Opus-level accuracy at a fraction of Opus's cost, with Opus 5.5 kept for the cases where the small model is unsure; if a tuned Haiku-class hosted option or a better prompt closes the gap, that's simpler still.
- C. Clinical-notes summariser: the style is already right with prompting; the blocker is that the data may not leave the hospital network. That rules out hosted APIs regardless of cost, so the path is an open-weight model fine-tuned with LoRA on the 2,400 reviewed examples and served on-premises.
- The order of questions matters more than the code: knowledge before behaviour, prompting before training, data before ambition, and cost and constraints last. The self-hosted cost is an assumption and labelled as one; replace it with a real quote and measured throughput (Serving models yourself).
Fine-tuned models fail in ways prompted models don't. Catastrophic forgetting: a model tuned hard on ticket routing gets worse at the general instructions your app also relies on, so evaluate the tuned model on the whole product surface, not only the new task. Silent staleness: the base model you tuned is superseded by a better one every few months, and your tuned version slowly falls behind what a new model does with a plain prompt; re-run the comparison on every major base-model release. Data drift: the categories, products or writing style in production move away from the training data, and accuracy decays without any code change; track accuracy on a weekly sample of human-labelled production traffic and retrain on a schedule.