How to evaluate a fine-tuned LLM against its base model
Build useful LLM evals in Tensorant, score a support-ticket classifier, compare base and tuned models, and investigate regressions before deployment.
What you will build
Compare a fine-tuned adapter with its base model on held-out examples and make a clear deployment decision.
Steps in this guide
A fine-tuned LLM should earn its place in your application by handling useful tasks better than the base model. Training loss helps diagnose training, but it does not tell you whether a support ticket reaches the right team or whether an extracted field is correct. This applies to SFT and DPO: Tensorant evaluates generated answers, and preference-pair test rows use the chosen answer as the reference. It does not report pairwise preference accuracy.
This guide builds an evaluation for a support-ticket router using Qwen/Qwen3-4B-Instruct-2507. The model returns one of four labels: billing, account, technical, or other. You can use the same process for structured extraction, question answering, and numeric tasks by choosing the scoring preset that matches the output.
If you need to create your first adapter, start with the Qwen fine-tuning guide. You need a dataset version with test examples, member or owner access, and a ready deployment or configured model endpoint.
Step 1: Define the answer your application needs
Write the output contract before scoring anything. For this router, the contract is a single label with no explanation or Markdown.
| Label | Route this kind of request |
|---|---|
billing |
Payments, invoices, subscriptions, and refunds |
account |
Login, password, and account access |
technical |
Broken product behavior and integration errors |
other |
Requests outside the three defined categories |
An example conversation looks like this:
{"messages":[{"role":"system","content":"Classify the support ticket as billing, account, technical, or other. Reply with exactly one label and no other text."},{"role":"user","content":"My card was charged twice for the same subscription renewal."},{"role":"assistant","content":"billing"}],"category":"billing"}The final assistant message is the reference answer. During evaluation, Tensorant sends the earlier messages to the model and scores its response against that reference.
Add a labeling rule for ambiguous cases. For example, route an explicit charge dispute to billing even if the ticket also mentions a broken screen. Use the same rule when preparing training labels and test references. Otherwise, disagreements may reflect an unclear policy rather than a model failure.
Step 2: Build a useful test set
Use real task variety. Include short requests, long tickets, misspellings, multiple concerns, and cases where a familiar word points to the wrong category. “The billing page crashes” tests product behavior, while “Please resend my invoice” tests billing.
- Import labeled conversations through Sources.
- Import a separately prepared test set with Use these sources for set to Test (held out).
- Review references, resolve ambiguous labels, and approve the examples.
- Open Versions and choose Create version.
- Check category coverage when selecting the version in an experiment.
Tensorant keeps examples sharing a source, an identical normalized prompt, or an image in the same split. It also preserves split reservations across later versions. These checks reduce direct overlap, but paraphrases still need review. See preventing evaluation data leakage.
Aim for test examples from at least 10 documents (independent sources), with useful representation for every label. Ten is the minimum for a likely range, not evidence that the test set is large enough for every routing decision. Hundreds of variations from one document still count as one document. See how versions are split.
Step 3: Choose a metric that measures the task
Set Answers are to Classification, with Classification accuracy as the Main metric for the router. Enter the four labels under Allowed labels, one per line. Tensorant treats an answer outside that list as incorrect, including an explanation followed by a label.
For other tasks, use this mapping:
| Task | Useful starting metric | What to inspect alongside it |
|---|---|---|
| Ticket routing | Classification accuracy | Per-label scores and confusion matrix |
| JSON extraction | JSON field accuracy | JSON validity and schema correctness |
| Exact identifiers | Normalized exact match | Case and spacing rules |
| Numeric answers | Numeric accuracy | Absolute and relative tolerances |
| Open-ended answers | A carefully defined judge rubric | Human review and factual evidence |
Token F1 measures shared words and punctuation. It cannot establish that an answer is factually correct. Similarly, valid JSON can contain the wrong values. Choose the main metric for the decision you actually need to make. The evaluation metric reference explains the checks in detail.
Step 4: Run the base-model baseline
- On Models, choose Deploy for testing, keep This project's base model under Model to serve, and wait for Ready. Use a deployment without FP8 quantization if you will train against this baseline.
- Open Evaluations under Tune and choose Run evaluation.
- Keep Base model selected and choose the Dataset version and, under Model to score, the base-model deployment.
- Set Answers are to Classification and Main metric to Classification accuracy.
- Check the Allowed labels. Under Advanced settings, leave LLM judge (optional) on No judge.
- Leave System prompt (optional) empty to keep each example's system message. If you replace it, use the instruction your application will send.
- Set Longest answer (tokens) high enough for a complete label. Start with 32 for this short-output task and inspect the returned answers.
- Choose Run baseline evaluation and wait for completion.
Evaluations use temperature 0. Each test prompt plus its output allowance must fit the deployment's context length. Set the deployment's Stops after (hours) long enough to finish the test set. Evaluation calls keep it from stopping when idle, but they do not override that time limit. RunPod bills the deployment GPU while it runs.
Open a few answers before interpreting the aggregate score. Reasoning text, a truncated response, or an extra sentence can fail a strict classification check even when the intended label appears somewhere in the response.
Step 5: Evaluate the adapter under the same conditions
Train against the completed baseline, then deploy the verified adapter with Deploy for testing. On its training run, choose Score against baseline. Under Deployment, keep Its ready deployment or select an endpoint serving that exact adapter, then choose Score the adapter. Evaluate adapter, in the adapter deployment's ⋯ menu on Models, does the same in one step.
Tensorant reuses the baseline's test data, scoring configuration, system prompt, and output limit. With deployments, the model revision, context length, and serving settings also stay aligned. If you use external endpoints, verify their model identity yourself because Tensorant cannot inspect which model they serve.
For a new run, Experiments can perform the baseline, training, adapter deployment, comparison, and cleanup automatically. Choose the same classification configuration, set acceptance thresholds, and choose Check and review launch to run the readiness checks and open the approval. An experiment can also use an LLM judge (optional) with a Rubric. See the LLM judge.
Step 6: Read the paired comparison and its uncertainty
Choose Compare answers when the tuned evaluation completes. Each tuned answer is paired with the baseline's answer to the same test example. This is more informative than comparing two scores from unrelated test sets.
Read these together:
- The tuned model's score on the Comparison metric.
- The change in percentage points.
- The likely range of that change.
- Test documents: the independent sources behind the comparison.
A positive improvement with a range entirely above zero is evidence of a gain on this test distribution. A range crossing zero means the available sample does not clearly distinguish the models. A missing range is not proof of stability. Tensorant cannot provide one with fewer than 10 test documents, or when every answer changed the same way.
The range redraws the test documents 2,000 times and holds the middle 95% of the changes, keeping answers that share a source, prompt, or image together. It reflects test-sample uncertainty. It does not measure training randomness, judge bias, or the effect of a changed production workload. See comparison statistics.
Step 7: Inspect regressions before accepting an average gain
- Select Regressed in the comparison's Answers filter.
- Open failures and read the ticket, reference, base answer, and tuned answer.
- Use Change by category, recipe, and source to find recurring problems.
- For classification, inspect the confusion matrix. Its rows are reference labels and its columns are predicted labels.
- Record critical error patterns and decide whether they block release.
An improved overall score can hide worse account routing. A large billing category can dominate the average while a small but important account category regresses. Small groups are clues, so collect more independent examples before drawing a strong category-level conclusion.
Choose experiment thresholds before training. For example, a proposed acceptance rule could set Minimum tuned score (%) to 90, Minimum improvement (points) to 1, Minimum test documents to 10, and tick Accept only a clear improvement: the likely range of the change must be above zero. These are starting requirements to adapt to your product, not universal quality standards. Add a human release check for critical categories because the overall threshold alone does not enforce a category floor.
Step 8: Extend the evaluation when the output becomes JSON
If the router also returns an escalation flag, set Answers are to Structured JSON and train references in the same format:
{"category":"billing","needs_human":true}Use this response schema:
{
"type": "object",
"properties": {
"category": {"type": "string", "enum": ["billing", "account", "technical", "other"]},
"needs_human": {"type": "boolean"}
},
"required": ["category", "needs_human"],
"additionalProperties": false
}List /category and /needs_human under Fields to compare (optional). Select JSON field accuracy to match field values against the reference, and inspect JSON-schema correctness alongside it. Missing fields are wrong, and list order matters when scoring arrays. The schema's required list ensures both keys exist, while additionalProperties: false disallows extra keys. See the JSON Schema object reference.
Define exactly when escalation is required before labeling examples. For open-ended explanations, a manual rubric judge can supplement deterministic checks. Calibrate its scores against human-reviewed answers, and remember that its provider receives each example's full source text. A judge in a vision evaluation sees text and [image] placeholders, so it cannot verify image details.
Step 9: Turn the result into a release decision
Keep a short record of the version, adapter, model revision, evaluation settings, main score, paired change, likely range, and critical regressions. Inference telemetry shows response times and token counts, which help identify slower or unnecessarily verbose answers. These are telemetry, not billing totals.
If the adapter meets the agreed criteria, continue with deploying a LoRA adapter. If it fails, add new training examples for the observed failure patterns and preserve the original test set. Use fresh held-out cases to confirm the next improvement. The console does not currently offer an evaluation-results download, so capture your decision record separately and use Versions to export the test conversations when needed.