Own Weights

What is fine-tuning?

Fine-tuning explained: how training an open-weight model on your own examples makes it better at one task, what data it needs, and when to use it.

Updated

Fine-tuning means training an existing model a little more on examples of one task. The model already understands language, so you only teach it the pattern you need: show it many pairs of input and correct output, and its weights shift until it reliably produces the right output for that task.

How fine-tuning works

A language model is a large set of numbers called weights. Pretraining gives a model general language skills. Fine-tuning starts from that model and runs more training on a smaller, focused dataset. Each example pairs an input, such as a supplier invoice, with the output you want, such as the vendor name, invoice date and total in one fixed format. During training the model makes a guess, the guess is compared with the target, and the weights are adjusted to shrink the gap. After enough examples, the model produces that format on invoices it has never seen.

The output is a new set of weights, a separate model file rather than a note stored in your account. You run it on hardware you control or in your own cloud account, and you send it the same kind of request you sent the original model. Because you hold the file, you can keep it, version it and roll back to an earlier one if a new version behaves worse.

When fine-tuning is the right tool

Fine-tuning fits a task that repeats. The input type is stable, the output shape is fixed, and the volume is high. Extraction, classification, routing and formatting are common examples. If the answers depend on documents that change every week, retrieval is often the better fit, as explained in fine-tuning vs RAG. Prompt engineering is the other option: you describe the task in every request and pay for those instructions on every call. Fine-tuning vs prompt engineering compares the two.

The trade-off comes up front. Data preparation, labeling, training runs and the time spent checking results all happen before the first saved call. A task that runs a few times a week rarely repays that work. A task that runs all day usually does. LLM cost at scale walks through how volume changes that math.

A worked example: finding clauses in contracts

Take a legal team that reviews commercial contracts. For each contract, the model must find passages for a fixed list of clause types, such as termination rights, governing law and renewal terms, and quote each one exactly. The project runs in five steps:

  1. Collect contracts that match intake, including scanned and oddly formatted ones.
  2. Have a lawyer mark each clause type in each contract, following one written definition per type.
  3. Split by contract. Every passage from one contract goes into training or into the test set, never both.
  4. Train on the labeled passages, then score the model on the held-out contracts using the exact-quote rule the lawyers agreed to.
  5. Score the model you use today on that same test, so the comparison is fair.

On CUAD, a public set of 510 commercial contracts, a fine-tuned model scored 0.717 on exact-quote accuracy under 5-fold cross-validation, where every document was scored by a model that never trained on it. Claude Opus, given one prompt and no examples, scored 0.635 on the same task. Full results are on the benchmark page.

The same five steps apply to an invoice extractor or a support ticket router. Only the labels and the definitions change.

Common mistakes

  • Inconsistent labels. If two reviewers read “governing law” differently, the model learns both readings and gets some passages wrong. Write one definition per label and check agreement on a sample before training.
  • Splitting by chunk. If passages from one contract sit in both the training set and the test set, the score looks better than the model really is. The LLM evaluation guide shows how to build a clean test.
  • Clean test data. A test built from tidy examples says little about the messy inputs production sends.
  • No baseline. Without the current model’s score on the same test, a trained model’s score tells you nothing about whether it is an improvement.
  • Expecting new facts. Fine-tuning shapes how the model handles a task. It does not add facts that appear nowhere in your examples, and it cannot rescue a vague task definition.
  • Reading one score as a promise. A result on one task says what training did there. It does not guarantee the same result on your documents.

Before you start: a go or no-go check

Fine-tune only if all five are true:

  1. The same task runs often enough that a smaller trained model would save more than the project costs.
  2. The input type is stable and the output format is fixed.
  3. Someone who knows the work can label examples consistently.
  4. You have a held-out test set, split by document, frozen before any training run.
  5. You have the current model’s score on that test, so you know what the trained model has to beat.

If one of these is false, fix that first. A fine-tune cannot make up for a task nobody can define.

How Own Weights runs a fine-tune

Own Weights fine-tunes an open-weight model for one high-volume task that a company currently sends to a frontier API. We tune it against that task’s real data and check it against the current model. The work runs in four steps:

  1. Audit. A free review maps your AI spend by task, using your code and invoices.
  2. Evaluate. We build a test from your real data and score the current model first.
  3. Train. The trained model must beat the current model on that test before anything is deployed.
  4. Serve. The model runs in your cloud account or in your building, tuned for throughput.

The customer owns the weights at the end.

If you have one task running through a frontier API today, start with the free audit. It shows which task is the strongest candidate and what the test would need to look like. Use the “Book a free audit” button on this page to talk it through.

Questions

Is fine-tuning the same as training a model from scratch?

No. Training from scratch starts with untrained weights and needs a very large dataset and a lot of compute. Fine-tuning starts from a model that already understands language and needs far fewer examples for one task.

How long does fine-tuning take?

It depends on the size of the dataset, the model and the hardware. Often the time goes into preparing data and building a test, not into the training run itself.

Who owns a fine-tuned model?

That depends on the contract, so read it before you sign. With Own Weights, the customer owns the weights, and the model runs in the customer's cloud account or on-prem.