# How Much Data Do You Need for Fine-Tuning?

> How many examples fine-tuning needs, why quality beats size, and how to test that you have enough, explained simply for your AI interview.

**In short:** There is no fixed number. OpenAI's guide suggests starting with about 50 well-crafted examples, evaluating the results, and adding more only if performance improves.

AI and LLM interview question Q295, Fine-tuning and adaptation. Intermediate, common (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/how-much-data-do-you-need

## Say it in 30 seconds

There isn't one right number. OpenAI's guide suggests starting with 50 well-crafted examples, then testing. Their own note says improvements show up at 50 to 100 examples, but the right number depends on the task. Quality counts more than size: one research team got strong results from only 1,000 carefully picked examples. I'd hold some examples back to test, and add data only for the cases that still fail.

## Say it in 2 minutes

Fine-tuning means teaching a model that already knows language a narrower skill, by showing it examples of the answer you want. So the question is how many examples it takes to learn your format, tone or task. There isn't one number. OpenAI's guide says the minimum it accepts is 10, and that it sees improvements from fine-tuning on 50 to 100 examples. The right number for you depends on the use case.

My starting point is their advice: about 50 well-crafted examples, then an evaluation. If the scores rise, I add more and see what changes. If 50 examples do nothing, I rethink the task or the prompt before I add more data, because a badly defined task won't be fixed by a bigger pile.

Quality matters more than size. A research team fine-tuned a 65B parameter model on only 1,000 carefully picked prompts and responses, and it got strong results. I also remove duplicates and check the labels, because a wrong label teaches the wrong rule.

Before going live, I test on examples the model never saw in training. For a legal team tagging contract clauses, that means 396 labelled clauses, with about one in five held back for testing. So my answer is: start with about 50 good examples, test honestly, then add data only where the model fails.

## What is fine-tuning data, in plain words?

A base model already knows a lot of language. Fine-tuning shows it more examples: a prompt, and the answer you want. The model learns your format, tone or task from them, so the question is how many examples it needs to pick up that pattern.

It depends on the task. You find out by testing. Teaching a fixed output format can need few examples. Teaching many rare cases needs more, and a messy dataset needs more still to cover it.

Think of a new claims handler at an insurer. Three dozen well-chosen past claims teach the form and the tricky cases. More claims only help if the tricky cases are still missing. A fine-tuned claims model works the same way. A few dozen carefully picked claims can teach it the form and the tricky cases, while a pile of duplicates teaches it very little.

- **Fine-tuning:** Training an existing model further on your own examples, so it learns your task.
- **Example:** One prompt paired with the answer you want the model to give.
- **Held-out set:** Examples kept back from training and used only to test the model.
- **Overfitting:** When a model memorises its training examples and fails on new ones.

## What do the vendors say about the number?

OpenAI's supervised fine-tuning guide gives the closest thing to an official number. The minimum it accepts is 10 examples. It sees improvements from 50 to 100, and it recommends starting with 50 well-crafted examples and then evaluating (testing how well it does) the results.

One caveat: OpenAI says it is winding down its fine-tuning platform, and new users can no longer use it. Treat its numbers as general guidance, not a promise about a product you can buy today.

> "We recommend starting with 50 well-crafted demonstrations and evaluating the results" (OpenAI, supervised fine-tuning guide)
>
> "fine-tuned with the standard supervised loss on only 1,000 carefully curated prompts and responses" (LIMA research paper, 2023)

The same guide covers what to do when 50 is not enough. If the first 50 do nothing, the task or the prompt is the problem, so fix that before you add training data.

> **Tip:** Don't quote a magic number in the interview. Say: start with about 50 good examples, test, and grow only where it fails.

## Is more data always better?

No. A research team fine-tuned a 65B parameter model (one with 65 billion adjustable settings, called parameters) on only 1,000 carefully picked prompts and responses, and it learned to follow specific response formats from a handful of examples. Their conclusion, which they say these results strongly suggest, is that almost all knowledge in large language models is learned during pretraining (the first, very large training run on raw text, before anyone tunes a model for a task), and only limited instruction tuning data is needed to teach a model to produce high quality output.

The trade-off is simple. Ten thousand messy examples can teach the model the mess: duplicates, wrong labels and off-topic replies. A smaller set of clean examples can beat a big pile.

Worked example. A legal team wants a model to tag supplier contract clauses with 8 risk tags, such as auto-renewal, liability cap or indemnity. Their labelled set (each clause has a correct tag written by a person) has 396 clauses after removing duplicates. Their aim is 50 per tag, which leaves four tags short.

They hold back about one in five clauses for testing, which leaves 317 for training. Here is the count in plain Python, with made-up numbers:

```python
# A legal team's clause tagger: 8 risk tags, aim for 50 labelled clauses per tag (made-up counts).
TARGET = 50
counts = {"auto-renewal": 62, "liability-cap": 48, "data-transfer": 35, "termination-fee": 57,
          "governing-law": 51, "indemnity": 29, "non-compete": 44, "price-review": 70}
total = sum(counts.values())
held_out = total // 5
print("Total labelled clauses:", total)
print("Held back for testing (about 1 in 5):", held_out)
print("Used for training:", total - held_out)
for tag, n in sorted(counts.items()):
    if n < TARGET:
        print("Need", TARGET - n, "more for", tag)
```

Output:

```text
Total labelled clauses: 396
Held back for testing (about 1 in 5): 79
Used for training: 317
Need 15 more for data-transfer
Need 21 more for indemnity
Need 2 more for liability-cap
Need 6 more for non-compete
```

The last lines say the team needs 44 more clauses in total, aimed at the four weak tags. A fresh batch of 1,000 for all eight tags would waste most of the effort.

## How do you know you have enough?

You know by testing on examples the model never saw in training. Hold them back before training starts, and never let a copy of a training example slip into the test set. Otherwise the score flatters the model.

> "The only fair test of a model is against new examples, not duplicates" (Google, machine learning crash course)

*Diagram, Start small, test, then add data only where it fails: Start with a small set of good examples, then test on examples the model never trained on. Add data only for the case types that still fail, and test again before going live.*
1. The first examples come from real work, about 50 to start.
2. The scores on held-back examples meet the bar.
3. The scores miss, so the team checks which cases fail.
4. The model goes live, and real answers are checked.
5. The weak cases get new data, ready for another test.

Start with a few real examples, test on held-back ones, and grow only where the scores fall short.

## What does the interviewer want to hear?

**A strong answer covers**

- [ ] It depends on the task, and testing decides it.
- [ ] The starting point: about 50 good examples, then evaluate.
- [ ] Quality beats size: duplicates and wrong labels hurt.
- [ ] A held-out test set, with no copies of training examples.
- [ ] Add data only for the cases that still fail.
- [ ] Say what good looks like before you count anything.

**Common traps**

- Trap: "Use at least 10,000 examples to be safe." Better: Ten thousand bad examples teach the mess. Start near 50 good ones and test.
- Trap: "The more data the better, so use all our logs." Better: Raw logs hold duplicates, private details and wrong answers. Clean and label them first.
- Trap: "Test on the examples we trained on." Better: A score on training examples flatters the model. Keep a held-out set.

## Can you spot the problem in the data?

**Spot the problem:** Which line in the clause file would you fix first?

A. {"clause": "Renews for 3 years unless cancelled 90 days before.", "tag": "auto-renewal"}
B. {"clause": "Liability is capped at 12 months of fees.", "tag": "data-transfer"}
C. {"clause": "Customer data stays in the EU, with 30 days notice of any move.", "tag": "data-transfer"}
D. {"clause": "This contract is governed by the laws of England and Wales.", "tag": "governing-law"}

**Answer:** B. The second line tags a liability cap as data transfer. The model learns the wrong rule, and copies of that line would make the error louder. Fix labels before you add more clauses.

**Quick check:** A team has 60 good examples, and the model misses one type of case. What should they do next?

A. Add 5,000 random examples of anything
B. Add more examples of that missing case, then test again
C. Train for longer and hope it improves
D. Give up, because 60 is never enough

**Answer:** B. Find the weak case, give the model more examples of it, then check the score on held-back examples. A random pile adds noise, and longer training doesn't add new cases.

## Can you answer these from memory?

**Flash cards**

- **How many examples to start with?** About 50 well-crafted examples, then evaluate. That's OpenAI's starting advice.
- **What is the minimum OpenAI accepts?** 10 examples. Improvements show up from 50 to 100, depending on the task.
- **Is more data always better?** No. Duplicates and wrong labels hurt. Fewer clean examples can beat a big pile.
- **What is a held-out set?** Examples kept back from training and used only to test the model.
- **What if 50 examples do nothing?** Rethink the task or the prompt before adding more training data.
- **Why keep copies out of the test set?** Copies of training examples make the score look better than it is.

## Likely follow-up questions

- Q294 How do you prepare a fine-tuning dataset? https://designervenkat.online/interview/ai/how-to-prepare-a-fine-tuning-dataset
- Q297 How do you spot overfitting during fine-tuning? https://designervenkat.online/interview/ai/how-do-you-spot-overfitting-during-fine-tuning
- Q296 What is catastrophic forgetting? https://designervenkat.online/interview/ai/what-is-catastrophic-forgetting
- Q281 Fine-tune vs RAG vs prompting: when to use which? https://designervenkat.online/interview/ai/fine-tuning-vs-rag-vs-prompting
- Q284 What is LoRA? https://designervenkat.online/interview/ai/what-is-lora
- Q287 What is SFT / instruction tuning? https://designervenkat.online/interview/ai/what-is-supervised-fine-tuning

## Learn it in depth

- [Fine-tuning](https://designervenkat.online/learn/ai-engineering/fine-tuning)
- [Train - Test Data: splitting your data](https://designervenkat.online/learn/machine-learning/train-test-split)
