Explainer

What Is Fine-Tuning an AI Model?

Fine-tuning retrains an existing AI model on your own examples. Learn how fine-tuning an LLM works, what LoRA is, and when RAG or prompting is a better choice.

A piano being tuned, with the strings and hammers exposed
Photo: PlayMistyForMe / Wikimedia Commons, CC BY 3.0. Cropped and colour-treated.

Fine-tuning is the process of taking an AI model that has already been trained on general data and training it a bit more on a smaller, specific set of examples so it gets better at one job. You keep everything the model already knows and teach it a particular style, format or skill on top.

Think of hiring a capable graduate and then giving them two weeks of on-the-job training. You are not teaching them to read or reason from scratch. You are teaching them how your company writes reports, handles complaints or labels invoices.

How does fine-tuning work?

A large language model is first "pre-trained" on a huge amount of general text. That stage is extremely expensive and only a handful of organizations do it. Fine-tuning is the much smaller second stage.

The basic steps look like this:

  1. Pick a base model. This is usually an existing model, often an open-weight one you can download, or a model offered through a provider's fine-tuning service.
  2. Prepare examples. You create pairs of inputs and ideal outputs. For a support bot, that might be a customer message and the perfect reply in your brand's voice.
  3. Train. The model processes your examples, compares its answers with your ideal ones and nudges its parameters to close the gap.
  4. Evaluate. You test the tuned model on examples it did not train on, to check it improved without breaking other skills.
  5. Deploy and monitor. You put it to work and keep an eye on quality.

Data quality matters far more than volume. A few hundred carefully written examples often beat thousands of sloppy ones, because the model copies whatever patterns you show it, including mistakes.

What are the main types of fine-tuning?

MethodWhat it teachesSimple example
Supervised fine-tuningCopy the ideal answer for each inputTurning messy notes into a standard report format
Preference tuning (such as DPO)Prefer answer A over answer BChoosing the more polite of two replies
Reinforcement fine-tuningMaximize a score from an automatic graderSolving tasks where answers can be checked, like code that passes tests
Full fine-tuningUpdate every parameterDeep specialization by a well-funded team
Parameter-efficient (LoRA and similar)Update a small add-on onlyMost fine-tuning done on open models today

What is LoRA?

LoRA, short for low-rank adaptation, is the technique that made fine-tuning practical for ordinary teams. Instead of changing all of a model's billions of parameters, LoRA freezes the original model and trains a small set of extra numbers alongside it.

The result is a lightweight "adapter" file that can be a tiny fraction of the model's size. You can keep one base model and swap adapters for different jobs, a bit like changing lenses on a camera. Because the original weights stay untouched, the model is also less likely to forget what it already knew.

A follow-up method called QLoRA combines LoRA with quantization, which compresses the base model to use less memory. Its authors showed that a very large model could be fine-tuned on a single high-end graphics card, which previously required a cluster.

When should you fine-tune, and when should you not?

This is the question most teams get wrong. Fine-tuning is powerful, but it is often not the first tool to reach for.

Your goalBest first approach
Answer questions about your documentsRetrieval-augmented generation (RAG)
Use facts that change often, like prices or stock levelsRAG or a live data connection
Get a specific tone or format every timeFine-tuning, after trying prompt examples
Handle a narrow, repetitive task cheaply at high volumeFine-tuning a smaller model
Teach specialized jargon or classification labelsFine-tuning
Get a quick prototype workingPrompt engineering

The rule of thumb: use RAG for knowledge, use fine-tuning for behavior. Fine-tuning a model on your product catalog does not reliably make it remember every price, and the moment prices change, the model is out of date. Retrieval, which looks up the current information each time, handles that much better.

Many teams find that well-written instructions with a few examples, a technique covered in our prompt engineering guide, get them most of the way. Fine-tuning becomes attractive when prompts get very long, costs climb at scale or the output still is not consistent enough.

What does fine-tuning cost?

Costs come in three buckets:

  • Data preparation. Often the biggest cost, because writing and checking high-quality examples takes expert time.
  • Compute. Training on cloud GPUs or through a provider's service. With LoRA on a modest open model, this can be small. Full fine-tuning of large models is far more expensive.
  • Upkeep. Every time the base model is replaced with a newer version, you may need to fine-tune again.

Provider options also shift, so plan for change. OpenAI, for example, said in May 2026 that it was winding down its fine-tuning platform and closing it to new users, while letting existing fine-tuned models keep running. If you want full control over the process, open-weight models let you fine-tune on your own hardware or cloud account. Check each provider's current options before planning a project.

What are the risks of fine-tuning?

  • Forgetting. Heavy fine-tuning can make a model worse at things it used to do well.
  • Overfitting. A model trained on too few or too similar examples may parrot them and fail on anything new.
  • Weakened safety. Research has shown that fine-tuning can erode a model's built-in safeguards, even with innocent-looking data, so tuned models need fresh safety testing.
  • Data leaks. If training examples contain private customer details, the model may repeat them. Clean your data first.
  • License limits. Open-weight models come with licenses that may restrict commercial use or require attribution.

Why It Matters

For most teams, the honest answer to "should we fine-tune?" is "not yet." A custom model sounds like a valuable asset, but the real cost sits in writing good examples, and the work never fully ends, since each new base model can send you back to the start. If your problem is really about knowledge, you will pay that bill and still get stale answers.

Where fine-tuning earns its keep is narrow, repetitive work at high volume, where a small tuned model can replace long and expensive prompts. LoRA has moved that option out of the big labs. For a startup in India or a mid-size firm in the US, real customization is now a budgeting question rather than a research project.

The bigger lesson is OpenAI's decision to wind down its fine-tuning platform. If your product depends on a tuned model that lives on someone else's service, you are tied to their roadmap. Owning your training data and keeping open-weight models as a fallback is the safer position. And treat every tuned model as untested on safety until you have checked it yourself, because tuning can quietly weaken guardrails you assumed were still in place.

Frequently asked questions

How many examples do I need to fine-tune a model?

It depends on the task, but many projects start with a few hundred high-quality examples and add more if results fall short. Simple formatting tasks can work with fewer. Complex reasoning or specialized domains usually need more, plus careful evaluation.

Is fine-tuning better than RAG?

Neither is better overall. They solve different problems. RAG gives a model up-to-date facts from your documents, while fine-tuning shapes how it behaves and writes. Many production systems use both together.

Can I fine-tune ChatGPT or Claude?

Options for fine-tuning closed models change often and are usually limited to specific models, business plans or cloud partners. OpenAI closed its fine-tuning platform to new users in 2026. Check each provider's current documentation, or consider fine-tuning an open-weight model instead.

Does fine-tuning make a model smarter?

Not in a general sense. Fine-tuning makes a model better at the specific task you trained it on, sometimes at the cost of other skills. Broad improvements in reasoning come mainly from pre-training and the provider's own post-training.

Researched and written by The AI Telegraph staff and checked against primary sources. See our editorial policy. Spotted an error? Tell us.