esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
  • Download ResumeContact
Let’s talk

I’ll build the agent for it.

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.

9 min readIntermediateCommon · estimateFacts checked 26 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

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.

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.

Key words

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

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

Start small, test, then add data only where it fails

Start with 50 examples

Good ones, taken from real work

Test on held-back examples

Examples the model never trained on

Meets the target

Good enough to go live

Misses some cases

Some case types still go wrong

Go live and keep checking

Check real answers after launch

Add data for weak cases

Then test again from the start

  1. 1The first examples come from real work, about 50 to start.
  2. 2The scores on held-back examples meet the bar.
  3. 3The scores miss, so the team checks which cases fail.
  4. 4The model goes live, and real answers are checked.
  5. 5The weak cases get new data, ready for another test.
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.

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."

    BetterTen thousand bad examples teach the mess. Start near 50 good ones and test.

  • Trap"The more data the better, so use all our logs."

    BetterRaw logs hold duplicates, private details and wrong answers. Clean and label them first.

  • Trap"Test on the examples we trained on."

    BetterA 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?

Quick check

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

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q294How do you prepare a fine-tuning dataset?11 min
  2. Q297How do you spot overfitting during fine-tuning?11 min
  3. Q296What is catastrophic forgetting?12 min
  4. Q281Fine-tune vs RAG vs prompting: when to use which?10 min
  5. Q284What is LoRA?10 min
  6. Q287What is SFT / instruction tuning?11 min

Learn it in depth

Last updated on 26 November 2026

Building an AI model on your own data?

I design and build AI products and agents, the screens and the system behind them. Book a short call and tell me what your data looks like and what the model must do.