Language models

What is fine-tuning?

In short

Fine-tuning is extra training of an existing AI model on your own examples, so it gets better at a specific task, style or format.

A general model already knows language. Fine-tuning shows it hundreds or thousands of examples of exactly what you want, adjusting it slightly. It is good for teaching style and format; for teaching facts that change, RAG is usually a better choice.

Mini course

3 short lessons, about 2 minutes in total

  1. Teaching a model new habits
  2. When it is worth it
  3. Try the cheaper options first

Lesson 1

Teaching a model new habits

A foundation model knows a lot in general. Fine-tuning gives it extra training on hundreds or thousands of your own examples: inputs paired with the outputs you want. The model adjusts its parameters to match, and from then on produces that style or behavior without long instructions.

Fine-tuning
Tailored model
Fine-tuning trains an existing model further on your own examples, so it learns your style or task without starting from scratch

Tap a box to open that concept

It changes how the model behaves more than what it knows.

Lesson 2

When it is worth it

Fine-tuning fits when you need a very consistent format or tone, a narrow task done at huge volume where a smaller tuned model can replace a large one, or behavior that is hard to describe in a prompt. It is less suited to adding facts that change, such as prices or policies, because the model would need retraining every time.

  1. Customers find youHow customers and AI tools find the companySEOGEOGoogle AI Overviews
  2. AI in daily workTools staff and customers useChatbotAI copilotVoice AI
  3. Building blocksHow AI connects to data and systemsRAG (retrieval-augmented generation)AI agentMCP (Model Context Protocol)
  4. AI modelsThe models that understand and createFine-tuningLarge language model (LLM)Generative AIMachine learning
  5. DataCompany data, gathered and cleanedData warehouseETLData quality
  6. InfrastructureCloud, networks and systems underneathCloud computingDatabaseAPI key
Trust and rulesSecurity, law and control in every layerGDPR and AIEU AI ActAI guardrails
Where Fine-tuning sits in a company's AI setup

For company knowledge, RAG is usually the better tool.

Lesson 3

Try the cheaper options first

Before fine-tuning, try a clear system prompt, a few good examples in the prompt, and RAG for knowledge. These are faster to change and often good enough. If you do fine-tune, build an eval set first, so you can prove the tuned model is actually better.

RAG changes what a model knows; fine-tuning changes how it behaves

RAGFine-tuning
Gives the model facts to look upTrains the model on many examples
Update by adding a documentUpdate by training again
Best for facts that change, such as prices and policiesBest for a fixed style or a task done thousands of times

Keep your training examples: when a new base model is released, you may want to tune it too.

An everyday example

A support team fine-tunes a model on its best past replies so new drafts match the team's tone and structure.

How companies use it

Companies fine-tune models for consistent output formats, special terminology or a fixed tone, often to make a smaller, cheaper model good enough.

Frequently asked questions

Should we fine-tune or use RAG?

Use RAG to give the model your facts and documents. Fine-tune to change how it writes or behaves.

How much data is needed?

Fine-tuning often needs hundreds to a few thousand good examples.

Is fine-tuning expensive?

Less than it used to be, but it adds training, testing and upkeep. Try good prompts and RAG first.

In depth: Fine-tuning

The full picture, about 4 minutes of reading

Teaching an existing model new habits

Large language models arrive already able to read, write and follow instructions, because they have been trained on huge amounts of text. Fine-tuning is a second, much smaller round of training on top of that, using a company's own examples. The model is shown many pairs of "this input" and "this is the output we want", and its internal settings are nudged slightly so that it produces that kind of output more reliably.

A useful comparison is a skilled new employee. They already know the language and the basics of the job. What they lack is your house style: how your reports are laid out, which terms you use, how formal your emails are. Fine-tuning is like giving them a binder of your best past work and letting them practice until they write the same way without being reminded.

What it is good at, and what it is not

Fine-tuning shines at form and behavior. It can teach a model to always answer in a fixed structure, such as a set of fields a system can read, to use the tone and terms of a particular industry, to classify items into a company's own categories or to keep replies short without being told each time. It can also make a smaller, cheaper and faster model perform as well as a larger one on a narrow, repeated task.

It is poor at facts that change. A model fine-tuned on last year's price list will keep repeating last year's prices, and it cannot tell you which document an answer came from. For that, RAG, short for retrieval-augmented generation, is usually the better tool: the model looks up the relevant documents right before it answers. The two are often combined, with RAG supplying the facts and fine-tuning shaping how they are presented.

How fine-tuning is done

First, collect examples. Each example is an input and the ideal output, written or approved by people who know what good looks like. Quality matters far more than quantity: a few hundred clean, consistent examples usually beat thousands of messy ones. Remove personal data that does not need to be there.

Second, split off a test set. Keep a part of the examples aside, never used for training, so you can check whether the tuned model actually improved on cases it has not seen.

Third, run the training. Most major AI providers offer fine-tuning as a service: you upload the examples, choose a base model and get back a tuned version that only your account can use. Open models can also be fine-tuned on your own or rented hardware, often with methods that change only a small part of the model to save cost.

Fourth, compare. Run the test set through both the original and the tuned model and judge the results side by side.

Where it goes wrong

The most common failure is bad examples. If the examples are inconsistent, the model learns the inconsistency. If they contain errors, it learns the errors. If they all cover easy cases, it will be confident and wrong on hard ones.

A second failure is overfitting, which means the model learns the examples too literally and gets worse at anything slightly different. A tuned model can also lose some of its general skills, for example becoming worse at following instructions outside the narrow task.

A third cost is upkeep. Each tuned model is tied to a specific base model. When the provider releases a better base model or retires the old one, the tuning must be redone and tested again. And a tuned model needs the same checks over time as any other, because the work it does and the world around it keep changing.

Try the simpler options first

Before fine-tuning, it is worth trying two cheaper steps. The first is a better prompt: clear instructions, a few good examples placed directly in the prompt and a description of the format you want. This is called few-shot prompting, and it often gets surprisingly close to what fine-tuning would give. The second is RAG, if the problem is that the model lacks your information.

Fine-tuning becomes worth it when you have a narrow task that is repeated very often, you already have many good examples, prompts alone do not give stable enough results, and the gains in quality, speed or cost per answer are large enough to justify the extra work. If you cannot yet say how you would measure success, it is too early to fine-tune.

What it means for a small business

Most small businesses will never need to fine-tune a model. A well-written prompt, a saved template and, where needed, a tool that searches the company's own documents cover most everyday needs, such as replies, summaries and internal questions.

Fine-tuning can make sense for a small company with a very repetitive, high-volume task, such as sorting incoming orders or support emails into fixed categories, or producing a standard report from structured input, where a small tuned model could do the job quickly and cheaply. In that case, start by collecting a few hundred good examples from real work, decide in advance how you will measure the result, and compare the tuned model against a good prompt on a larger model. Choose the tuned one only if it clearly wins.

Curious what this could mean for your company? Book a call.

Book a call