A support lead came to us last year with 40,000 resolved tickets. His plan was to fine-tune a model on all of them. We looked at the export first, and most of it was password resets, duplicate threads, and conversations that ended with "nevermind, figured it out." After cleaning, about 900 exchanges actually showed a human answering a real question in the voice the company wanted. That turned out to be enough.
That gap between what you have and what you can use is the clearest way to answer how much data to fine tune LLM projects actually need. The headline number is smaller than most teams expect, usually in the hundreds to low thousands of examples for a behavior change. But the work to get there is larger than most teams budget for. This guide walks through the actual ranges by use case, what separates a usable example from a wasted one, where the costs land, and how to tell before you spend anything whether fine-tuning is the right tool.
The Short Answer: Ranges by Use Case
There is no single LLM fine-tuning dataset size that works for everything. What you need depends on what you're trying to change about the model's behavior. Here's how it breaks down in practice.

Tone, voice, and format control (roughly 200 to 1,000 examples). You want the model to answer like your company answers, with consistent structure, consistent register, and consistent refusals. This is the cheapest win in fine-tuning. It's also the one with the smallest fine-tuning sample size requirement. A few hundred well-chosen examples will shift output noticeably.
Structured extraction and classification (roughly 500 to 3,000 examples). Pulling fields off an invoice, tagging a transaction, routing a ticket to the right queue. Volume here scales with the number of categories or fields. A classifier with six labels needs far less than one with sixty. Aim for coverage of every class including the rare ones, because a class the model never sees in training is a class it will guess at.
Domain reasoning and specialist language (roughly 3,000 to 50,000 examples). Clinical shorthand, regulatory filings, trade confirmations fall here. You're not just changing style. You're teaching vocabulary and judgment the base model lacks. This is where how much data for LLM training starts to feel like a real data program rather than a weekend of curation.
Replacing a large model with a small one (roughly 10,000 to 100,000 examples). If the goal is to run a 7B model on your own hardware instead of calling a frontier API, you need enough examples to transfer the behavior you're paying for. This is the most data-hungry case, and it's also the one teams underestimate most.
Model size shifts these numbers, though less than you'd think. Smaller base models (1B to 8B parameters) need more examples to pick up a pattern and overfit faster when you give them too few. Larger bases (30B and up) learn from less, but each training run costs more. For most business use cases on a mid-size open model, the minimum data for fine-tuning that produces a measurable difference sits in the low hundreds.
Why Quality Beats Quantity, and What "Quality" Actually Means
The 40,000-ticket story isn't unusual. Nearly every team we work with has more raw records than usable training data for fine-tuning LLM work. Across the projects we've run, the raw-to-usable ratio has often landed around ten to one or worse.
A usable example has four properties. It represents work you actually want repeated. It's correct, meaning a person who knows the domain would sign off on the output. It's unambiguous, so the input contains everything needed to produce that output. It's also steady against its neighbors, so two near-identical inputs don't carry contradictory answers.
That last one breaks more fine-tuning runs than anything else. If three agents answered the same refund question three different ways and all three are in your set, you're teaching the model that the answer is random. Contradiction in training data doesn't average out. It produces a model that's confidently inconsistent, and that's worse than the base model you started with.
Clean the set before you grow it. Deduplicate near-identical pairs, and strip the metadata, signatures, ticket IDs and boilerplate that appear in every record, because the model will learn to reproduce them. Remove anything where the output references context the input doesn't contain, such as a reply that depends on a phone call nobody logged. Then check class balance. A small dataset LLM fine-tuning run that's eighty percent one category will produce a model that answers everything as that category.
A tight set of 500 verified pairs beats 5,000 scraped ones, and we've seen that hold on retail catalogs and support archives alike.
Preprocessing Proprietary Formats Without Losing the Signal
Most business data doesn't arrive as neat input-output pairs. It arrives as PDFs, ERP exports, email threads, spreadsheets with merged cells, and screenshots someone pasted into a ticket.
Start by deciding what the input and the output actually are. For a document extraction task, the input is the raw text of the document and the output is the JSON you want back. For a support assistant, the input is the customer message plus whatever account context the model will have at inference time. The output is the approved reply. If you train with context the model won't have in production, you're building a model that hallucinates the missing piece.
PDFs and scans. Run them through an extraction layer first and look at the output yourself. Table structure collapses, column order scrambles, and footers get interleaved with body text. If your production pipeline will feed the model the same mangled text, train on the mangled text, not on a hand-cleaned version. Match training to reality, since this is the same discipline that governs document processing and OCR work generally.
Email and chat threads. Strip quoted history, disclaimers and tracking footers. Decide whether the model sees the whole thread or just the last message, and stay consistent across every example.
Database exports. Normalize dates, currencies and nulls to one representation. A model trained on three date formats will produce three date formats.
Redaction. Remove names, account numbers, and anything identifying before the data leaves its system. Do this with code and verify a sample by hand. A regex that misses one pattern will miss it thousands of times. For teams under compliance constraints, this step usually dictates where training happens at all, which is why architecture that keeps regulated data inside your boundary matters more than the model choice.
Keep a holdout set aside before you start any of this. Carve off a slice of examples you never train on, from the same distribution, and don't look at them until you're evaluating. Without it you have no way to tell whether the model learned the task or memorized the set.
Keeping a Small Dataset From Breaking the Model
Train a model hard on a narrow set and it gets good at that set and worse at everything else. It forgets how to handle a question slightly outside the pattern, how to say it doesn't know, sometimes how to write a clean sentence.
The practical fix is to mix in a small portion of general-purpose examples alongside your domain data. A few hundred ordinary instruction-following pairs, nothing exotic, holds the base model's general language ability in place while the domain examples do their work. Teams skip this step constantly, then wonder why a model that nails invoice extraction can no longer answer "what did you just extract?"
Parameter-efficient methods help here too. LoRA and related approaches train a small set of adapter weights instead of rewriting the whole model. For proprietary financial data in particular, this is usually the better call. Compute stays manageable, the base model's general capability stays intact, and the risk of overfitting on a limited domain set drops sharply. Full fine-tuning makes sense when you have a genuinely large corpus and a reason to reshape the model deeply, though most business projects don't need that.
Settings matter less than people expect, but a reasonable starting point for a supervised run on a framework like HuggingFace Transformers is 2 to 4 passes over the data at a low learning rate with a modest batch size. Push the epoch count higher on a small set and you'll watch training loss fall while actual quality degrades. That's memorization, not learning.
Fine-Tuning vs RAG Data Requirements: Which One Your Problem Needs
This is where most budget gets wasted. The question practitioners ask most often is simply when fine-tuning is the right choice at all. A lot of published guidance is a list of things you shouldn't fine-tune, which leaves teams no clearer.

Here's the split we use.
Fine-tune when the problem is behavior. Format, tone, consistency, following a house style, producing valid structured output every time, handling a task the base model does clumsily no matter how you prompt it. These are properties of how the model responds, and no amount of retrieved context fixes them reliably.
Use retrieval augmented generation when the problem is knowledge. Current pricing, this quarter's policy, a specific customer's history, a product catalog that changes weekly all live here. Facts that change need to be looked up, not baked in. A fine-tuned model holds whatever was true on training day and has no way to know it's stale.
The data requirements differ accordingly. For fine-tuning you need examples of the behavior, written as input-output pairs, verified by someone who knows the right answer. For retrieval you need documents, chunked and indexed, and the quality bar is whether the document is accurate and findable rather than whether it's a model answer. Fine-tuning vs RAG data requirements also differ in maintenance: a retrieval index you update continuously, a fine-tuned model you retrain on a schedule.
Most production systems we build end up using both. The retrieval layer supplies the facts, the fine-tune supplies the voice and the format discipline. If you want the longer treatment of where each one pays off, we've written a side-by-side breakdown of the two approaches.
Before either, try better prompting. Spend a week on prompt structure and a handful of examples in the context window. If that gets you to acceptable, you've saved a project, and we'd rather tell you that than take the work.
What a Complete Project Actually Costs and How Long It Takes
Real numbers, honestly stated, because the compute bill is the small part.
Data preparation is the expensive line. Getting 1,000 to 10,000 human-verified input-output pairs typically runs somewhere between $15,000 and $50,000 in labor on the projects we've scoped, depending on how much domain expertise each judgment call needs. A support archive is cheaper to verify than loan underwriting memos. This is the step teams leave out of the estimate and then absorb as six months of someone's evenings.
Compute is comparatively minor. A training run on a mid-size model has generally landed between $500 and $5,000 in our experience, and you should budget for several runs because the first one will teach you something about your data you didn't know. Nobody gets the mix right on attempt one.
Timeline. For a focused behavior change with data that's already reasonably clean, four to eight weeks from scoping to a deployed model is realistic. For a domain reasoning model built from scratch on messy sources, plan in quarters. One team we know spent half a year on dataset construction and training before the model was worth deploying. That's not a failure case. It's a normal case when the data starts rough.
The pattern worth naming: dataset preparation is the most critical and most time-consuming part of fine-tuning, and it's the part no tool removes. Frameworks have made training trivial. Nothing has made deciding what the right answer is trivial. We price this work as a fixed number before we start, which forces the data audit to happen early rather than as a surprise in week six.
You own the resulting weights, the scripts, and the accounts they run in. Our private LLM fine-tuning and secure hosting service is built around that constraint. The longer explanation of the approach sits in our guide to how private model fine-tuning works end to end.
Your Hardware or the Cloud: How to Choose
For small datasets and parameter-efficient methods, a single workstation GPU with 24GB of memory handles a 7B model comfortably. That's a real option, and for teams with data that can't leave the building it's often the only option.

Local training wins when the data is regulated, when you're iterating frequently and don't want per-hour billing to shape your decisions, and when the model is small enough to fit. The setup cost is a few days of driver and environment pain, and after that, runs are free.
Cloud training wins when you need larger models or more memory than you own. It also wins when you want multiple parallel experiments without maintaining the machine yourself. The trade-off is that your data sits on someone else's infrastructure during training, which for some of our clients ends the conversation immediately.
A middle path works well here. Develop and debug locally on a tiny slice of the data until the pipeline runs end to end without errors, then move the full run to rented hardware. Most failed runs fail in the first few minutes on something trivial, and discovering that on your own machine costs nothing.
On the question of whether vendors train on your data: on enterprise endpoints with retention disabled, they don't. But the contractual answer and the architectural answer are different things. If your compliance team wants the second one, private deployment is what gives it to them.
Measuring Whether It Worked
Build the evaluation before you train. Take 50 to 100 held-out examples, run them through the base model, and save the output. That's your baseline, and anything you measure after training compares against it.
Score on what matters for the task. For structured extraction, measure field-level accuracy, and count how numerous invoices had every field correct rather than how many had most fields correct. For support drafting, have a domain person rate outputs blind, without knowing which model produced which. For classification, look at the confusion matrix and find out which pairs of categories the model mixes up.
The before-and-after comparisons that convince people are concrete. A base model asked to pull line items from a supplier invoice might return the right vendor and total but merge two line items and invent a tax field. After a few hundred verified examples, the same invoice comes back with every line separated and the tax field absent when the document has no tax line. That's the kind of difference a fine-tune produces: not smarter, more reliable on your specific shape of input.
Watch for the failure that looks like success. If your evaluation examples resemble training examples too closely, the score goes up and production quality doesn't move. Pull evaluation data from a different time period or a different source than your training set when you can.
Whatever the numbers say, keep a person in the loop on anything touching money or a customer. We build approval steps into these systems as a matter of course, since model output needs validation in code or by a human regardless of how the evaluation went.
Packaging the Model for Deployment
A trained model is not a deployed model. Two steps sit between.
Merging and quantization. If you trained with LoRA, decide whether to serve the adapter alongside the base model or merge the weights into a single artifact. Merged is simpler to deploy, adapters are easier to swap. Then quantize: reducing the weights from 16-bit to 8-bit or 4-bit precision cuts memory use substantially and lets a model that needed a server GPU run on something far cheaper. Quality loss at 8-bit is usually negligible, but at 4-bit it's noticeable on harder tasks, so test on your evaluation set rather than assuming.
Serving. Wrap the model behind an inference server, set your context limits and generation parameters, and put the same input validation and output checks around it that you'd put around any API. Version the model artifact and log which version produced which output, because when someone asks why the system answered a certain way three months from now, you'll need to know.
One practical cost note: a fine-tuned small model running on hardware you control has a flat cost. That's the main reason teams worried about model spend growing with usage move this direction. It's worth modeling against your projected volume before you commit.
When Fine-Tuning Runs Fail, and What to Check
Most failures fall into a handful of patterns.

Loss drops fast then quality gets worse. Overfitting. Reduce epochs, lower the learning rate, or add data. On a small set this happens quickly.
Loss barely moves. Learning rate too low, or the data is too inconsistent to learn from. Pull 20 random examples and read them. If you can't agree on the right answer, neither can the model.
Output degrades outside the training distribution. Catastrophic forgetting. Mix general-purpose examples back into the set.
The model repeats training examples verbatim. Too many epochs on too little data, or duplicates in the set. Deduplicate and retrain.
Formatting is wrong in a consistent way. Your training data has a formatting inconsistency the model learned faithfully. Check the template, especially whitespace and delimiters.
When a run disappoints, the instinct is to change hyperparameters, but the fix is almost always in the data.
Deciding Whether You Have Enough
Work it in this order. Define the behavior you want in one sentence. Count how many existing records show that behavior done correctly. If it's fewer than a couple of hundred, write examples by hand until you have enough, since hand-written pairs assembled into a small dataset for LLM fine-tuning often beat a larger set pulled from scraped records.
Then test the cheap path first. Try prompting, try retrieval, and only commit budget when both fall short of what you need.
Here's the honest summary: figuring out how much data to fine tune an LLM usually takes less volume than you fear and more effort than you expect. The fine-tuning sample size that changes behavior is restricted. The verification behind it is the project.
If you want a second opinion on whether your data supports a fine-tune, book a free automation audit and we'll look at a sample with you. Sometimes the answer is that you don't need to build anything, and we'll say so. If you'd rather see the process first, here's how we run a project.
Frequently Asked Questions
How many examples do I need to fine-tune an LLM for my use case?
It depends on what you're trying to change. Tone and voice control needs roughly 200 to 1,000 examples, structured extraction needs 500 to 3,000, domain reasoning needs 3,000 to 50,000, and replacing a large model with a small one needs 10,000 to 100,000 examples. The minimum data for fine-tuning that produces a measurable difference on most business use cases sits in the low hundreds.
What makes a good training example for fine-tuning an LLM?
A usable example represents work you actually want repeated, is correct according to someone who knows the domain, is unambiguous so the input contains everything needed to produce that output, and is consistent with its neighbors so similar inputs don't have contradictory answers. A tight set of 500 verified pairs beats 5,000 scraped ones.
Should I use fine-tuning or RAG for my LLM problem?
Fine-tune when the problem is behavior like format, tone, consistency, or structured output. Use retrieval augmented generation when the problem is knowledge like current pricing, policies, or product catalogs that change. Most production systems use both, with the retrieval layer supplying facts and fine-tuning supplying voice and format discipline.
How much does it cost to fine-tune an LLM for a business use case?
Data preparation typically costs between $15,000 and $50,000 in labor to get 1,000 to 10,000 human-verified input-output pairs. Compute costs are comparatively minor, generally between $500 and $5,000 per training run, and you should budget for several runs since the first one usually teaches you something about your data you didn't know.
How do I prevent my fine-tuned LLM from overfitting on a small dataset?
Mix in a small portion of general-purpose examples alongside your domain data to hold the base model's general language ability in place. Parameter-efficient methods like LoRA also help by training a small set of adapter weights instead of rewriting the whole model, which reduces the risk of overfitting on a limited domain set.
Wondering what this would take against your own systems?
The audit costs nothing, and you keep the costed plan and the risks whether you go ahead or not.
Book a free automation auditHitasoft
LinkedInHitasoft has built software since 2008, for companies that mostly do not have an IT department. These pieces are written by the people who do the integrations rather than by anybody in marketing.





