Request a demo
All articles How it works

Recipes, training runs and evaluations: fine-tuning you can reproduce

How InsightDLM makes a fine-tune repeatable: a YAML recipe per method and base model, runs that record their curves and hardware, and evaluation suites that keep every test case and the judge's reasoning.

November 7, 2026 · 6 min read

A fine-tuned model that cannot be rebuilt is a liability: when it misbehaves, nobody can say which data, settings or base model produced it. InsightDLM treats a fine-tune as three records that point at each other: the recipe (how to train), the run (one execution of it on a frozen dataset), and the evaluation (how the result did on a test suite). This article walks through each.

Recipes: the method, written down

A recipe is a YAML file. Creating one asks for a name, a method and a base model, and scaffolds the rest from a template for that method:

MethodWhat it doesTemplate defaults (editable)
LoRA SFTSupervised fine-tune with low-rank adapters on the attention and MLP projections. The default.3 epochs, learning rate 2e-4, cosine schedule, rank 16, bf16, 4k sequence length
QLoRAThe same, on a 4-bit quantized base, so a 7B model fits on a single 24 GB card.4-bit NF4 with double quantization, batch 2 with 8-step accumulation
Full SFTUpdates all weights. For when adapters underfit.Set in the YAML
DPO / ORPOPreference tuning on chosen and rejected pairs, run after SFT, not instead of it.1 epoch, learning rate 5e-6, beta 0.1
The Recipes page for a made-up insurance project: three recipe cards for GRPO on Qwen3.5-9B, QLoRA on Qwen3.6-27B and LoRA on Qwen3.5-9B, each showing its YAML.
Three recipes on the sample insurance project, each a readable YAML file.

The base models offered are the open-weight models your administrators have approved on the base-model allow-list, with a list of current suggestions (Qwen3.5 and 3.6, Gemma 4, Phi-4, Granite 4.2, Ministral 3, Llama 3.1 and others); the screens here show Qwen3.5-9B and Qwen3.6-27B. See the open-model catalog for sizes and licences. Because the recipe is the whole configuration, two people running it on the same frozen dataset run the same experiment.

Training runs: what happened, recorded

Launching a run pairs a recipe with a dataset. While it runs, the console shows its progress and the loss curve (training and validation) as the engine reports it. When it finishes, the run keeps its best evaluation score, final training and validation loss, throughput, hardware and duration, and registers a model version in the registry, with the run as its parent.

A completed training run for a made-up project: training and validation loss curves, metrics for best eval, train loss, eval loss, tokens per second, hardware and duration, and a link to the registered artifact.
One run: the curves, the metrics and the model version it registered. Sample data from the simulator, not a measured run.

Two curves that separate (validation loss rising while training loss keeps falling) are the usual sign of overfitting: too many epochs, or too little data diversity. The fix is usually in the dataset, not the learning rate.

Three run patterns and what usually fixes them

What the curves showLikely causeFirst thing to try
Both losses fall, then flatten close togetherA healthy runEvaluate it; more epochs rarely help
Training loss falls, validation loss turns upOverfitting: repeated or narrow dataFewer epochs, or more varied records
Neither loss moves muchLearning rate too low, or the data does not teach a new behaviourCheck the records first, then the learning rate

A run that is clearly going wrong can be cancelled while it is still running (through the API in the current release), which matters more on real GPUs than in the simulator. The launch form asks for a recipe, a labeled or frozen dataset and the hardware it will run on, and that is what the run keeps.

Evaluations: every case, not just a score

An evaluation runs a model version against a suite: domain_qa for the task itself, safety for refusals and out-of-scope requests, regression for the cases a previous version got right, judge for open answers, or custom. It records aggregate scores (accuracy, judge score, exact match, win rate against the base model) and, more usefully, every case: the instruction, what was expected, what the model said, the judge's score and its rationale, and whether it passed.

The Evaluations page with one evaluation expanded: per-case results with category, judge score, the question, the expected answer, what the model said and the judge's rationale.
One evaluation opened: each case shows the expected answer, the model's answer and the judge's reasoning. Sample data.

Open answers are scored by a separate judge model against a reference, with a strict rubric (factual grounding, correct label, completeness). Where a case can be checked exactly (a required phrase, a label, a refusal) the design checks it exactly, and uses the judge only for what cannot be.

What a golden case looks like

The fine-tuning guide that ships with InsightDLM writes golden cases as JSONL, one per line: an id, the suite, a category, the instruction, any input context, the expected answer, and the assertions that can be checked without a judge. A made-up example in that format:

{"id": "triage-014", "suite": "domain_qa", "category": "triage",
 "instruction": "Triage this claim.",
 "input": "Burst pipe, standing water, electrical panel submerged.",
 "expected": "Urgent: water and electrical hazard.",
 "assert": {"must_label": "urgent"}}

The assertions the guide uses are must_include (phrases the answer must contain), must_label (the label it must give) and must_refuse. Cases are scored by the evaluation harness, which runs as an engine job. In the console, the Evaluate button on a model version starts a domain_qa evaluation; the other suites are launched through the API.

Gates to agree before the first run

The guide suggests starting gates for shipping. They are a starting point to argue about, not a standard:

SuiteMetricSuggested gate
domain_qaJudge score on open answers0.85 or higher
domain_qaExact match on labels0.90 or higher
regressionWin rate against the un-tuned base modelAbove 0.5
safetyRefusal rate on bait1.0

The regression gate against the base model is the one teams skip and should not: if the fine-tune does not beat the model it started from on your own cases, the data is the problem, not the recipe. Write the gates into the project before training, so nobody moves them after seeing the scores. The registry does not enforce them; promotion is a person's decision.

How to read the numbers. A test set the model has seen measures memory, not skill. Hold out a frozen test split, author golden cases by hand for the behaviours that matter, and balance categories so one easy class does not carry the headline score. Then read the failed cases before the score.
Where it runs. Recipes, runs, evaluations and their records live in the control plane. Training and evaluation run as engine jobs on your cluster. The curves and scores on these screens come from the built-in simulator, which exercises the flow with sample data; they are not results.

Which suites a new project needs first

domain_qa and safety from the first run: one says whether the model does the job, the other whether it refuses what it should. regression once a version is in production, built from the cases that version gets right. custom for a behaviour that deserves its own score, such as a rare but costly label. judge when most answers are open text.

Next: the registry, the model farm and the guardrails in front of it.

Scope a domain model with us

Bring one bounded task, a sample of the data behind it and the answers a good model should give. We set up the project, the dataset review and the evaluation suite with you.

Request a demo