The Fine-Tuning Trap I Almost Fell Into
A few months ago I was building a small internal tool that generated code comments in a very specific house style. The comments had to follow a particular format, use specific terminology, and avoid a handful of words that our style guide banned. After about two hours of struggling with the results, I turned to a colleague and said the words that haunt many developers: "We probably just need to fine-tune it."
My colleague, who had actually shipped a fine-tuned model before, gave me a look I now recognize as the "please don't do this to yourself" look. He sat down with me for 20 minutes, we rewrote the system prompt, added three examples inline, and the model started producing exactly what we needed.
That's the fine-tuning trap. It looks like a training problem. It's almost never a training problem.
What Fine-Tuning Actually Is (And What It Costs)
Fine-tuning means taking a pre-trained model and continuing to train it on your own dataset to adjust its weights. When it works, it's genuinely powerful — the model's behavior changes at a fundamental level, not just at the prompt level.
But here's what most tutorials gloss over: the real cost isn't the compute bill (though that's real). It's everything else.
You need a high-quality labeled dataset — typically hundreds to thousands of examples for meaningful behavioral change. You need an evaluation pipeline so you can actually measure whether the fine-tuned model is better. You need a versioning strategy for your model weights. You need to repeat this entire process every time the base model is updated. And you need to maintain it indefinitely because fine-tuned models don't fix themselves when they drift.
The Hidden Tax
Fine-tuning isn't a one-time project. It's a recurring maintenance burden. Every base model update is a potential regression. Every new use case potentially needs a new fine-tune. You're signing up for a relationship, not a fix.
The Honest Checklist: Run Through This First
Before you spend a single hour on fine-tuning prep, work through every item on this list. I'm serious — go in order. Each step is cheaper and faster than the one after it.
1. Have you actually tried a detailed system prompt?
Not a one-liner. A real system prompt with explicit instructions, constraints, format requirements, and tone guidelines. Most "the model doesn't do what I want" problems evaporate when you spend 30 minutes writing a proper system prompt. If your system prompt is under 100 words and you're considering fine-tuning, you have not done this step yet.
# Before (vague)
You are a helpful code commenter. Write comments for the code.
# After (specific)
You are a code documentation assistant following our internal style guide.
Rules:
- Start every function comment with an action verb (Returns, Validates, Transforms)
- Never use the words "simply", "just", or "easy"
- Limit comments to 2 sentences maximum
- Use present tense, not future tense
Format: JSDoc style with @param and @returns tags2. Have you tried few-shot examples in the prompt?
Three to five examples of exactly what you want — input and ideal output — added directly to the system prompt or early in the conversation. Few-shot prompting is shockingly effective. It's essentially "here's what good looks like" without any training overhead. If the model still can't get it right with five clear examples, that's meaningful signal. If you haven't tried it, you don't have that signal yet.
3. Is the problem actually a knowledge gap — not a behavior gap?
There's a critical distinction here. If the model doesn't behave the way you want (tone, format, style, structure), that's a prompting problem. If the model doesn't know something (your internal product docs, your proprietary data, your codebase's conventions), that's a retrieval problem — and RAG almost certainly solves it better than fine-tuning.
Fine-tuning is bad at injecting facts. Models fine-tuned on factual data still hallucinate. RAG puts the actual source material in the context window where the model can read it. Use RAG for knowledge, prompting for behavior.
The Quick Diagnostic
Ask yourself: "If I pasted the missing information directly into the prompt, would the model behave correctly?" If yes — that's a retrieval problem, not a training problem. Build a RAG pipeline, not a fine-tune.
4. Have you tried a more capable base model?
Sometimes the answer is simply that you're using the wrong model for the task. Switching from a smaller model to a more capable one — or switching providers entirely — can get you 80% of the way there with zero fine-tuning overhead. It's worth a test before you commit to weeks of data collection.
5. Have you actually measured the problem with an eval?
This one trips people up. "The model isn't doing what I want" is not a measurable problem. "The model produces the correct output format on 43% of test cases" is a measurable problem. If you don't have an eval set, you have no way to know whether fine-tuning (or anything else) actually helped. Build the eval first. This is non-negotiable.
The Narrow Cases Where Fine-Tuning Is Worth It
Fine-tuning genuinely makes sense in a few situations. I want to be honest about these so this doesn't feel like I'm just saying "never fine-tune":
Latency and cost at scale: If you're making millions of API calls and you've proven that a smaller fine-tuned model matches the quality of a larger base model, you can save significant money and reduce latency. This is a valid production optimization — but notice that it requires you to have already proven quality with the larger model first.
Consistent format compliance: If you need the model to reliably produce a very specific output structure (not just sometimes, but every single time) and even with extensive prompting you're seeing 5-10% failures, fine-tuning on format compliance can help. But exhaust structured output features and JSON mode first.
Style that's too complex to describe in words: There are rare cases where the style you want is genuinely hard to articulate — a specific voice, a nuanced tone — and examples in a prompt aren't enough because the pattern is too subtle. This is where fine-tuning on style starts to earn its cost. These cases are genuinely rare.
On-device or offline requirements: If you need a small model running locally with no internet access, you may genuinely need to fine-tune a compact model. That's a deployment constraint, not a performance problem, and it's a real reason.
The Decision Tree in Plain English
Here's how I'd talk someone through the decision in a conversation:
# Step 1: Is this a knowledge problem or a behavior problem?
Knowledge problem → Build RAG, not a fine-tune
Behavior problem → Continue to Step 2
# Step 2: Have you tried a detailed system prompt + few-shot examples?
No → Do that first, seriously
Yes, still failing → Continue to Step 3
# Step 3: Do you have an eval set proving the problem is measurable?
No → Build the eval first
Yes, failure rate is documented → Continue to Step 4
# Step 4: Have you tried a more capable base model?
No → Try it
Yes, still failing at scale → Fine-tuning might genuinely helpWhat to Actually Do Right Now
If you're staring at a problem that feels like it needs fine-tuning, here's your action plan for the next 2 hours:
Spend the first 45 minutes rewriting your system prompt from scratch. Be exhaustively specific. Add every constraint, every format rule, every thing you don't want. Add five examples of ideal outputs directly in the prompt.
Spend the next 30 minutes asking yourself whether this is a knowledge gap. If the model is missing information that lives in documents you own, start researching RAG instead.
Spend the last 45 minutes building a small eval set — even 20-30 test cases is enough to start measuring. Run your new prompt against it. Document your baseline.
If after all that you're still seeing systematic failures that prompting and retrieval can't fix, and you have a real eval proving it — then you've earned the right to start the fine-tuning conversation. But in my experience, most people never get there because the problem is already solved before the 2 hours are up.
The One-Line Summary
Fine-tuning changes what a model knows how to do. Prompting changes what a model is asked to do. RAG changes what a model has access to know. Most problems are the second or third kind, not the first.
More tutorials in this category, or explore the full field guide.