What is fine-tuning?

Fine-tuning means further training an existing AI model on your own examples so it gets better at a specific task or style. It changes the model itself, unlike prompting or RAG, which only change what the model is shown.

You collect hundreds or thousands of example inputs with ideal outputs, run a training job, and get a customised version of the model.

When it's worth it

  • You need a consistent style, format or tone that prompting doesn't hold.
  • A narrow, high-volume task (classification, extraction, routing) where a small fine-tuned model can match a large one at a fraction of the cost and latency.
  • Specialised language the base model handles poorly.

When it isn't

  • You want the model to know your documents. Use RAG.
  • You haven't yet tried a better prompt with good examples. See prompt engineering.
  • You don't have evals. Without them you can't tell whether the fine-tune helped.

The costs people forget

Fine-tuning creates something you have to maintain: training data to curate, a model to re-train when the base model is updated, and a new thing to evaluate. Try prompting, then RAG, then fine-tuning, in that order.

The Canadian angle

Training data often contains personal information. Under Canadian privacy law you need a valid purpose and consent basis for that use, and should be able to explain it. See PIPEDA.

Articles that mention Fine-tuning

All 27 terms in the AI glossary →