Own Weights

How to fine-tune a model on company data: the steps

How to fine-tune a model on company data, step by step: pick one task, gather records, split, train, test against your current model, and deploy.

Updated

To fine-tune a model on company data, pick one task your company already sends to an AI model at volume. Collect real examples of that task with the correct answers, train an open-weight model on those examples, and test it against the model you use today on records it has never seen. Only a model that wins that test should go into production.

The process is less mysterious than the name suggests. Most of the work is data and testing, not machine learning. Here is what each step does, in plain terms.

How does fine-tuning work for a business?

Fine-tuning shows a model that already reads and writes language many examples of one job. Each example is an input and the answer you want, such as a contract and the exact clause that sets the notice period. After enough examples, the model gets better at that job. The result is a new set of weights that you own and run yourself, not a prompt you send to someone else’s API.

A fine-tuned model can get worse at tasks you did not train it on. That is why you keep it on one job.

Steps 1 and 2: pick one task, then gather the records

Pick a task that repeats often, has a clear right answer, and costs real money today. Invoice line extraction, clause tagging and ticket routing are typical examples. Open-ended chat is a poor fit, because there is no single right answer to train toward.

Then gather records. Use the inputs your systems already store, and the answers your staff already accept, such as corrected extractions or approved labels. Check the labels. Wrong labels teach the model the same mistakes, faster. Remove anything that should not be used for training, and write down where each dataset came from. Data handling rules depend on your industry, so have your compliance team check them before any data leaves your environment. For a longer walkthrough of the test set, read how to build a test set from your own data.

Step 3: split the data, then train

Split the records into a training set and a test set before training starts. Split by document, not by line or chunk. If pieces of the same contract sit on both sides of the split, the test score will look better than the model really is. Fix the random seed and write it down, so the split can be rebuilt later.

Training is the shortest step. Your team or your partner runs the job in your own cloud account or on infrastructure you control, and the output is a set of weights. Expect several rounds. How long each step takes is covered in the fine-tuning timeline. Each round usually shows where the labels were weak, so you fix the data and train again.

Step 4: test against the model you use today

This is the step most projects skip, and it decides whether you should deploy. Score your current model on the test set first, so you know the bar. Then score the trained model on the same records. The trained model should beat the current model before it goes anywhere near production. If it does not, the answer is better data or a different approach, not a deploy.

Pick the metric before you score anything, and pick it to match the job. For field extraction that is usually exact match on each field. For routing it is accuracy per label, so a rare queue cannot hide inside the average. Write the pass bar down with the business owner, for example the current model’s score plus a margin you agree is worth the switch, and treat a tie as a no. Then read the misses by hand, because a few wrong labels in the test set can decide the result.

Step 5: deploy where your data already lives

Once a model wins the test, serve it in your own cloud account or in your own building. Keep the weights under your own access rules and your own logs. Serving should be tuned for throughput when the task runs over large batches of documents. Re-run the same test whenever your documents or your rules change, so you know when the model has drifted.

Running it yourself also means the upkeep is yours. Someone has to watch the scores, retrain when the task changes, and keep the serving setup current.

When fine-tuning is the wrong choice

Do not fine-tune if the task changes every month, if you have very few labeled examples, or if the volume is low. At low volume, a hosted API is often cheaper and far less work. Check the current pricing page of OpenAI, Google or any other vendor before you decide, because prices change. For a task that needs broad knowledge or a lot of varied reasoning, a well-prompted frontier model may beat a narrow fine-tune. Fine-tuning is a good fit when one task repeats, the right answer is clear, and you have records to prove it. For a checklist of signs your task is ready, see when to fine-tune an LLM.

Own Weights fine-tunes an open-weight model for one high-volume task, tests it against your current model on your own data, and serves it in your cloud account or on-prem. If you want to see where your AI spend goes before you pick a task, the free AI cost audit maps your AI calls, models and estimated cost from your code. Or ask for a call, and we will look at one task with you.

Questions

How does fine-tuning work?

Fine-tuning shows a pretrained model many examples of one job, each paired with the answer you want. The model adjusts its weights to match those answers, and the result is a separate model you keep. It works best when the job repeats often and the right answer is clear.

How do I train an AI on my own documents?

Start with documents you already process and the answers your staff already accept. Turn each pair into an input and an answer, split by document into training and test sets, and check the labels before any training. Then score the result against your current model on the test set.

How do I train an LLM on company data?

Choose one task, collect labeled records from your own systems, and train an open-weight model on them. Keep the weights in your own environment. A trained model earns its place only by scoring higher than your current model on records it never saw.

Can I train ChatGPT on my company data?

You cannot change ChatGPT itself with your documents. OpenAI offers fine-tuning on some of its hosted models under its own terms, so check its current documentation for what is available and how it handles your data. The other route is fine-tuning an open-weight model that you run in your own environment.

What are the steps to fine-tune an LLM for a business?

Five steps, in order: choose one task, gather and label records, split by document, train, then test against the model you use today before serving the winner in your own environment. Skipping the test means you cannot tell whether the new model is better.