● Small-model tuning · technical guide

Train for the task you repeat

Evaluate a small language model on one stable task, such as classifying exceptions, and compare it with your current model path before routing routine work to it. This page describes the pipeline and how a decision to promote is made.

Status, stated plainly

The pieces on this page exist in the product: step capture, LoRA training scripts, conversion to GGUF, a local model server and a promotion gate. A tuned model has not yet been promoted in production, and the project has not published a measured gain from tuning. A design-partner trial is how that gets tested on your task, with your baseline.

The pipeline

From recorded decisions to a model you can evaluate

  1. 1

    Capture

    Every agent step is recorded as the exact prompt and the decision parsed from it. When a small model’s step is replaced by a larger model’s, both are kept as a pair on the same step.

  2. 2

    Prepare

    Keep only examples a real tool call confirmed or a person approved. Build a versioned dataset, check provenance and redaction, and reserve unseen cases for evaluation.

  3. 3

    Fine-tune

    Train a LoRA adapter with the training scripts, convert it to GGUF, and serve it through the local model server.

  4. 4

    Evaluate

    Run the current model path and the tuned model on the same unseen cases. Compare decision quality, cost and latency, and how often a case has to escalate.

  5. 5

    Promote, or don’t

    The promotion gate compares two measured accuracies against a margin you set and returns promote, reject or inconclusive. Deployment, canary and rollback stay manual.

The scorecard

Agree what must improve before anything is promoted

01

Decision quality

Agreement with reviewed outcomes, with errors broken out by exception type.

02

Cost and latency

Cost per completed case, median and tail latency, and the effect of escalation.

03

Coverage and fallback

Uncertain or out-of-scope cases escalate to an approved model or a human reviewer. Source permissions and action policy apply during execution, whichever model ran.

Routing

Local first, with escalation

The small local model answers first. A larger cloud model is consulted when the answer fails its checks or comes back empty. Which models are allowed is a setting (OMNIGATE_LLM_MODE: local only, local first, or cloud first), and cloud spend is held to a budget guard. A tuned adapter would slot in as the local model, so routing, permissions and escalation work the same way.

A design-partner trial

What is agreed before training starts

01

One stable task

A repeatable task with a baseline, for example classifying invoice exceptions.

02

A success threshold

The margin the tuned model has to beat, and on how many held-out cases. A dozen cases cannot detect a small gain, so plan for 150 to 200.

03

Data terms

Who owns the examples, what use is permitted, how they are redacted and how long they are kept, agreed with the data owner before anything is exported.

Pilot scope and pricing on thinkingsense.ai