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.
This is the technical guide. The overview for your team is at thinkingsense.ai.
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.
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.
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.
Train a LoRA adapter with the training scripts, convert it to GGUF, and serve it through the local model server.
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.
The promotion gate compares two measured accuracies against a margin you set and returns promote, reject or inconclusive. Deployment, canary and rollback stay manual.
Agreement with reviewed outcomes, with errors broken out by exception type.
Cost per completed case, median and tail latency, and the effect of escalation.
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.
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 repeatable task with a baseline, for example classifying invoice exceptions.
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.
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.