Fine-tuning an LLM: when it is not the answer
By Abdul Asim ·
The short answer
Fine-tuning an LLM means training an existing model further on your own examples so it performs one task in a consistent way. It is the right tool when you need a stable behavior, such as a label, a format or a style, at high volume or on a smaller model. It is the wrong tool for teaching the model your facts, fixing a vague prompt, or adding knowledge that changes every month.
Most teams that ask me about fine-tuning need something else first: a better prompt, retrieval over their documents, or deterministic code. I fine-tune when those have been tried and one narrow job still fails.
What fine-tuning changes, and what it does not
Training on your examples moves the model's weights toward the patterns in those examples. If every example maps a log line to one of six labels, the model gets very good at producing one of those six labels. If every example is a support reply in your house style, it learns the style.
What it does not do well is store facts you can rely on. The model absorbs a blurred version of what it saw and will happily produce plausible details that were never in the data. If the goal is answering from your documents, retrieval is the better fit: see what retrieval-augmented generation is and the side-by-side in RAG vs fine-tuning.
When fine-tuning an LLM is not the answer
Skip fine-tuning when: - The facts change. Prices, policies, course catalogs and specs go stale inside the weights. Put them in an index. - You need citations. A tuned model cannot tell a reviewer which document it relied on. - You have not written a strong prompt yet. Many "the model can't do it" problems disappear with clear instructions and three good examples. - You have no eval set. Without one, you cannot tell whether training helped, hurt, or just changed the tone. - The rule is a rule. If the answer comes from a formula or a lookup table, code it.
The last point comes up more than people expect. For MavenIT's equipment-support quoting, the language model helps interpret requests and draft quotes, but prices come from defined rules, not the model, and cases without a good historical match go to a person. No amount of training would make a model's price guess as trustworthy as the pricing table it was guessing at.
When to fine-tune an LLM
Fine-tune when most of these hold: the task is narrow, the correct output is unambiguous, you can gather hundreds to thousands of clean labeled examples, the task will not change shape every quarter, and you have a reason to want a smaller or faster model.
My clearest example is a security labeling model. I fine-tuned Gemma 7B with QLoRA to flag prompt-injection and SQL-injection attempts, and it measured 96% accuracy, 96% precision and 98% recall while keeping the hardware footprint small. A large general model can spot many of these attacks with a careful prompt, but it would add cost and latency to every request. A small tuned classifier fits in front of the endpoints it protects. The broader defense around it is covered in the prompt injection guide.
The other good reason is ownership. On SLM-Portal, a fine-tuning platform I built, domain experts upload documents, generate a training dataset, tune a lightweight model and serve it through an OpenAI-compatible API with tenant isolation. The draw for those teams was running a small private model they control, rather than sending every request to a large hosted one.
LoRA fine tuning vs full fine-tuning
Full fine-tuning updates every weight in the model. It gives the most room to change behavior, and it needs the most GPU memory, the most data and a full copy of the model for every version you keep.
LoRA freezes the original weights and trains small low-rank matrices added to each layer. The authors report about 10,000 times fewer trainable parameters and about a third of the GPU memory compared with full fine-tuning of GPT-3 175B, with no added inference latency. QLoRA goes further by keeping the frozen base model in 4-bit precision while training the adapters, and its authors fine-tuned a 65B model on a single 48GB GPU.
| Question | LoRA or QLoRA | Full fine-tuning |
|---|---|---|
| GPU budget | A single GPU is often enough for 7B-class models | Multiple large GPUs for big models |
| What you store per version | A small adapter file | A full model copy |
| Swapping tasks | Load a different adapter on the same base | Deploy a different model |
| When I choose it | Default for classification, format and style tasks | Rarely, when adapters plateau and the data justifies it |
I default to LoRA or QLoRA. The adapter is small enough to version alongside the dataset that produced it, which makes rollbacks boring, and boring is what you want.
How I run a fine-tuning project
- Define the task as input, expected output and a pass rule. If two people disagree on the right label, fix the label definitions first.
- Build the eval set before the training set, and keep it separate. I hold it back so the model never sees it.
- Measure a baseline: a strong prompt on a capable model. This is the number the tuned model has to beat.
- Build the training data. Validate every example against a schema and drop duplicates and contradictions.
- Train a LoRA or QLoRA adapter on the smallest base model that could plausibly do the job.
- Evaluate on the held-out set, then on fresh real traffic, and compare against the baseline.
- Ship behind a version flag, log every prediction, and keep the previous version one switch away.
Step 4 is where the time goes. On a data labeling pipeline for security telemetry, I used GPT-4.1 and GPT-5 to draft labels that had to pass Pydantic validation, ran QA and consensus checks, and sent only low-confidence cases to human reviewers. That cut human review by about 70% and brought retrain cycles down from weeks to days. The model training was the quick part; trustworthy labels were the project.
Step 6 deserves its own discipline. The LLM evaluation guide covers how to set pass criteria and catch regressions between versions.
What goes wrong after training
- The eval set leaked. Near-duplicates of test items slipped into training, so scores look great and real traffic disagrees. Deduplicate across splits.
- The model got narrower. A tuned model can get worse at things outside its training data. Keep a few general tasks in the eval set if the model does more than one job.
- Labels drifted. The definition of a label changed in the business but not in the dataset. Version the labeling guide with the data.
- The base model moved on. A newer base model arrives, and your adapter does not transfer. Budget for a retrain and a full regression run.
- Nobody owns retraining. The model ships, the data ages, and accuracy decays quietly. Name the owner on day one.
Each of these is cheaper to prevent than to debug. Most of them come down to treating the dataset as a product with an owner and a version, not a one-off export.
Where to start
If your real goal is a system that answers from your company's documents, start with retrieval, not training. That is what my 100 Document RAG MVP delivers: ingestion, retrieval, cited answers and an eval set. If a narrow step inside it still fails after that, we will have the data and the baseline to decide whether fine-tuning is worth it.
