DelegIA
Get started

What is fine-tuning in generative AI?

Finetuning is further training of an existing AI model with your own examples, meaning you can adapt it to a specific task, such as following a consistent format or tone or applying a fixed set of criteria. Foundation model fine-tuning starts with a trained model, such as an OpenAI model or one with downloadable weights. When finetuning large language models (LLMs), what you adjust is their behavior. You don't build a model from scratch.

Albert López·Founder of DelegIA·Updated

Also called
Fine tuning, finetuning
Type
Technique
Reading time
6 minutes

What is supervised fine-tuning, and how does it work for LLMs?

The process of fine-tuning a large language model (LLM) uses a much smaller custom dataset of task examples to train a model that has already learned from a vast amount of general text. In supervised model fine-tuning (SFT), each example pairs an input with the response the model should produce. IBM describes this as adapting a pretrained model to specific tasks or use cases.

A custom dataset for supervised finetuning doesn't need millions of examples. OpenAI's fine-tuning guide includes tips for language models: it requires at least 10 examples and reports improvements with 50 to 100. Its best practices for LLM fine-tuning recommend starting with 50 carefully prepared examples, then evaluating the results. If those 50 don't help, OpenAI recommends rethinking the task or prompt before adding more training data.

What makes LoRA fine-tuning parameter-efficient is that it keeps the original AI model's weights fixed and trains a small set of additional weights. The original paper explained this form of fine-tuning through a comparison of LoRA vs full finetuning, using the 175-billion-parameter GPT-3 model as an example. LoRA reduced the number of trainable parameters by a factor of 10,000 and used one-third as much GPU memory. This form of parameter-efficient finetuning (PEFT) is widely used with open models and reduces the hardware needed for training. Depending on the model and task, fine-tuning an open LLM may be possible without a data center.

How many examples does OpenAI recommend?

  1. 1Minimum10 examples
  2. 2Reported improvements50 to 100 examples
  3. 3Starting point50 carefully prepared examples

What businesses use fine-tuning for

Generative AI model fine-tuning helps make responses more consistent in style and content. OpenAI recommends it for generating text in a specific format, classifying inputs, handling nuanced translations, or correcting failures to follow instructions. A business might use it to sort thousands of emails or support tickets into the same categories, or to write reports in the company's usual structure.

Fine-tuning is a poor fit for keeping a model up to date with your business records. Prices, inventory, contracts, and case files can change every week. Updating the model through training would mean repeating that process each time. OpenAI's guide instead puts the information the model needs in the request. RAG does this by retrieving relevant information from your documents before the model answers.

When to use model fine-tuning vs RAG or prompt engineering

In a comparison of RAG vs fine-tuning vs prompt engineering for LLMs, start with what you need the system to do. You can often get the results you need without training a model. OpenAI recommends evaluating real examples first, then improving the prompt with instructions and examples. Consider fine-tuning if the prompt still falls short; improving it may be all you need.

What you needWhat to useWhy
Answers based on your documents and information that changesRAGIt retrieves information from your documents before answering and can cite the source of each fact
Responses that follow a format, tone, or set of rulesA good prompt with examplesIf that is not enough for a task you repeat frequently, consider fine-tuning
The same task performed thousands of times using consistent criteriaFine-tuningPreparing the examples can pay off because the task is repeated so often
Answers that reflect a new fact as of tomorrowRAGAdd the document to the information it retrieves, without retraining the model

RAG vs finetuning doesn't have to be an either-or choice. Many systems use both alongside a clear prompt: RAG supplies information that changes, while a fine-tuned model handles a frequently repeated task. If a provider suggests training a model on your company's data, ask which task it will improve and which examples they'll use to test the improvement.

Fine-tuning in ChatGPT and open models

OpenAI finetuning let developers upload examples through its API and receive a customized GPT model. OpenAI is now closing that self-service platform. On May 7, 2026, organizations that had never run a training job lost the ability to create one. Since July 2, the same restriction has applied to organizations that have gone 60 days without using a fine-tuned model. Eligible users can create jobs before December 15, 2026, unless their base model is retired sooner. Existing fine-tuned models remain usable until their base model is retired. OpenAI's current timeline was checked on November 26, 2026.

If you need fine-tuning and control over where the model runs, consider a downloadable model. Families such as Llama, Mistral, Qwen, DeepSeek, and GLM include models you can run on your company's server. Choose a version whose license and training tools support your intended use. With LoRA, you can save the adjustments separately as an adapter. Hugging Face documents how to merge supported adapters into a base model, and Ollama documents how to import compatible complete model weights. For a private AI setup, you can run both training and inference on your company's own server with external services disabled, so the training examples can stay inside the company.

Choose the model based on the task you need it to do. For many tasks, an Anthropic or OpenAI model with a good prompt and RAG is enough. Use fine-tuning when that combination doesn't meet your needs.

Has someone proposed training a model on your company's data? If you're weighing that against connecting the model to your documents, our AI solutions page explains how we build these systems. You can also request a free introductory call there.

Sources

  1. IBM, What is fine-tuning?. Definition and adaptation of pretrained models. Accessed November 26, 2026.www.ibm.com
  2. OpenAI, Supervised fine-tuning. Use cases and the guidance on 10, 50, and 50 to 100 examples. Accessed November 26, 2026.developers.openai.com
  3. OpenAI, Model optimization. Evaluation, prompting, and deciding whether to fine-tune. Accessed November 26, 2026.developers.openai.com
  4. OpenAI, Deprecations. The current cutoff is December 15, 2026, replacing January 6, 2027. Accessed November 26, 2026.developers.openai.com
  5. Hu et al., LoRA: Low-Rank Adaptation of Large Language Models (2021). The GPT-3 comparison and GPU memory figures describe that study. Accessed November 26, 2026.arxiv.org
  6. Ollama, Modelfile reference. Current model configuration reference. Accessed November 26, 2026.docs.ollama.com
  7. Ollama, Importing a model. Importing complete Safetensors or GGUF model weights. Accessed November 26, 2026.docs.ollama.com
  8. Hugging Face, PEFT checkpoint format. Adapter storage and merging supported adapter weights. Accessed November 26, 2026.huggingface.co
  9. Ollama, Local FAQ. Local operation and disabling cloud features. Accessed November 26, 2026.docs.ollama.com
  10. IBM, RAG vs. fine-tuning. Retrieving company information versus adapting a model for a task. Accessed November 26, 2026.www.ibm.com
  11. Ollama model library: Llama, Mistral, Qwen, DeepSeek, and GLM. Availability of local model versions, not a blanket claim about every license or training method. Accessed November 26, 2026.ollama.com
  12. OpenAI, Custom GPT retirement and migration FAQ. Supports the related article's description of the planned retirement. Accessed November 26, 2026.help.openai.com
Albert López

Albert López

Founder of DelegIA

He helps small and mid-sized businesses in Spain decide where AI makes sense, implements the systems they agree on, and supports the teams that use them. His glossary entries draw on what he learns working with each company.

Last reviewed: