tonytautai home/local-ai/run-local-ai/running/training

./train --local

Teaching a Model Your Documents.

How to train local ai models is the question that comes up when the general model keeps misreading the same thing and longer prompts have stopped helping.

Tony Tautai

how to train local ai models

When a Prompt Is Not Enough

how to train local ai models

At some point the general model keeps misreading the same thing: the way your quotes lay out line items, the French and English mixed in your contracts, the house style of your correspondence. Longer prompts stop helping. That is when you train. This page is the entry to the subject; the practical surroundings are reached by going more on running local ai in practice.

What Training Means Here

Not building a model from nothing. Taking a small base model and specialising it on your task with a few hundred to a few thousand examples, so that it becomes very good at that one thing and stops being asked to do anything else. In our own tests, a general base model measured 73 % on a document task before specialisation and 99 % after. The base did not get bigger. It got narrower.

Two Halves of the Subject

how to train local ai models

Where It Runs

Training needs a GPU for hours, then nothing for weeks. Buying that GPU for a firm that trains twice a year rarely makes sense; renting time on a machine that is wiped afterwards does, provided no client document ever goes onto it. Our own rule is strict: rented machines see only fictional data or public licensed datasets. The resulting model then runs on the appliance, offline, and that is where a closer look at local ai in production picks up.

What Training Does Not Fix

how to train local ai models

A model trained to extract fields will not become a conversationalist, and should not; interactive use stays with a closer look at local ai chat and assistants. Nor does training replace the orchestration around the model; a specialised extractor is one step in the chains we describe in a closer look at local ai agents. And training on bad examples produces a confident model that is wrong in exactly the way your examples were.

Train the behaviour you can test. Leave the rest to the document and to the person reading the output.

ssh [email protected]

Prove it on your documents.

Every engagement starts the same way: we run the system on a sample of your own files, under NDA/DPA, and hand you a written report with the scores, misses included. No commitment.

Test it on my documents Request a diagnostic