Evals
An eval is a JSONL file of cases: a prompt and what a good answer looks like. Turion scores models on them in two places, with the same deterministic matchers:
- Inside a training job. The trainer scores the base model and the fine-tune on the job’s eval cases and reports both pass rates. See Training → The eval report.
turion eval. Your machine sends each case to a model through the gateway and scores the replies. It works on any model the gateway can reach: your fine-tunes, provider models, garden models.
Decision models are scored differently, on decision data and on Turion; see Decision models.
turion eval acme/support-v3 --evals evals.jsonl --against openai/gpt-6-luna# scoring openai/gpt-6-luna on 50 cases…# scoring acme/support-v3 on 50 cases…# openai/gpt-6-luna 61% (31/50)# acme/support-v3 92% (46/50)# openai/gpt-6-luna 61% → acme/support-v3 92%That is the plain output, as in a pipe or a CI log. On a terminal, turion eval shows a progress
bar per model while it runs, then a table with each model’s pass rate, passed, failed and call
errors, and the change between the two models in points.
Write cases
Section titled “Write cases”A case is a training record in the chat or prompt/completion format.
Chat. Everything before the last assistant turn is the prompt; that turn is the expected answer:
{"messages": [{"role": "user", "content": "What is the capital of France?"}, {"role": "assistant", "content": "Paris"}], "match": "contains"}Prompt/completion. prompt is sent as one user message; completion is the expected answer:
{"prompt": "2 + 2 =", "completion": "4", "match": "exact"}Any case can also carry:
| Key | Default | Meaning |
|---|---|---|
expected | the derived answer | the answer, overriding the last assistant turn or completion. Any JSON value for json |
match | f1 | which matcher scores the reply |
threshold | 0.5 | f1 only: the token F1 a reply needs to pass, 0–1 |
tools | — | tool definitions sent with the case |
With expected, a chat case can end on the user turn, which is the natural shape for a case that
is not also a training example. Text records ({"text": …}) have no answer and are refused by
turion eval; inside a training job they are skipped.
Matchers
Section titled “Matchers”All matchers look at the reply’s text.
match | Passes when |
|---|---|
exact | the reply equals the expected text after normalising both: casefolded, trimmed, every run of whitespace collapsed to one space |
contains | the normalised expected text occurs in the normalised reply |
regex | re.search(expected, reply, re.DOTALL) finds a match. The reply is not normalised; use (?i) for case-insensitive |
json | the first JSON value in the reply equals expected. Code fences are tolerated, and key order and whitespace do not matter |
f1 | the token F1 between reply and expected text (word tokens, casefolded) is at least threshold |
Some cases:
{"prompt": "Classify the sentiment: 'great product, slow shipping'", "expected": "mixed", "match": "exact"}{"prompt": "Give the order id in: 'order #4417 is late'", "expected": "\\b4417\\b", "match": "regex"}{"prompt": "Extract name and age as JSON: 'Ana, 34'", "expected": {"name": "Ana", "age": 34}, "match": "json"}{"prompt": "Summarise: the meeting moved to Tuesday at 3pm.", "expected": "The meeting is now on Tuesday at 3pm.", "match": "f1", "threshold": 0.6}f1 is the default because it tolerates rewording. For classification, extraction and anything
with one right answer, exact, contains or json give a cleaner signal.
Tool calls
Section titled “Tool calls”A reply with no text and one or more tool calls is scored as compact JSON:
[{"arguments":{"id":"4417"},"name":"get_order"}]. Assert on it with json or contains:
{"tools": [{"type": "function", "function": {"name": "get_order", "parameters": {"type": "object", "properties": {"id": {"type": "string"}}}}}], "messages": [{"role": "user", "content": "Where is order 4417?"}], "expected": [{"name": "get_order", "arguments": {"id": "4417"}}], "match": "json"}Inside a training job the trainer scores the decoded text instead, so a tool-call case there depends on the base model’s own tool-call syntax.
turion eval
Section titled “turion eval”| Option | Default | Description |
|---|---|---|
MODEL | (required) | the model to score |
--evals FILE | (required) | the JSONL eval file |
--against MODEL | — | also score this model on the same cases |
--base | off | a decision model only: also score its base (Decision models) |
--concurrency N | 4 | requests at once per model, at most your account’s limit |
--max-tokens N | — | upper bound on tokens per reply |
--json | off | per-model summaries and every case’s output and verdict |
Each case is sent at temperature 0, with the case’s tools if it has any. A call that errors
counts as a failed case, and the CLI says how many failed and shows the first error. If every
call to a model fails (for example 409 model_not_deployed), the command exits 1. Eval calls are
sent with tracing off, so eval prompts never end up in your traces.
Models are scored one after the other. Each call to a model on Turion GPUs counts as one of your
account’s jobs and model calls in flight until it answers; a new account allows 4 at once. So
--concurrency is lowered to your account’s limit, with a note, and a call refused because every
place is taken (by a training job, say) waits for one to free up instead of counting as a failed
case. Calls to provider models on your own key do not count. If the month’s GPU-seconds run out,
the eval stops and says how many cases were answered. See Quotas.
A non-streamed call waits at most 180 seconds at the API, and the proxy in front of
api.turion.ai gives up after 100 to 120 seconds with 524: both are less than a cold start can
take. When the model you score runs on Turion and may have scaled to zero, turion eval sends the
first case on its own and asks again on 504 garden_timeout while the model is still starting
(up to three tries), then sends the rest. A 524 is not asked again, and that case fails. So
before scoring a scaled-to-zero model, wake it with turion chat MODEL "ping", or wait until
turion model logs MODEL --follow shows the replica ready.
The file is read on your machine and nothing is uploaded, so a prompt/completion case may leave
out completion when it has expected.
--json prints:
{ "evals": "evals.jsonl", "models": [ {"model": "acme/support-v3", "metric": "pass_rate", "score": 0.92, "passed": 46, "cases": 50, "errors": 0} ], "cases": [ {"case": 1, "match": "json", "expected": {"queue": "billing"}, "results": {"acme/support-v3": {"passed": true, "output": "{\"queue\": \"billing\"}", "error": null}}} ]}Base vs tuned vs frontier
Section titled “Base vs tuned vs frontier”- Base vs tuned comes from the training job. The base model is scored on the GPU before
training, the fine-tune after, on the same cases.
turion jobs get ft_…shows both. - Tuned vs frontier:
turion eval acme/support-v3 --evals evals.jsonl --against openai/gpt-6.1-solwith a stored provider key. - Tuned vs tuned:
turion eval acme/support-v4 --evals evals.jsonl --against acme/support-v3. Both must be deployed.
The training eval and turion eval can disagree slightly on the same model. The trainer generates
greedily with a token budget sized to each expected answer, with thinking turned off and a leading
<think>…</think> block removed. turion eval calls the deployed model at temperature 0 with no
such handling, so a reasoning model’s thinking text counts as part of its reply.
Decision models
Section titled “Decision models”A decision model is scored on Turion, not through the gateway,
and its versions do not need to be deployed. turion eval starts an eval run: the trainer loads
the base model once, scores each version on every case of a decision dataset, and reports the
decision metrics for each. Every other entry,
the base included, is compared with one reference on the same cases: the --against version, or
without --against the version you score.
Every training job makes a new model, so the usual comparison is a retrain against the model it replaces:
turion eval acme/triage-2 --against acme/triage \ --evals ds_fedcba9876543210 --base| Argument | Meaning |
|---|---|
acme/triage-2 | the model to score; the run belongs to it. acme/triage-2:v2 or @v2 picks a version; with no version, the latest is scored |
--against acme/triage | the reference to compare with: another decision model of your workspace, as acme/triage, acme/triage:v1 or acme/triage@v1 (its latest version without one), or another version of the same model, as :v1 or @v1. The run labels another model’s version acme/triage@v1 |
--evals | decision data: a ds_… id, or a local file or folder, which is validated and uploaded first |
--base | also score the base model zero-shot, on its own scores for the letters, at temperature 1 |
--json | print the finished run as the API returns it |
--concurrency and --max-tokens do not apply. Every case in the dataset is scored, after
duplicates are dropped. Cases are encoded up to each version’s max_seq_len, the longest of the
versions, so every version is scored on the same cases; a longer case is skipped, with a note. A
version whose length was never recorded is read at 1,024 tokens, with a note. All the versions
must be trained on the same base model, with at most one pinned revision of it among them: a
version trained before revisions were pinned is scored on the others’ revision, and the run’s
notes say so. Two revisions, or two base models, are refused with 409 mixed_bases.
Score on data that none of the versions trained on: a file of your own, or the <name>-eval
dataset that --eval-split uploaded, if every version was trained on the rest of that file. A
version scored on its own training data looks better than it is, so turion eval warns on stderr
when --evals is the dataset that trained a scored version, by its id or by its content (another
upload of the same file), and then runs the eval anyway:
warning: acme/triage-2@v2 was trained on this dataset; its scores will be inflatedIt reads the training jobs of each model it scores and compares the datasets’ sha256, so a copy of
a training dataset you have since deleted goes unnoticed. It also cannot see a partial overlap:
turion train --data data.jsonl --eval-split 0.2 uploads the training part as its own dataset,
so turion eval … --evals data.jsonl later, which scores mostly training cases, gets no warning.
Score on the -eval dataset that split uploaded, or on a separate held-out file. The dashboard’s
New eval form warns by dataset id.
When the run finishes, turion eval prints:
eval ev_5c1e9a7f3b2d4e60 on decisions-eval (ds_fedcba9876543210)
v2 · 420 cases · temperature 1.15question n accuracy (95% CI) macro-F1 (95% CI) majority ECE (shipped T) answers ≥0.9 (accuracy)refund 140 0.91 (0.86–0.95) 0.89 (0.83–0.94) 0.74 0.047 0.81 (0.95)team 140 0.89 (0.82–0.93) 0.85 (0.77–0.92) 0.43 0.064 0.52 (0.99)urgency 140 0.90 (0.84–0.94) 0.90 (0.84–0.95) 0.41 0.065 0.76 (0.99)all 420 0.90 (0.87–0.93) 0.88 (0.85–0.91) 0.52 0.038 0.70 (0.97)
acme/triage@v1 · 420 cases · temperature 1.08…all 420 0.89 (0.85–0.91) 0.86 (0.83–0.90) 0.52 0.043 0.59 (0.98)
base · 420 cases · temperature 1.00…all 420 0.63 (0.59–0.68) 0.60 (0.55–0.65) 0.52 0.051 0.28 (0.85)
v2 vs acme/triage@v1: macro-F1 +1.7 (CI -2.2…+5.8) on 420 casesacme/triage@v1 vs base: macro-F1 +26.3 (CI +21.1…+31.4) on 420 casesThere is one table per report: the version you score, then the reference, then the base. Each
has the columns of a training job’s report
(Reading the metrics), with one difference:
the calibration column is ECE (shipped T), the ECE at the temperature each version ships with
(the base at 1). An eval run scores data a version’s temperature was not fitted on, so this is
the honest number. A training job fits its temperature on the very cases it reports, so its ECE
is cross-fitted instead, and so is the ECE of the training run it records. The comparisons come last, then any notes. On the dashboard each report
also has a reliability strip: the 15 confidence bins behind the ECE, each a bar up to the share of
its answers that were right with a mark at their mean probability. A calibrated version’s bars
end at their marks; a bar below its mark is overconfident.
The comparison line
Section titled “The comparison line”v2 vs acme/triage@v1: macro-F1 +1.7 (CI -2.2…+5.8) on 420 cases is v2’s macro-F1 minus
acme/triage@v1’s on the same 420 cases, in points (+1.7 is 0.017 on the 0–1 scale), with a 95%
interval on that difference. The interval comes from 1,000 paired bootstrap resamples: each resample draws cases and scores
both versions on the same draw. So it measures the difference itself, which is usually tighter
than comparing two separate intervals.
- On a terminal, a line is green when the whole interval is above zero (the left side is better), red when it is all below zero (worse), and grey when it includes zero. Only green and red are a verdict. A grey line means this eval cannot tell the two apart: here v2 may be up to 5.8 points better than acme/triage@v1 or 2.2 points worse. More cases narrow the interval. Off a terminal there is no colour, so read the interval.
- The version you score is on the left and the reference on the right. The base is compared with
the reference and always shown on the right, so with
--againstits line isacme/triage@v1 vs base, notv2 vs base. Without--against, the version you score is the reference and the line isv2 vs base. With neither flag, the run scores one version and compares nothing. - The CLI prints the macro-F1 lines only. The run also compares accuracy, in points, and the
Brier score, the mean squared error of the probabilities, where lower is better. In
v2 vs acme/triage@v1: Brier -0.033 (better; CI -0.074…+0.005) on 420 cases, the word follows the sign of the difference and the colour follows the interval: green when the whole interval is below zero, red when it is all above. The dashboard shows these lines on request. --jsonhas every comparison as the trainer computed it:metric,a,b,value_a,value_b,diff(value_a − value_b),lo,hiandcases. There the base isaand the referenceb, so the base’sdiffhas the opposite sign from its line.
turion eval waits for the run, up to 30 minutes, with a spinner on a terminal. Ctrl-C stops the
waiting, not the run, and prints where to read the run later: its page on the dashboard
(https://turion.ai/members/d/acme/models/acme/triage-2?tab=evals&eval=ev_…) or, from Python,
client.evals.get('acme/triage-2', 'ev_…'). client.evals.cancel('acme/triage-2', 'ev_…')
stops it. A run still going after 30 minutes makes the command exit with a timeout error that
names the same page and call; the run keeps going on the server. A run is a job on the trainer,
like a training job: it counts as one of your jobs and model calls in flight, and is metered in GPU-seconds
(What it costs). A decision training job that scored
held-out cases also records its report as a run of kind training.
In the workspace: a decision model’s page has an Evals tab. It lists the model’s runs, opens
one with its tables, reliability strips and comparisons, cancels one that is still queued or
running, and starts a new one with the same choices as turion eval on one model: a version, a
version of the same model to compare against and whether to score the base. It warns when the
dataset you pick is one a chosen version was trained on. A run that scored another model’s
version, started from the CLI or the API, shows it as acme/triage@v1.
Python SDK
Section titled “Python SDK”There is no SDK wrapper for turion eval. The scoring module it uses is part of the package:
import turionfrom turion import scoring
client = turion.Client()with open("evals.jsonl", encoding="utf-8") as fh: cases = scoring.load_cases(fh)
passed = []for case in cases: reply = client.chat.completions.create( "acme/support-v3", case.messages, trace=False, temperature=0 ) passed.append(scoring.score(case, scoring.output_text(reply["choices"][0]["message"])))
print(scoring.summarize(passed)) # {'metric': 'pass_rate', 'score': 0.92, 'passed': 46, 'cases': 50}A training job’s result is on the job: client.training.get("ft_…").eval.