Own Weights

How much data you need to fine-tune a model

How much data to fine-tune a model depends on your task, not on a fixed rule. Here is how to measure how much data you need before training.

Updated

There is no fixed number of examples that makes a fine-tune work. The right amount depends on how varied the task is, how exact the output must be, and how good the current model already is. The reliable way to find it is to measure: build a test set from your own data, score the current model on it, then train and check whether the new model beats that score. Own Weights follows the same process.

What sets the amount

Three things drive the number. The first is variety. A task with one document type and one answer format needs fewer examples than one that covers scanned letters, email attachments and PDFs exported from several systems. The second is precision. If the model must copy exact text out of a document, each example shows where that text starts and stops, so the model needs enough of them to see the boundary in many forms. The third is the starting point. A model that already gets most cases right only needs training to fix the rest, which usually takes less data than teaching a task from nothing.

Labels matter more than volume. A large set with inconsistent answers teaches the model the inconsistency. A smaller set that a reviewer has checked, and that follows one written rule for every case, often does better.

A worked example: payment terms in supplier contracts

Say you want a model to pull the payment window, such as “net 30”, out of supplier agreements. Start by listing what the examples must cover. Note the templates you actually receive, the places each one states the window (a clause in the body, a table, a schedule at the back), and the contracts that state no window at all. That last group is the one teams forget. A model trained only on contracts with a window will invent one when it meets a contract without it.

Next, pull a sample from the real contract folder, not from a template library. Have a reviewer label it under one written rule, for example: “quote the clause that sets the payment window, or answer none.” Then score the current model on that labeled sample. Suppose it handles the common templates and fails only when the window sits in a schedule at the back. Now you know which format needs examples, and you can collect those first instead of adding contracts at random.

Split the data before you count it

Decide how to split the data before you count anything. Split by the unit that matters: the contract for contract work, the invoice for invoice work, or the support ticket for ticket routing. If you split by chunk, pieces of one document can land in both training and test. The model then looks strong because it has already seen that document, not because it learned the task. This is one of the most common reasons a fine-tune looks like it works when it does not.

Splitting by supplier is a sharper option when one supplier’s templates repeat across the whole file. It keeps each supplier’s wording out of training, so the test checks whether the model generalizes to new wording. The cost is that a few suppliers may end up with too few examples in training, so check the count per group before you commit to the split.

Fix the random seed for the split and write it down. You can then rebuild the same split later and compare runs fairly. Cross-validation for LLMs covers how to repeat this across folds.

How big the test set needs to be

The test set has its own size question, separate from the training set. It needs enough cases that a real difference between two models is more than a handful of documents changing sides. For the payment-terms example, that means every template you receive, the windows hidden in schedules, and the contracts with no window at all, in roughly the share they arrive. Count how many test documents the two models actually disagree on, not only the two scores. If the gap comes down to a few contracts, rerun with another seed or split before you believe it.

How to measure your own task

  1. Collect real examples from your own files or traffic. Keep the cases the current model gets wrong, since they teach the most.
  2. Hold out a test set before training starts. Do not tune on it, and do not let it leak into training.
  3. Score the current model on the test set. This is your baseline. Record accuracy on each field you need, and how often the model answers when it should say none.
  4. Train on the rest. Add examples in steps and watch the test score. When the score stops rising, more data will not help much.
  5. Ship only if the new model beats the current one on the test set, not on the training data.

Each batch of labels costs reviewer time, so stop when the score curve flattens rather than when the folder runs out. Keep the test set fixed for the whole project. If you change it, the old and new scores can no longer be compared.

If you have only a little data, start with the current model and a written definition of the task, then label the cases it gets wrong. A small set can show whether the task is learnable at all, but only a held-out test built from real data shows whether the model is ready. For how to read a test like this, see how to test an LLM on your own data. If you are still deciding between training and prompting, fine-tuning vs prompt engineering covers that choice.

Mistakes that make the numbers lie

  • Putting test documents into training, often by splitting on chunks.
  • Sampling from templates or demo files instead of the documents you actually process.
  • Judging by training loss. A lower training loss does not mean the model does better on new documents.
  • Comparing against a weak baseline, which makes any gain look large.
  • Changing the labeling rules halfway through, so early and late examples disagree.
  • Running one test and treating it as final. Repeat with different seeds and splits when the gap is small.

Own Weights starts with a free audit. We map your AI spend by task from your code and invoices, then help you choose a task with enough volume and a clear test. Use the button below to book a call, and bring one task you would like to test.

Questions

Is a small dataset enough to fine-tune a model?

It can be, for a narrow task with consistent labels. A small set shows whether the task is learnable at all, but it does not prove the model is ready for production. Only a held-out test built from your real data does that.

Does more training data always make a fine-tuned model better?

No. Once the test score stops rising as you add examples, more data adds cost without adding accuracy. Inconsistent or duplicate labels can make results worse, so check the score curve before you buy more labels.

How do I know if my test set is big enough?

It is big enough when it can show the difference you care about, and the score stays steady across runs. If small changes in the data flip the result, the test is too small or too narrow. Include the hard cases and the full range of document layouts.