Skip to content

Guides

Fine-tune an LLM without an ML team

You don’t need a machine learning team to fine-tune a model for one job in your app. You need a clear job, real examples, a way to check answers, and a tool that handles the training. This guide walks through the steps, and what each one asks of you.

The short answer

  1. Pick one job with an answer you can check.
  2. Collect real examples, ideally your app’s own calls and a frontier model’s answers.
  3. Hold some examples back to test on.
  4. Train a few small models and compare them on the held-back examples.
  5. Switch your app over carefully, with a fallback for uncertain answers.
  6. Retrain as new examples come in.

What you need, and what you don’t

Needed?Notes
A clear jobYesOne decision, with an answer that has a shape
ExamplesYesAt least 30; 50 or more train better
Someone who knows the jobYesTo check a sample of answers and judge the results
Machine learning engineersNoIf a tool picks base models, trains and evaluates for you
GPUs of your ownNoTraining and serving can run on a host’s hardware
A labeling projectUsually notYour app’s calls to a frontier model can supply the answers

First, make sure fine-tuning is the right tool

Fine-tuning changes how a model behaves: its format, consistency and judgment on a job. It is not the best way to give a model facts it doesn’t have, which is what retrieval (RAG) is for. OpenAI’s guide to LLM accuracy draws the same line between problems of context and problems of behavior. If your model gets the facts but gives inconsistent answers, or you want a cheaper model to do the job, fine-tuning fits. See fine-tuning vs RAG vs prompting.

Step 1: pick one job with a checkable answer

The jobs that fine-tune best are decisions your app makes many times a day, where the answer has a shape:

  • Route. Send each item to the right queue, team or tool.
  • Flag. Say yes or no, and why: what needs a person and what doesn’t.
  • Check. Hold a message, document or reply up to your policy.
  • Tag. Apply labels from your own list, one or several.
  • Redact. Find what must not leak, in text and in images.
  • Extract. Pull fields out into the JSON your app expects.
  • Score. Put a grade on each item, on your own scale.
  • Match. Decide whether two records are the same thing.

Write the job down the way you would for a new hire: the input, the possible answers, and the rules.

Step 2: collect examples

The best examples are the calls your app already makes. If a frontier model handles the job today, its answers on those calls are ready-made training data; training a small model on them is called distillation. Otherwise, export past cases with the answers your team gave.

  • Cover the variety you see in production, including rare answers.
  • Check a sample by hand and fix or drop answers that are wrong. The model will copy mistakes.
  • Sous starts training at 30 calls, and 50 or more train better.

Step 3: hold some examples back

Keep part of your examples out of training, so you can test the model on inputs it has never seen. Sous holds back 20%. Without this step, you only learn how well the model memorized.

Step 4: train a few candidates

Train more than one small model, on different base models or settings, and let the results pick the winner. Most fine-tuning of small models today uses LoRA, which trains a small add-on rather than every weight. See LoRA vs QLoRA vs full fine-tuning. Sous trains up to 4 candidates at a time and chooses their settings for you.

Step 5: compare on the held-back examples

  • Match rate: how often each candidate gives the answer you trust.
  • Errors that matter: which mistakes it makes, not just how many. A missed fraud flag costs more than a mislabeled newsletter.
  • Cost and speed: per call, at your volume.

Two runs as the Sous trainer logged them, scored on calls each model never saw:

JobCheaper than the frontier modelSame answer as the frontier modelLearned from
PII redactor8.5×84%128 calls from an app
Support ticket router6.2×92%300 past tickets

Step 6: switch carefully

  • Decide in advance what match rate is good enough for this job.
  • Send answers the model is unsure of to a person or to the larger model.
  • Watch the first days of live traffic closely, and keep the old path ready.

Step 7: keep it current

Your inputs change: new products, new kinds of tickets, new fraud patterns. Keep collecting calls and retrain on a schedule or when the match rate slips, testing each new version on held-back examples before it goes live.

Common mistakes

  • Fine-tuning to teach facts that belong in retrieval.
  • Training on answers no one checked.
  • Judging the model on the examples it trained on.
  • Starting with a broad, open-ended job instead of one decision.
  • Switching all traffic at once, with no fallback for uncertain answers.

How Sous fits

Sous is the trainer in this picture. Wrap the client your app already uses, or describe a decision, and Sous collects examples, trains small open models, tests them on calls they never saw, serves the best one behind an OpenAI-compatible API, and keeps retraining. Try the examples in the sandbox, or read the docs.

Questions people ask

Can I fine-tune an LLM without machine learning experience?

Yes, for a narrow job. You need to define the job, supply examples and check results. Picking base models, training settings and evaluation can be handled by a tool built for it.

How many examples do I need to fine-tune a model?

For one narrow job, often far fewer than people expect. OpenAI’s accuracy guide uses a dataset of 50 or more examples to improve consistency. Sous starts training at 30 calls, and 50 or more train better.

Should I fine-tune or improve my prompt?

Start with the prompt. Fine-tune when a good prompt still gives inconsistent answers, when you want a smaller, cheaper model to do the job, or when the instructions have grown too long to send on every call.

How do I know the fine-tuned model is good enough?

Test it on examples it never trained on, and compare its answers with the ones you trust. Decide in advance what match rate is good enough for the job, and send the answers it is unsure of to a person or a larger model.

Sources

Train your first model

Wrap your client and keep calling your model. Sous trains a small one on your calls and switches you over when it’s ready. Every account starts with $20 of credit, and a training that fails costs nothing.

Four steps, from your app’s calls to a small model

  1. 1Make a model and an API keyin the app
  2. 2Wrap your clientSous(OpenAI(), model=…)
  3. 3Use your app as usualSous keeps each call
  4. 4Let it switchwhen a student is ready