---
title: "What is supervised fine-tuning (SFT) data?"
description: "Supervised fine-tuning data pairs inputs with the outputs a model should learn. Its formats, how much is needed, and how business records can become SFT data."
canonical: https://plety.net/about/for-buyers/what-is-supervised-fine-tuning-data
last-updated: 2026-11-26
---

# What is supervised fine-tuning (SFT) data?

By Plety. Updated 2026-11-26.

Supervised fine-tuning (SFT) data is a set of examples, each pairing an input such as a prompt or a conversation with the output a model should produce, used to train an existing model to imitate those outputs. OpenAI's InstructGPT work of 2022 used about 13,000 such prompts with answers written by labellers. De-identified business exchanges can supply similar pairs from real work.

## What is supervised fine-tuning data?

Supervised fine-tuning data is a collection of worked examples, each holding an input and the target output a model should learn to produce for it. Hugging Face's TRL documentation (version 1.19, read in November 2026) calls supervised fine-tuning the simplest and most commonly used method to adapt a language model to a target dataset, with the model trained in a fully supervised fashion on pairs of input and output sequences.

Training scores the model on how likely it found each token of the target answer, using what TRL calls token-level cross-entropy loss. Nothing ranks one answer against another, which is what separates SFT data from the preference data described at https://plety.net/about/for-buyers/what-is-rlhf-data.

## What did SFT data look like in InstructGPT?

In InstructGPT, SFT data was prompts paired with answers written by paid labellers. Long Ouyang and colleagues at OpenAI (arXiv, 4 March 2022) say the SFT dataset held about 13,000 training prompts, taken from the OpenAI API or written by labellers, and that the labellers' demonstrations were used to fine-tune GPT-3 by supervised learning. The SFT model then became the starting point for reward modelling and reinforcement learning.

The paper reports that the SFT model was trained for 16 epochs. It overfitted on validation loss after one epoch, yet more epochs still improved reward model scores and human preference ratings, so the team chose its final SFT model by reward model score rather than by loss. Table 6 of the paper gives the size of each dataset.

*The three InstructGPT datasets (Ouyang and colleagues, 2022, Table 6)*

| Dataset | What it holds | Training prompts |
| --- | --- | --- |
| SFT | Prompts with answers written by labellers | 12,725 (11,295 labeller-written, 1,430 from customers) |
| Reward model | Prompts with labellers' rankings of 4 to 9 model outputs | 33,207 (6,623 labeller-written, 26,584 from customers) |
| PPO | Prompts only, with no human labels, used for reinforcement learning | 31,144 (all from customers) |

## What formats does SFT data come in?

SFT data usually comes as JSON Lines, one example per line, in one of four shapes. TRL accepts language modelling data, which is a single text, and prompt-completion data, which separates the input from the target. Each can be standard text or conversational messages with roles such as user and assistant.

Tool use follows the same pattern. TRL says a tool-calling example should hold the conversation, including the model's tool calls and the tools' responses, plus the list of available tools as JSON schemas. OpenAI's supervised fine-tuning guide also uses chat messages, with one complete JSON structure on each line holding a user prompt and the correct response as an assistant message. TRL truncates examples longer than its max_length setting, 1,024 tokens by default, so long threads need splitting or a higher limit.

*SFT dataset formats in Hugging Face TRL (version 1.19, November 2026)*

| Format | Shape of one example | Loss computed on, by default |
| --- | --- | --- |
| Standard language modelling | One text field | The whole text |
| Conversational language modelling | A list of messages with roles | The whole conversation; assistant turns only if assistant_only_loss is set |
| Standard prompt-completion | A prompt field and a completion field | The completion only |
| Conversational prompt-completion | Prompt messages and completion messages | The completion only |

## How much SFT data is needed?

An SFT set can be as small as tens of examples or run to thousands, far fewer than pre-training uses. OpenAI's guide sets a minimum of 10 examples and recommends starting with 50 well-crafted demonstrations and evaluating the results. InstructGPT used about 13,000 prompts to turn GPT-3 into a general instruction-following assistant.

As of November 2026, OpenAI's guide also says the company is winding down its fine-tuning platform. The platform is no longer open to new users, and eligible existing customers can create training jobs until 15 December 2026 unless the base model shuts down earlier. Libraries such as TRL, whose own examples fine-tune open-weight Qwen models, are another route.

## How can business records become SFT data?

Business records become SFT data when a real request and the answer that resolved it are paired, cleaned and checked. A support ticket and its final reply, a customer email and the account manager's response, or a question in team chat and the expert's answer each have the shape of a prompt-completion example.

Three checks decide whether the pairs are usable. The answer must be good: replies followed by a reopened ticket or a complaint should be removed or labelled. Personal data and confidential client material must be removed inside the company before export, with names replaced consistently. And each pair needs enough context, such as the product, the policy in force or earlier messages in the thread, for the answer to make sense on its own.

Fine-tuning puts examples into a model's weights, so a licence for SFT use should name that use and say what happens to fine-tuned models when the licence ends. The licence types are compared at https://plety.net/about/for-buyers/training-fine-tuning-and-evaluation-licences.

## Questions

### Is SFT the same as instruction tuning?

Instruction tuning is one common use of SFT. TRL's documentation describes it as teaching a base model to follow user instructions, using a chat template and a conversational dataset of instruction-response pairs.

### Why is the prompt left out of the loss?

So that the model learns to write answers rather than to repeat questions. TRL computes the loss on the completion only, by default, for prompt-completion data.

### What is a held-out set in fine-tuning?

A held-out set is a slice of examples kept out of training and used to check the fine-tuned model. OpenAI's guide recommends holding out data from the training set as a control group.

### Can SFT train only part of a model?

Yes. TRL supports training small adapters through the PEFT library instead of the whole model, and its documentation notes that adapters typically use a higher learning rate, around 0.0001.

## Sources

- [Ouyang and colleagues, Training language models to follow instructions with human feedback (arXiv, 4 March 2022)](https://arxiv.org/abs/2203.02155)
- [OpenAI, Supervised fine-tuning guide (read November 2026)](https://developers.openai.com/api/docs/guides/supervised-fine-tuning)
- [Hugging Face, TRL documentation: SFT Trainer (version 1.19)](https://huggingface.co/docs/trl/sft_trainer)

## Read next

- [What is RLHF data?](https://plety.net/about/for-buyers/what-is-rlhf-data.md)
- [Licensing records for training, fine-tuning or evaluation: what changes](https://plety.net/about/for-buyers/training-fine-tuning-and-evaluation-licences.md)
- [What is AI training data?](https://plety.net/about/ai-data-market/what-is-ai-training-data.md)
- [What is agent trajectory data?](https://plety.net/about/for-buyers/what-is-agent-trajectory-data.md)
- [Licensing support tickets to AI buyers](https://plety.net/about/records/support-tickets.md)

---

Plety Limited, company number 17598186, registered in England and Wales. Registered office: 15 Hackbridge, Wallington, United Kingdom, SM6 7AU. Contact: partnerships@plety.net. Book a call: https://plety.net/book.

General information, not legal advice.
