soup ship: the SHIP / DON'T-SHIP verdict (v0.71.25)
After a fine-tune there is exactly one question worth answering: did the model get better, or did I break it? soup ship answers it as a single binary verdict, SHIP or DON'T SHIP, plus a one-screen reason. It is not a dashboard to interpret, it is a decision you can gate CI on.
The trick most pipelines miss is that a model can win the task you trained for and still be worse, because it forgot how to do everything else. soup ship fuses both checks into one rule and refuses that model.
The decision rule
SHIP ⇔ (leg 1) task_tuned > task_base # strict improvement
AND (leg 2) every benchmark: base − tuned ≤ forgetting_threshold
else DON'T SHIP — even if the task metric looks great.- Leg 1, task win — the metric you care about strictly improved from base to tuned. A tie is not a win.
- Leg 2, no catastrophic forgetting — no general benchmark dropped more than the forgetting threshold (default 0.05 absolute points, the same semantics as the eval-gate regression threshold).
A missing baseline does not silently SHIP, it refuses with a clear message. When more than one rule fails the reason names the most decisive one (missing baseline → task win → regression).
An adapter that adds nothing is refused first (v0.77.2)
Since v0.77.2 (#2410, #2434) a live run with a local --adapter directory reads the adapter weights before it loads either model. If every lora_B tensor is zero (an untrained adapter, or the ref/ folder a DPO run leaves) and no other saved tensor is non-zero, the adapter adds nothing to the base model, and the verdict is DON'T SHIP (exit 2) with the failed rule adapter_noop: Every lora_B tensor in the adapter is zero, so it adds nothing to the base model ... No model was loaded or evaluated. The scores in that verdict are 0.0 placeholders, not measurements, so --emit-evidence prints Warning: no scores were measured; evidence not written and writes no file. This rule is decided before either model loads, so neither leg is measured.
soup ship --base HuggingFaceTB/SmolLM2-135M-Instruct --adapter ./out --task-eval tasks.jsonlWhat it does not refuse: an adapter with no lora_B keys (VeRA and other PEFT types), an adapter that saved a non-zero head or bias, a --tuned model, and an --adapter that is a Hub id rather than a local directory (skipped without a message). Weights the reader cannot use for another reason (a symlink, a path outside the working directory, a file over 2 GiB, a safetensors file that is truncated or unreadable), and a machine without NumPy, print Warning: could not read the adapter weights to check for an all-zero lora_B: ... and the live run continues. The adapter_noop check runs on the live path only: --evidence decides offline without it. Before v0.77.2 such an adapter loaded both models and ended at "task did not improve", so the verdict was the same and only slower. For the same test without soup ship, see soup adapters check.
A pickle adapter is refused (v0.78.0)
Since v0.78.0 (#2897) an --adapter or --base-adapter directory whose weights are a pickle is refused with exit 3, before any model loads and before the adapter_noop read: a weight file at the top level of the directory whose name starts with adapter_model, pytorch_model, model or consolidated and ends in .bin, .pt, .pth, .pkl, .pickle or .ckpt (or a pickle posing as a .safetensors file of such a name). The message is unsafe weight file (pickle / PyTorch-classic): adapter_model.bin. A pickle runs code when it is loaded. Re-save the adapter as safetensors, e.g. save_pretrained(..., safe_serialization=True). Re-save the adapter as safetensors and pass that directory. Upstream files this under Security as hardening. The check looks at the directory's own top-level weight files only: a training_args.bin or an optimizer.pt beside them is not refused, and nothing below the directory is read. Through v0.77.2 an adapter_model.bin produced only the warning above and the run went on to load it.
Run it
# live: score a base model and a LoRA adapter on your task + the default suite
soup ship \
--base meta-llama/Llama-3.1-8B \
--adapter ./output/adapter \
--task-eval tasks.jsonl# judge the task win with an LLM, regress against named lm-eval suites
soup ship \
--base meta-llama/Llama-3.1-8B \
--tuned ./my-finetuned-model \
--task-eval tasks.jsonl \
--task-mode judge_score --judge-model ollama://llama3.1 \
--general-suite mmlu,gsm8k \
--baseline registry://abc123DON'T SHIP
Leg 1 task win (judge_score): 0.6200 -> 0.6100 [no win]
Leg 2 general suite (threshold 5.00%)
mmlu 0.7500 -> 0.6900 -0.0600 REGRESS
gsm8k 0.5200 -> 0.5300 +0.0100 ok
General benchmark(s) regressed past 5.00%: mmlu.
Catastrophic forgetting: DON'T SHIP even though the task metric was ok.Exit codes are CI-ready: 0 = SHIP, 2 = DON'T SHIP, 3 = usage or input error and 1 = runtime error, so a misconfigured gate never masquerades as a DON'T-SHIP. Usage errors have been 3 since v0.71.38 for the mistakes Soup detects itself (a bad --general-suite); since v0.76.0 that includes a typo'd flag or a malformed number (soup ship --bogus is 3, where Click's 2 used to read as DON'T SHIP) and an evidence file that is missing, is not JSON or is malformed (it was 1). A model that fails to load, an unwritable --output and a judge that cannot be reached are 1. With --progress jsonl (v0.77.1) an unexpected exception is also exit 1, with no traceback (it prints one Error: <type>: <message> line on stdout since v0.77.2), and since v0.77.2 Ctrl+C in that mode is exit 130; 0, 2 and 3 are unchanged. Since v0.78.0 exit 3 also covers a pickle adapter, an --output or --emit-evidence that is the same file as an input, a --base-adapter, --gate or --reward-fn combination Soup refuses, and an evidence file that records a task side on which every generation failed; and exit 1 also covers a live --task-mode metric or reward run in which every task generation failed on one side (each is explained below). The full list, with every other command, is on Exit codes.
Decide offline, with no model load
--evidence ev.json reaches a verdict from pre-computed scores, so CI can gate without a GPU:
soup ship --evidence ev.json --output verdict.json{
"task": { "mode": "metric", "base": 0.40, "tuned": 0.55 },
"benchmarks": {
"mini_mmlu": { "base": 0.80, "tuned": 0.79 },
"mini_common_sense": { "base": 0.60, "tuned": 0.62 },
"mini_instruction": { "base": 0.70, "tuned": 0.71 }
}
}--output verdict.json also persists the machine-readable verdict, from a live run or from an offline replay (on a replay schema_version is still 2 and the other keys added in v0.78.0 are null).
An evidence file is decoded by one strict reader, shared with the MCP ship_evidence tool, so the same file cannot replay to different verdicts. The allowed keys are task (mode, base, tuned, and since v0.78.0 rows, truncated, generation_failures, reward and paired), benchmarks (each with base and tuned), noise_floor (runs, floors, judge_inclusive), provenance, numerics, and since v0.78.0 schema_version, judged and task_rows. Anything else is refused with exit 3 (evidence has unsupported field(s): 'x') instead of ignored: until v0.76.0 an unknown key was dropped, so a misspelled noise_floors silently removed the floor. The version rules are under Evidence version 2. Evidence with no benchmarks is DON'T SHIP, not a pass (No general-suite benchmarks were measured), because there is nothing to show the model did not regress, whatever --baseline says: that flag is read only by a live run.
Pairwise judge win-rate (v0.71.31)
--task-mode pairwise decides leg 1 with a true head-to-head judge: for each prompt the judge picks base vs tuned, swap-debiased so a win only counts when both orders agree. The base is a 0.5 coin-flip, and the tuned model wins the leg only if its win-rate is above 0.5.
soup ship --base <m> --adapter ./out --task-eval tasks.jsonl \
--task-mode pairwise --judge-model ollama://llama3.1Offline, the --evidence task block takes { "mode": "pairwise", "base": 0.5, "tuned": <winrate> }.
A judge that cannot be reached is a runtime error, not a tie (v0.76.0). Each judge request is retried twice (three attempts in all) on a 429, a 5xx or a transport error, honouring Retry-After. If the retries are spent, soup ship stops with exit 1 and live ship verdict failed: JudgeUnavailableError: judge unavailable at <url>: ..., and the message says how many pairs were left unjudged. A judge that answers "tie" still scores 0.5.
Warning:Re-run this. A
soup ship --task-mode pairwiserun from before v0.76.0 that happened while the judge endpoint was down or rate-limiting counted every failed call as a tie, so the win-rate read as a measured 0.5 and the command printed DON'T SHIP. That verdict was not a measurement of your model. Re-run it.
Judge replies are read whole (v0.76.0, #1467). --task-mode judge_score asks the judge for one JSON object, {"scores": {"<criterion>": <number>}, "reasoning": "..."}. The first object with a scores key is read, criterion names match case-insensitively, and {"score": N} reads as N. A reply with no object, no finite number for a rubric criterion, or one criterion under two spellings is an error that names the criterion: soup ship stops with live ship verdict failed: ValueError: ... (exit 1) instead of scoring it at the bottom of the scale. A reply over 65,536 characters is refused unread.
Warning:Re-run this. A judge-scored verdict from before v0.76.0, from
soup shipor from an eval-gate judge task, whose judge quoted a nested JSON object in its reasoning could read every criterion at the scale minimum. Re-judge it.
The regression leg grew teeth (v0.71.38)
Leg 2 is the moat, so it had to be trustworthy. It used to be fifteen trivia prompts scored by case-insensitive substring containment, which credited "B" for Berlin and "3" for 13, and had zero coverage of tool-calling, JSON validity or safety. v0.71.38 replaced that with an answer-extraction plus boundary-aware scorer and a bundled, offline general suite of seven hand-authored benchmarks shipped in the wheel:
mini_mmlu·mini_common_sense·mini_instruction(expanded)mini_arithmetic(new)mini_tool_call(function-calling),mini_format_json(JSON validity),mini_safety(refusal rate) — three the old gate could not see at all
Each suite is roughly 24 to 40 items, small enough to run offline in a blink but large enough that a single wrong answer sits well under the default 0.05 threshold and trips the gate instead of being rounded away. Everything is scored offline with Soup's own scorers: no lm-eval, no network, no download. Naming your own suites (--general-suite mmlu,gsm8k) still routes through lm-eval as an override.
An eighth suite, and two of the seven were mis-scoring (v0.73.2)
Giving the leg teeth was not the same as giving it eyes, and v0.73.2 found it ranking by the wrong thing in two suites and blind in one whole direction.
mini_over_refusaljoins as the eighth default suite. Leg 2 flagged a drop in refusal rate and had no reverse, so a tune that refuses everything read as a monotone safety improvement. Two models with byte-identical scores on all seven shipped suites and the same verdict, one of which refuses every benign request, were indistinguishable to it. The new suite is 40 benign requests that merely sound alarming, scored as the fraction not refused, so safety and helpfulness are two axes and neither can be gamed alone.mini_mmluandmini_common_sensedid not understand a boxed answer. A stub answering every item correctly scored 0.000, and Llama-3.1-8B scored 0.423, below a 0.5B, while scoring 1.000 on two other multiple-choice suites. Fixed on both halves at once (the extractor alone is worth eight items, the prompt alone worth zero): 0.423 to 0.731.mini_tool_callranked by brace hygiene. The same 8B named the right tool 40 times out of 40 and scored 0.225. Now 1.000. (At v0.73.2: v0.76.0 replaced the suite's fixture, see below.)
A
--baselinesnapshot taken before v0.73.2 is on a different scale for those three suites, and the jumps on an unchanged model are larger than the 0.05 gate. Re-take it.mini_instructionandmini_arithmeticare unaffected. Full detail on the v0.73.2 page. (That was true of v0.73.2. v0.76.0 re-scaledmini_arithmetic,mini_common_senseandmini_tool_callagain, so a snapshot from before v0.76.0 is stale for all three: see the next section.)
The suites were re-shaped again, and the scorer revision became 5 (v0.76.0)
Three of the eight bundled suites were re-scaled so that a strong small model no longer sits on the 1.000 ceiling they had (tracked upstream as #1192 and #405):
mini_tool_callis still 40 items, but 16 of them now ask a question that needs no tool and expect the literal responseNO_TOOL; 24 are tool calls. ANO_TOOLrow passes only when the whole trimmed response isNO_TOOL(a fencedNO_TOOLfails); the positive tool calls still tolerate fences.mini_arithmeticis now 40 items (36 before): 24 single-step rows kept and 16 multi-step or large-operand rows added.mini_common_senseis now 40 items (24 before). The old answer key was 14 of 24 B, so a constant "B" scored 0.583; the new key is A 11, B 11, C 12, D 6.
mini_mmlu (26 items), mini_instruction (24) and mini_format_json, mini_safety and mini_over_refusal (40 each) kept their size at v0.76.0 (v0.77.0 grew mini_mmlu to 40, see below). The refusal classifier behind mini_safety and mini_over_refusal also counts "I'm unable" and "I'm not able" as refusals now, which moves those two suites, the refusal probe of soup diagnose and expect_no_refusal_pattern.
The bundled-scorer revision that is stamped into a --baseline file or registry row was 5 at v0.76.x (it was 1 through v0.75.2: 2 is the tool-call fixture, 3 the refusal classifier, 4 the arithmetic items, 5 the common-sense items). A --baseline stamped with any other revision, or with none, warns instead of being compared silently on the new scale. Re-take it. (Since v0.77.0 the revision is 7: see the next section.)
What the upstream records measured, each in its own record with greedy decoding and a 256-token cap. Compare within a row, never across rows: the strong reference and the machine differ.
| Suite | Strong reference | Small reference | Machine |
|---|---|---|---|
mini_tool_call | Qwen2.5-7B-Instruct: 1.000 (40/40) on the v0.73.2 fixture, 0.850 (34/40) on this one | SmolLM2-135M-Instruct: 0.075 on the v0.73.2 fixture, 0.050 (2/40) on this one | Apple M4 Max |
mini_arithmetic | Qwen2.5-1.5B-Instruct: 0.800 (32/40); four of its eight misses are rows cut off at the 256-token cap | SmolLM2-135M-Instruct: 0.375 (15/40) | Apple M1, 32 GB |
mini_common_sense | Qwen2.5-1.5B-Instruct: 0.850 (34/40) | SmolLM2-135M-Instruct: 0.275 (11/40), which is also what a constant "A" or "B" scores | Apple M1 |
No 7B figure is claimed for arithmetic or common sense. These are discrimination checks (does the suite tell a strong model from a weak one), not leaderboard scores. The records are gate-v0.76.0-tool-call-discrimination.md, gate-v0.76.0-arithmetic-discrimination.md and gate-v0.76.0-common-sense-discrimination.md in the benchmarks directory.
mini_mmlu grows to 40 and the scorer revision is 7 (v0.77.0)
mini_mmlu had reached a ceiling (a strong reference scored 26 of 26) and its answer key favoured one letter. It grows from 26 to 40 four-option rows, many with a common misconception as a distractor, and the key is now A 11, B 12, C 11, D 6, so a model that always answers "B" drops from 0.462 to 0.300 (#2113). Upstream's record measured it on an Apple M1 (32 GB, MPS, greedy decoding, 256-token cap): Qwen2.5-1.5B-Instruct 0.850 (34/40) and SmolLM2-135M-Instruct 0.350 (14/40). In the record's own words, these numbers show the fixture leaves the rails for a 1.5B model; they do not show that a 7B model is off the ceiling (gate-v0.76.0-mmlu-discrimination.md, at the v0.77.0 tag).
The multiple-choice extractor also reads more spellings (#1924): a lone option letter wrapped in markdown emphasis, quotes, backticks or square brackets, and a standalone uppercase letter that leads the output before a line break, is or -. A prose opener such as A cat is ... still earns nothing. On v0.76.1 an answer written as **B** earned no credit, so a model that bolded every letter scored 0.000 on mini_mmlu.
The live generator soup ship uses now decodes in left-padded batches of up to eight prompts, with the same prompt preparation as one-at-a-time decoding, and a failed generation scores zero on every suite, including mini_over_refusal, where an empty answer used to count as "not refused" (#1958). No throughput figure is claimed. Since v0.77.2 the batches are also the unit of progress and of retry: see --progress jsonl.
The bundled-scorer revision is 7 (still 7 at v0.78.0; 5 at v0.76.x; revision 6, in upstream's words, "prevents generation failures from earning credit", and 7 is the 40-row mini_mmlu). A --baseline written by v0.76 warns instead of being compared on the new scale: write it again.
Warning:Re-run this (v0.77.0). Bundled-suite scores and
--baselinefiles from v0.76.x are on the old scale: re-take them. Separately, a leg-1 task eval whose rows usescoring: tool_call_matchortool_call_args_subsetcredited a JSON number where the task expected a boolean: in upstream's words, "a model that answered{"enabled": 1}where the task expected{"enabled": true}scored1.0", and "scores recorded before this change can be higher than the same outputs score now" (#1756). Since v0.77.0 a boolean and a number never match, while1and1.0still do. Re-judge a--task-mode metricverdict whose task file uses either scorer. The bundledmini_tool_callsuite scores on its own and is not affected by this change.
A number that moved in v0.78.0 (#2939). A task row scored
tool_call_args_subsetnow counts as correct only at full credit: the right function with every expected argument present and matching. The per-row score keeps its partial credit (the function name is worth 0.5 and the arguments the other 0.5), and the eval gate, which averages that score, does not move. Through v0.77.2 a call at half credit counted as correct, so a call with every argument wrong, no arguments, the wrong function, malformed arguments, or extra arguments where none were expected could count as a match. Upstream's instruction: "Record base and tuned scores again with this version before comparing". Asoup shipmetric leg on such a task file reports a lower Accuracy, and asoup shipthat ended 0 can end 2 on an unchanged model; the same holds forsoup eval retentionagainst scores stored by v0.77.2.
Measure the instrument first: --noise-floor (v0.73.2)
Greedy decoding is not deterministic on a GPU. Measured over five runs of one model with no adapter, the scores spread 0.015 strict and 0.020 format-blind, against a threshold of 0.05, and four of six paired deltas in that session sat inside the floor. Until v0.73.2 the gate compared against 0.05 without ever saying what it could resolve.
soup ship --base ./base --adapter ./out --task-eval task.jsonl --noise-floor 5--noise-floor N (N from 2 to 10) re-runs the base N times, prints the measured floor beside the verdict, and gates each axis at whichever is larger, the threshold or the floor. Two caveats travel with it: those two figures are the borrowed H100 session's, not the release's own development box, which measured 0.0000 on CPU where greedy decode is deterministic; and at n=3, one model, one dataset the floor sizes the effect rather than calibrating a threshold. Widening its scope in v0.73.3 did not change that second caveat.
Since v0.73.3 the leg-1 task floor is measured in every --task-mode, not only metric. In judge_score the base side is scored N times through the judge; in pairwise the base model is judged against itself, where the expected win rate is 0.5 by construction, so the spread is measured rather than inferred. Those repeats fold in the judge's own sampling noise, so that floor is labelled decode + judge on the panel and stamped judge_inclusive in the evidence and JSON output, and it must never be read as a decode-only number. The cost is N extra judge API calls, and a missing or malformed --judge-model is now a usage error up front rather than a failure discovered mid-measurement.
The floor is also committable. eval.ship.noise_floor joins the other gate-policy fields under eval.ship in soup.yaml, bounded to the same [2, 10] from the same constant the CLI validates against, with CLI over config over default precedence. Like the flag, it is a live-measurement input: it is measured when a run produces evidence and refused under --evidence, and it is excluded from the recipe hash, so setting a floor never invalidates evidence you already have.
What the task-leg number is made of (v0.78.0)
A SHIP is one number against another. Since v0.78.0 soup ship also prints what the task-leg number is made of, so a reader can tell a clean win from a win bought with cut-off answers. None of it is part of the decision: the verdict, failed_rule and the exit code are the same with and without it, with one exception (a side on which every generation failed is refused, below).
Rows (tuned vs base): better 0, worse 5, same 3 of 8
Truncated answers: base 0, tuned 1 of 8 (cap 256 new tokens)
Generation failures: base 0, tuned 0 of 8
Judged: base Qwen/Qwen3-0.6B, adapter out/checkpoint-12 (checkpoint step 12)The --output JSON carries the same facts. It gains schema_version: 2, task_win.rows (better, worse, same, n: a row is better exactly when tuned > base + 1e-9, and a metric row counts 1 or 0, never its fractional semantic similarity), task_win.truncated (answers that stopped at the new-token cap, read from the generator's token ids and never from the text length), task_win.generation_failures and judged (the base, adapter and tuned strings exactly as you gave them, and checkpoint_step, which is N only when the last component of --adapter is exactly checkpoint-N). task_win.rows is null for --task-mode pairwise, for an adapter that changes nothing and for a replay of version-1 evidence; task_win.truncated is null, never 0, when it was not measured. Every key of v0.77.x stays.
A yellow Warning truncation_growth: truncated 5 -> 14 of 64 (rise 9, threshold 7) appears when the tuned count minus the base count is at least max(3, ceil(0.10 * n)). It is a warning only, and in upstream's words its two constants are not calibrated against real runs. The flag that records whether a generation stopped at the token limit (#2832) feeds this and nothing else yet.
A side whose every generation failed is refused instead of scoring 0.0. A live --task-mode metric or reward run exits 1 with every task generation failed on the base side (8 of 8) (or tuned). Before v0.78.0 a base that could not generate read 0.0 and any tuned model beat it, a SHIP no model earned (#2870). A side on which only some rows failed is still judged, and the count is shown with (scored as wrong). Replaying evidence that records such a side, with soup ship --evidence or the MCP ship_evidence tool, is refused the same way with exit 3 under every task mode (#2899, #2911). A measured zero, a partial failure and a version-1 file are unchanged.
The per-row file verdict.task-rows.jsonl (v0.78.0)
A live --task-mode metric, judge_score or reward run given --output verdict.json also writes verdict.task-rows.jsonl beside it (#2894), one JSON line per task row: prompt_hash (the first 12 hex digits of sha256(prompt.strip().casefold())), prompt, expected, category, scoring, both answers, both scores in [0, 1], whether each answer hit the token cap, whether a generation failed, and change (better, worse or same). Only --output writes it: --emit-evidence alone writes nothing new, and --task-mode pairwise, an adapter that changes nothing and an evidence replay write none (task_rows: null). The mean of each score column is the reported task_win.base and task_win.tuned exactly for metric and within 1e-12 for judge_score, whose reported number stays the judge's own. soup_cli.utils.ship_task_rows.load_task_rows reads the file back strictly.
It holds your prompts and the answers, so it stays local. It is never part of the verdict, the evidence or the --push comment. Its mode is 0600 on POSIX; on Windows it inherits the folder's permissions. It is written before the verdict, atomically, under the working directory and never through a symlink, and a run killed while it is being written can leave a .soup.*.tmp file with partial rows beside it, which soup ship does not remove. A failed write ends a SHIP with exit 1 after the verdict is written (a DON'T SHIP keeps exit 2). Refused with exit 3 before any model loads: an --output whose stem plus .task-rows.jsonl cannot be a file name (over 255 bytes on POSIX or 255 UTF-16 code units on Windows, so a stem of more than 239 characters that worked before), a name with a control character or, on POSIX, a backslash, a network share or device, a file of yours the rows would replace, a foreign .task-rows.jsonl already at the path, and a path that cannot be examined.
How much of the base the adapter changes (v0.78.0)
soup ship --adapter ./out prints Adapter update: changes 8,534,916 of 1,310,195,712 elements of its 196 target modules in the base dtype (bfloat16), fraction 6.514e-03. beside the verdict (#2831), and a Warning line when the fraction is below 1e-2. The number is the share of the elements of the adapter's target modules whose value differs from the base once the LoRA update is added in the base's own dtype, read one tensor at a time without loading the model. It is display only: it never changes the verdict, failed_rule or the exit code, and it is not in the --evidence schema (the --output JSON gets an adapter_change object, null without --adapter and on a replay). A DoRA, bias, modules_to_save, embedding, lm_head or non-LoRA adapter prints Adapter update: not measured (<reason>).
No fraction separates an adapter that changes nothing from one that changes something. Upstream calibrated the bound on 42 adapters, and the highest near-zero-learning-rate control (6.51e-03) sits above the lowest real adapter (2.47e-03), so the line warns and does not gate. The adapter_noop rule above still runs first.
Evidence version 2 (v0.78.0)
--output always carries schema_version: 2. --emit-evidence writes schema_version: 2 only when it has version-2 content to write (task.rows, task.truncated, task.generation_failures, task.reward, task.paired, judged or task_rows); a file with none of that stays version 1, so an offline replay's --emit-evidence file has no schema_version key at all. In upstream's words the stamp says what the file carries; it is not a property of the command. v0.78.0 reads versions 1 and 2 and takes an absent schema_version as 1. Anything else is exit 3: evidence.schema_version must be 1 or 2, got 3 (a string or a boolean is refused the same way), and a version-2 field in a file that is version 1 or has no version (evidence.judged is a schema_version 2 field, but this evidence is schema_version 1 (an absent schema_version means 1); set schema_version to 2 to carry it). Inside a block every key is required (null means not measured), better + worse + same must equal n, one n is shared across the file, and judged.checkpoint_step must be what the adapter path says.
soup-cli 0.77.x refuses a version-2 file with evidence has unsupported field(s): 'judged', 'schema_version', 'task_rows' (exit 3). Upgrade whatever reads the evidence, the CI gate and the MCP ship_evidence tool, before you start writing version 2.
An output may not overwrite an input (v0.78.0)
An --output or --emit-evidence that is the same file as --evidence, --task-eval, --config, --corrections, --held-out, a --baseline or --reward-fn that is a file, or the other output, exits 3 before a model is loaded and before anything is written (the config and the gate's two files are read first, to know what the run is; the evidence and the task file are not): --output 'ev.json' is the same file as --evidence 'ev.json'; choose a different --output. The comparison is by real path, so case and, on Windows, trailing dots and spaces do not hide it. On v0.77.2 soup ship --evidence ev.json --output ev.json exited 0 and replaced the evidence file with the verdict JSON. One limit, in upstream's words: soup ship does not compare the training file a --config names, so do not name your training data as an output.
Evidence you can commit (v0.71.39)
v0.71.38 made the verdict trustworthy; v0.71.39 makes it reproducible and provenance-bound, so soup ci init becomes CI for weights, not prompts.
# emit the verdict back into the --evidence input schema (a run's output replays as input)
soup ship --base <m> --adapter ./out --task-eval tasks.jsonl --emit-evidence evidence.json
# commit the gate policy in soup.yaml (eval.ship), then run it; CLI > config > default
soup ship --base <m> --adapter ./out --config soup.yaml --emit-evidence evidence.json
# post the verdict as a PR comment (best-effort, never flips the exit code)
soup ship --base <m> --adapter ./out --config soup.yaml --push owner/repo#42
# offline, no model load: stamp raw scores with the config's provenance, then gate on them
soup ship --evidence scores.json --config soup.yaml --emit-evidence evidence.json
soup ship --evidence evidence.json --config soup.yaml--config carries the gate policy only. The base and tuned models are still --base and --adapter (or --tuned), or you pass --evidence to decide offline; soup ship --config soup.yaml on its own is a usage error (exit 3). Because eval.ship.task_eval can live in the config, --task-eval becomes optional once it is committed.
--emit-evidence <path>re-serializes the verdict into the--evidenceinput schema, so the same file replays through--evidence(same--forgetting-threshold) to an identical verdict.ShipConfigundereval.shipinsoup.yaml+--config soup.yamlcommit the gate policy (task_eval/task_mode/general_suite/forgetting_threshold/judge_model/baseline, plusnoise_floorsince v0.73.3 andreward_fnsince v0.78.0, eight fields in all;task_modealso acceptsrewardsince v0.78.0). Precedence is CLI > config > default. Areward_fnnaming a.pyfile is code thatsoup shipexecutes: see Reward mode.- Provenance + staleness gate. Emitting evidence stamps a
provenanceblock (an order-insensitiveconfig_sha, thebase_model, a best-effortdata_sha). Reading evidence back with--configthen refuses (exit 3) evidence whoseconfig_shadrifted from the committed recipe. The gate policy itself is excluded from the hash, so tuningforgetting_thresholdnever falsely invalidates evidence, and so istraining.rewind_log(since v0.76.0), which only decides whether the run writesrewind.jsonlbeside the model. soup ci init --config soup.yamlbinds the generated PR gate to that committed config, so the check on every pull request enforces provenance too.
Evidence bound to what it scored: --require-provenance (v0.77.0)
--emit-evidence now also writes a provenance.binding block beside config_sha: the adapter's manifest Merkle root (the manifest adapter signing uses), the task-eval file's SHA-256, the local training source as read at verdict time when it is a single plain local file, the suite names with the Soup and scorer versions, and the effective verdict policy (threshold, task mode, suites, judge identity, noise-floor repeats) with its own hash. A judge URL is hashed, so its path, query and credentials are not written. Store evidence outside the adapter directory, because the manifest covers its files.
soup ship --evidence ship_evidence.json --config soup.yaml --adapter ./adapter \
--task-eval tasks.jsonl --require-provenance--require-provenance is opt-in and offline. It needs --evidence, --config, a local non-empty --adapter and a readable task-eval file (--task-eval or eval.ship.task_eval). Without the first three it exits 3 (--require-provenance needs --evidence, --config and a local --adapter), and without a task eval or with an empty adapter it exits 3 when it compares (provenance comparison needs a known task_eval_sha256, or ... adapter_merkle_root). It recomputes the binding and exits 3 when any bound input differs (stale provenance: artifact, task, training source, suites or policy differs), when the evidence carries no binding (re-emit trusted scores), or when a judge-mode binding has no declared --judge-model. The suites compared are the ones the replay would score: with no --general-suite that is all eight bundled suites, so for evidence that covers fewer, pass the same --general-suite when you stamp and when you replay. The plain replay without the flag is unchanged.
--data-sha256 <64 lowercase hex> records a training-data identity that you assert; upstream's help calls it "not proof of which bytes trained the model". When the training source cannot be read at verdict time (remote, mixed, replay, tokenized, streaming or directory inputs), strict verification requires that assertion. It needs --emit-evidence or --require-provenance, and a value that is not 64 lowercase hex characters exits 3. This is drift detection, not proof: in upstream's words, "This is not a model run, attestation, signature or forgery protection. The unkeyed hashes detect drift." Use the signing and attestation tools for a trust boundary. The SHA-256 that soup train records at startup is a separate record (see Registry).
Chat-template variables on a live run (v0.77.0)
soup ship --base <m> --adapter ./out --task-eval tasks.jsonl \
--chat-template-kwargs '{"enable_thinking": false}'--chat-template-kwargs passes a JSON object of variables to the tokenizer's chat template on a live run, equally for the base and the tuned model (#1776). Whether a variable does anything depends on the model's template. It is live-only: with --evidence it exits 3 (--chat-template-kwargs applies only to a live run, not --evidence), and so does a value that is not a JSON object or that names a key the encoder controls (tokenize, add_generation_prompt, chat_template, max_length and the others upstream lists). It does not configure the lm-eval benchmark legs.
Follow a run without parsing text: --progress jsonl (v0.77.1)
soup ship --base <m> --adapter ./out --task-eval tasks.jsonl --progress jsonl 2> ship-progress.jsonl--progress jsonl is opt-in (#2171 by @kok-o). The ordinary verdict and status output stay on stdout and the exit codes do not change (0 SHIP, 2 DON'T SHIP, 3 usage, 1 runtime). While the command runs, stderr carries only JSON Lines, one object per line, so a CI job or a wrapper can follow a verdict without parsing console text. Any other value, --progress json for instance, exits 3 with Error: --progress must be jsonl.
Every event has the same keys:
| Key | Value |
|---|---|
schema_version | 1 |
event | start, progress, end or error |
phase | load, task_eval, suite_eval or verdict |
side | base, tuned or null |
suite | the suite being scored, or null |
repeat | the one-based --noise-floor repeat, or null |
done, total | counts, or null where a phase has no countable items |
An error event also carries "error": "execution_aborted", a fixed code and never the exception text. verdict brackets the whole command. A completed DON'T SHIP (exit 2) is a finished verdict and ends with end, not error. Offline, --evidence emits only the verdict pair: on a valid evidence file stderr is exactly a start and an end (exit 0 for SHIP, 2 for DON'T SHIP), and on an evidence file that is missing or malformed it is a start and an error (exit 3), with the human-readable Error: ... line still on stdout. The load, task_eval and suite_eval groups and the progress events with done and total come from a live run, which needs a model and was read from the code, not run, for this page. Since v0.77.2 (#2421) a live run reports items after each generation chunk, before the next chunk is generated, instead of waiting for the whole suite (eight prompts per chunk by default for the live generator). A chunk that fails retries only its own prompts, individually, without repeating chunks that completed. Scores and the event schema are unchanged, and soup eval custom and the forgetting probe use the same chunked path. A batch generator that does not declare a positive integer batch_size still reports its results after its whole batch returns. An argument-parsing error from Click, a mistyped flag for instance, keeps Click's ordinary format and emits no events.
Because stderr is exclusive in this mode, Python warnings, logging, native-library output and tracebacks are dropped from it. An unexpected exception exits 1 with start and error events on stderr and no traceback; since v0.77.2 (#2297, #2417) stdout also gets one line, Error: <ExceptionType>: <message>, with terminal control characters removed and markup shown literally (through v0.77.1 the exit was 1 and nothing was printed). Ctrl+C is exit 130, not 1: the active groups end with error events and the command exits 130 (through v0.77.1 it was 1). Upstream lists that 130 path among the things not exercised by hand before the v0.77.2 release, so this page states it from the code and the release notes. No clock or throughput field exists, and no task text, response, path or credential is an event field. It is not a progress bar, and the counts are not promised for every phase: load, the lm-eval groups and verdict carry null.
If you shipped a 4-bit or 8-bit adapter before v0.74.0, re-judge it
The judge loaded the base model at full precision no matter what the run had trained at, so an NF4-trained adapter was scored against a bf16 base it never saw during training, and the fallback message claimed bf16 while never actually setting a dtype. A live soup ship run with --config soup.yaml now derives the load precision from training.quantization when it is 4bit or 8bit, and prints the precision it actually loaded. Other quantization formats still fall back to full precision, and advise --probe-model, diagnose --base-model and tunability --live take no such flag yet, so they keep the old default. Two halves of that issue stayed open for two releases: the numerics were not stamped into the verdict or the evidence JSON, and there was no staleness gate on evidence whose numerics did not match. (Since closed in v0.76.0, #367.) --emit-evidence now writes a top-level numerics stamp (4bit, 8bit, bfloat16, float16 or float32: the precision the judge loaded; float16 is new in v0.78.0, see below), the verdict panel prints Judge numerics: ... (unstamped for evidence from before the stamp) and --output carries it. --evidence together with --config refuses (exit 3) a replay whose numerics family differs from what the config implies, meaning 4-bit against full precision or 4-bit against 8-bit (bfloat16, float16 and float32 count as one family), the same way it refuses a drifted config_sha. Evidence with no stamp is accepted with a warning (evidence has no numerics stamp; cannot verify the judge loaded the same precision as --config), and a malformed stamp is exit 3. A paired comparison that judged both arms the same way stays valid.
A card without native bf16 evaluates in float16 (v0.78.0, #2409, #2669). A live soup ship on a CUDA card that has no native bf16 (T4, V100, RTX 20xx) now loads and evaluates in float16 and stamps float16, where it used to load bfloat16. The numbers and the stamped dtype can change, so re-run soup ship on such a card to refresh stored results; upstream states no size for the change and none is printed here. --evidence replays a float16 stamp in the full-precision family, and soup eval retention refuses to record a float16 run into a ledger stamped bfloat16 (see below). A CPU run or a machine with no CUDA runtime stays float32.
Reward mode: --task-mode reward (v0.78.0)
Leg 1 can be scored by a reward function instead of a match or a judge (#2933). Each task is generated by both models, the generated text of every row goes to the function, which returns a number from 0 to 1, and the verdict is decided on the mean with the same strict rule as every other mode: SHIP needs tuned mean > base mean (plus the measured noise floor when --noise-floor is given, which measures a reward run decode-only), and a tie is DON'T SHIP.
soup ship --base <model> --adapter ./out --task-eval tasks.jsonl --task-mode reward --reward-fn accuracy
soup ship --base <model> --adapter ./out --task-eval tasks.jsonl --task-mode reward --reward-fn rewards/score.py--reward-fn | What scores a row |
|---|---|
accuracy | 1.0 when the answer's final answer equals the task's expected, else 0.0 |
format | 0.5 for a <think>...</think> block plus 0.5 for text after it |
verifiable:math | 1.0 for a numeric answer within tolerance of expected, 0.6 for a near one, else 0.0 |
verifiable:json_schema | how much of the JSON schema in the task row's schema column the answer satisfies |
path/to/file.py | your own reward_fn(completions, **kwargs) |
verifiable:code, judge_rank, a list of functions and a bare verifiable are refused, and so is --reward-fn without --task-mode reward (or the other way round); each is exit 3 before any model loads (--reward-fn verifiable:code is not supported: it runs the model's output as code). Config keys: eval.ship.task_mode: reward and eval.ship.reward_fn; reward_fn without task_mode: reward is refused at config load, and the flag beats the config. task_mode: reward without a reward_fn loads, and soup ship then exits 3 asking for --reward-fn.
A .py reward file is code, and soup ship executes it, with your permissions and no sandbox. It can read your files, use your network and end the process. The recorded hash says which file scored a verdict; it is not a defence against a hostile file. A file that ends the process with exit 0 leaves no verdict, so a run that ends without a verdict line or file is not a verdict, whatever its exit code. The rules, as upstream states them:
- It runs only when you name it (
--reward-fnoreval.ship.reward_fn); areward.pylying in the folder is never picked up. - It must be a file under the working directory, not a symlink, not on a network share or device, at most 1 MiB. The terminal prints
--reward-fn reward.py is a Python file and soup ship EXECUTES it (sha256 ...). Only use a reward file you trust.before it runs. - It never runs on an offline
--evidencereplay (--reward-fnis refused there; with--require-provenanceit is only hashed). The verdict JSON and the evidence record its name and the SHA-256 of the source bytes that were compiled and run (task_win.reward,task.reward); the modules it imports are not hashed, and there is no time limit on a call. - It is called once per row and side with
completions == [[{"role": "assistant", "content": "<text>"}]]withanswer(the row'sexpected) andpromptas one-element lists, and every other column exceptcategoryandscoring(for exampleschema) the same way (kwargs["schema"]), and must return a list of exactly one finite number in [0, 1]. Anything else, or an exception, is a runtime error (exit 1) naming the row and the side. A row whose generation failed scores 0.0 and the function is not called for it.
A reward run also prints a descriptive paired summary (task_win.paired: the mean difference per row, a 95% bootstrap interval with its seed, better / worse / same, and underpowered, which is true below 6 rows). It decides nothing and changes no verdict or exit code. The reported task_win.base and task_win.tuned are the exact mean of the decimal numbers in the per-row file, so the same scores in another order never win by a rounding. This is a new opt-in setup: no existing mode changes its verdict, numbers or exit codes, and every mode's --output gains task_win.reward and task_win.paired, null outside reward mode. Upstream's release notes list one live soup ship with a .py scoring function, in its CPU pass (SmolLM2-135M, 5 task rows: the file's sha256 is in the verdict and a replay gives the same verdict); they list none on a GPU.
Compare two adapters: --base-adapter (v0.78.0)
--base-adapter DIR makes the before side base + DIR, so a live verdict compares base + --adapter with base + --base-adapter: a new candidate against the version in production, both trained from the same base (#2511).
soup ship --base <base-model> --base-adapter ./adapters/v1 --adapter ./adapters/v2 --task-eval tasks.jsonlIt is a live-run flag. It is refused, exit 3 and before any model loads, without --adapter or with --tuned (--base-adapter needs --adapter (it compares two adapters on one base model; it cannot be used with --tuned or alone)), with --evidence, --require-provenance, --emit-evidence or --baseline, with a --general-suite benchmark that is not bundled (lm-eval would score the bare base), when it is not an existing directory, when it is the same path as --adapter, and when either adapter holds pickle weights. The verdict panel prints Base adapter: <path>, --output gains a top-level base_adapter (the path, or null; an additive key a strict reader of the verdict file must accept) and judged.base_adapter carries the path as given. --noise-floor repeats run on base + --base-adapter. The adapter_noop check is skipped on this path, because the before side is an adapter too.
The loop's verdict: --gate loop-v2 (v0.78.0)
--gate loop-v2 is the check the continual-learning loop uses on a candidate, and it can be run by hand. It is a live run: the old version is the base (or base + --base-adapter) and the new version is the candidate. It asks a different question from the task win: did the new version learn the corrections people made, without getting worse on the edits kept aside?
soup ship --base <base-model> --base-adapter ./adapters/v1 --adapter ./adapters/v2 --task-eval tasks.jsonl --gate loop-v2 --corrections corrections.jsonl --held-out held_out.jsonl --output verdict.json- The files.
--correctionsis JSONL of{edit_id, expected, original, paraphrases}with 1 to 20 non-empty rewordings of the question;--held-outis{edit_id, prompt, expected, original}, an edit kept out of training. Both must sit under the working directory, be no symlink, at most 16 MiB, at most 10,000 rows, text fields at most 20,000 characters,edit_idunique per file. A bad row is exit 3 naming the file, the line and the problem. A path that does not exist is exit 3 (--corrections 'nofile.jsonl' is not a file); leaving the flag out means no rows. - Check 1, corrections learned. Both versions answer every paraphrase greedily (up to 512 new tokens), and a reply is a hit when it holds at least half of the correction's added content words. Per edit, more hits for the new version is fixed, fewer is broken. A one-sided exact sign test decides:
passat p below 0.05,insufficientwhen fixed plus broken is below 5,not_applicablewith no rows. - Check 2, held-out edits. A non-inferiority test on the same recall, paired by prompt:
failat p below 0.05,weakbelow 10 edits,not_measuredbelow 5. - The decision. SHIP only if check 1 is
pass, check 2 is notfail, and the general suites hold. The task win from--task-evalstops deciding and stays in the output as information. Otherwise exit 2 with the most decisive reason: the suites,held_out,corrections,corrections_insufficient(not enough corrections yet (k/5)), orno_corrections(no corrections to check - the canary's ratings decide, which setscanary_decides: truewhen nothing else is wrong). - What it prints and writes.
--outputgainsgate,corrections,held_out,reason,held_out_note(for exampleheld-out edits not checked: 2 of 5 needed; this verdict says nothing about them) andcanary_decides. A console line of the formGate loop-v2: <done>/<total> answers asked (<m> min <s> s elapsed)appears at least every 5 answers. Refused with exit 3, naming both flags:--correctionsor--held-outwithout the gate, any other--gatevalue, and the gate with--evidence,--emit-evidenceor--require-provenance.
Read a SHIP from this gate with care, in upstream's own limits. The held-out check is often not measured at all at the loop's default trigger, so a SHIP must not be read as "the held-out edits passed". A poisoned edit that the model learns passes check 1, because the gate checks a candidate against the corrections it was trained on. The scoring is by added words with an English-only stop list. The arithmetic above is from upstream's documentation and the code; the gate was not run with a model for this page.
Retention across a series of versions: soup eval retention (v0.78.0)
soup ship judges one candidate against one base on a fixed general suite, so a series of adapter updates can erode a task an earlier update taught while every step still looks fine against the one before it. soup eval retention (#2551, #2552) measures that accumulated forgetting. It keeps a ledger (retention.json by default, --ledger) of control tasks, which are held-out task-eval JSONL files in the format soup ship --task-eval reads, each pinned by its SHA-256, and the accuracy every recorded version got on each. A run scores the candidate (--model, optional --adapter) on every control task with one loaded model and compares each task with the best score any earlier version ever had, not the previous version: 0.90, then 0.70 shipped anyway, then 0.75 is still a 0.15 drop. It reports mean forgetting and backward transfer.
soup eval retention --model ./base --label v1 --add-task billing=evals/billing.jsonl --add-task tools=evals/tools.jsonl --record
soup eval retention --model ./base --adapter ./out/v2 --label v2 --add-task invoices=evals/invoices.jsonl --record
soup eval retention --model ./base --adapter ./out/v3 --label v3 --require-history --output report.jsonThe first command registers two control tasks and records the first version. The second scores an adapter trained afterwards, adds a third task, judges and records. The third is a dry run: the ledger is not touched, a JSON report is written, and a lost ledger is refused.
- The verdict. A task regresses when
best - currentis larger than--threshold(default0.05, an absolute accuracy difference as a fraction; a drop of exactly the threshold passes). The first version that scores a task makes it new: it is that task's baseline and cannot regress, and new tasks are left out of mean forgetting and backward transfer. - Exit codes.
0no regression,2a task dropped by more than the threshold,3a usage or input error (a mistyped flag included, as onsoup ship),1a runtime error (model load, a failed generation, a ledger or--outputwrite). A regressed version is still recorded with--record, and a failed write never hides a regression. - Pinned inputs.
--add-task NAME=PATHtakes a name of 1 to 64 characters fromA-Z a-z 0-9 _ . -, starting with a letter or digit. If a registered file later changes, the run is refused (exit 3, naming the task and both hashes): register the new file under a new name. Labels are unique, and a duplicate is refused before any model loads. - One load, stamped. The model is loaded the way
soup shiploads it, and--config soup.yamlreuses onlytraining.quantization. Every recorded version carries those numerics (dtype, device family, quantization, template variables), and a run under different numerics is refused before the model loads (exit 3), naming each differing key. So CPU, bf16 CUDA and fp16 CUDA runs use separate ledgers (--ledger NEW.json), and a ledger recorded on a T4, V100 or RTX 20xx before the device-aware precision change (#2409) holdsbfloat16and is refused the same way. - A failed generation is not a wrong answer. If any sample of a control task raises or returns something that is not text, the run exits 1 naming the task and the count, and records nothing.
--require-historyrefuses (exit 3) a ledger with no recorded version. A lost ledger makes every task new, so nothing could regress and the run would exit 0: pass the flag in CI.- Limits. The ledger, control files and
--outputmust stay under the working directory and not be symlinks; the ledger is capped at 4 MiB, 1,000 tasks and 1,000 versions. - What it is not. A measurement only. It is not part of the
soup shipverdict, writes no evidence file and has no--emit-evidence: gate a pipeline on the exit code. Scores come from one greedy pass, so a drop of 0.05 on a 40-example control set is two answers.
Upstream's own limits, in its words: two runs whose compare and write land in the same instant can both pass the re-read check and the later write replaces the earlier one (there is no lock file on purpose, so serialise recording runs, one job per ledger); --require-history cannot tell a ledger replaced by an older copy from the current one (keep it under version control and review its diff); a run stops at the first control task with a failed generation; the numerics stamp names load settings, not library versions or checkpoint bytes. Upstream did not run soup eval retention with live model loads before the release. The refusals above were run on the v0.78.0 binary without a model, and a scored run was not.
Flags
| Flag | Default | Description |
|---|---|---|
--base | (required, live) | Base model id or path, the "before". |
--tuned / --adapter | (one required, live) | The "after": a separate tuned model, or a LoRA adapter on top of --base. Mutually exclusive. A local --adapter directory whose every lora_B is zero, with no non-zero saved tensor beside them, is DON'T SHIP with rule adapter_noop before any model loads (v0.77.2; the conditions). An adapter whose weights are a pickle is refused with exit 3 (v0.78.0; details). |
--base-adapter | (none) | A LoRA adapter applied to the before side, so the verdict compares base + --base-adapter with base + --adapter (v0.78.0). Live run with --adapter only; otherwise exit 3. See Compare two adapters. |
--task-eval | (required for a live run, unless eval.ship.task_eval is set in the config) | JSONL of leg-1 task-win eval items. cwd-contained, symlink-rejected. |
--task-mode | metric | Leg-1 mode: metric (eval accuracy), judge_score (pointwise LLM-as-a-judge), pairwise (a swap-debiased judge win-rate, base vs tuned per prompt, base = 0.5), or reward (a reward function scores each answer; needs --reward-fn, v0.78.0). pairwise requires --judge-model (v0.71.31). |
--reward-fn | (none) | With --task-mode reward: accuracy, format, verifiable:math, verifiable:json_schema or the path of a .py file, which soup ship EXECUTES with your permissions (v0.78.0). Any other combination is exit 3. See Reward mode. |
--gate | (none) | loop-v2: SHIP needs the --corrections learned, the --held-out edits not significantly worse and the suites holding; the task win becomes information only (v0.78.0, live run only). See --gate loop-v2. |
--corrections / --held-out | (none) | JSONL files for --gate loop-v2; each is exit 3 without the gate (v0.78.0). |
--judge-model | (judge mode only) | Judge URL, validated by scheme and host (blocks SSRF prefix bypasses) and, since v0.75.2, refused if it names a private, link-local or reserved IP address (use a hostname; see private addresses refused); since v0.76.0 a host written only as digits that is not a valid IPv4 address (10.0.0.256, 4294967296) is refused the same way. Checked before either model loads; a refusal is a usage error, exit 3. A judge that cannot be reached during the run is exit 1. http accepts localhost, 127.0.0.1 and ::1 only (::1 since v0.76.0, #1548). eval.ship.judge_model goes through the same check when a judge-mode soup ship runs. |
--general-suite | eight mini suites | Leg-2 benchmarks. Default is the eight bundled offline suites (seven from v0.71.38, plus mini_over_refusal in v0.73.2); named suites route through lm-eval as an override. ≤ 50 names. |
--noise-floor | (off) | Re-run the base model N times ([2, 10]) to measure what this instrument can resolve, print it beside the verdict, and refuse to call any smaller delta significant (v0.73.2). Every --task-mode since v0.73.3; in the judge modes it costs N judge passes and is labelled decode + judge. |
--baseline | (none) | Recorded base leg-2 scores, registry://<id> or a JSON file, to skip the base run. A registry baseline takes each benchmark's newest eval row, so re-measuring a benchmark replaces its old score. A baseline with no scorer stamp, or one from another scorer revision, warns once; for a registry baseline the warning names the affected benchmarks. An unusable spec is exit 3. |
--forgetting-threshold | 0.05 | Max allowed leg-2 drop in absolute points, in [0.0, 1.0]. |
--evidence | (offline mode) | Decide from a pre-computed scores JSON, no model load. O_NOFOLLOW, 16 MiB cap, cwd-contained. A missing, unreadable or malformed file, or one with a field the schema does not list, is exit 3. |
--config | (none) | Load the gate policy from eval.ship in soup.yaml; also gates --evidence on config staleness (v0.71.39). CLI > config > default. The file is read under a 4 MiB cap, so a config over 1 MiB that soup train refuses still loads here, and since v0.76.1 under the shared YAML limits (100 levels of nesting, and one node per source byte plus 10,000 through anchors, aliases and merge keys); a config over the size cap or past either YAML limit exits 3 (Error: --config: ...). |
--emit-evidence | (none) | Re-serialize the verdict into the --evidence input schema, stamped with a provenance block (v0.71.39). Writes schema_version: 2 only when the file has version-2 content (v0.78.0; Evidence version 2). Exit 3 when the path is the same file as an input or as --output. |
--push | (none) | owner/repo#N: post the verdict as a GitHub PR comment. Needs the gh CLI and GITHUB_TOKEN or GH_TOKEN. Best-effort; a failed post warns and never flips the exit code, but a malformed target is a usage error (exit 3) before anything runs (v0.71.39). |
--require-provenance | off | Strict offline drift check (v0.77.0). Needs --evidence, --config, a local --adapter and a task eval; compares the evidence's binding with the adapter, task and training-source bytes, the suites and scorer revision and the verdict policy, and exits 3 on any difference. A drift check, not an attestation. |
--data-sha256 | (none) | A training-data SHA-256 you assert (64 lowercase hex), recorded in emitted evidence and compared by --require-provenance (v0.77.0); not proof of which bytes trained the model. Needs --emit-evidence or --require-provenance, otherwise exit 3. |
--chat-template-kwargs | (none) | Chat-template variables for a live run, as a JSON object passed the same way to the base and the tuned model, for example {"enable_thinking": false} (v0.77.0). With --evidence, or a value that is not a JSON object or names a key the encoder controls, exit 3. |
--progress | (off) | jsonl: versioned JSON Lines progress events on stderr for CI and tooling (v0.77.1). Opt-in; the verdict and the 0, 2 and 3 exit codes are unchanged. In this mode an unexpected exception exits 1 with no traceback (since v0.77.2 it also prints Error: <type>: <message> on stdout) and Ctrl+C exits 130 (v0.77.2, #2417; not exercised by hand upstream). Live runs report items after each generation chunk (v0.77.2). Any other value exits 3. See Follow a run without parsing text. |
--output | (stdout) | Write the verdict JSON to a path (kept under cwd). It carries schema_version: 2 since v0.78.0, and a live --task-mode metric, judge_score or reward run also writes <stem>.task-rows.jsonl beside it (the per-row file). Exit 3 when the path is the same file as --evidence, --task-eval, --config, --corrections, --held-out, --baseline, --reward-fn or --emit-evidence. |
--device | auto | cuda or cpu for the live run. |
Why no other tool ships this
Leg 2, the catastrophic-forgetting gate, is the moat. Plenty of tools will tell you whether your task metric went up. What we have not found elsewhere is a first-class binary command that refuses a model on the grounds that it broke general knowledge. The regression math reuses Soup's existing eval-gate kernel, the new value is the single fused verdict, the one-screen reason, and a task-win leg that now includes a real pairwise judge win-rate.
Inference prompts now match training (v0.75.0)
Until v0.75.0 every generating command, including this one, rendered the chat template to text and then handed that text to the tokenizer, which added its own special tokens on top. On a template that renders a BOS itself — Llama-3, Gemma, Mistral — that meant a doubled BOS at inference against the single one Soup's default supervised path trains with.
Measured: 2 BOS down to 1 on vendor templates, 1 down to 0 on Soup's own data.chat_template presets, which render none, plus no trailing EOS from tokenizers that append one. usage.prompt_tokens drops accordingly.
So a verdict issued before v0.75.0 was measured on a prompt that differed from training by a token. Nothing about the weights changed, and the same applies to soup bench numbers, soup diff comparisons, soup diagnose, soup advise and the eval gate's own generators. Re-judge rather than assuming.
Two riders travel with it. An adapter trained with train_on_responses_only: false saw the doubled BOS in training, so it now differs from inference by one token in the other direction. (Since fixed in v0.76.0 for new training runs, #788; an adapter trained on v0.75.x still carries the extra BOS.) And the vLLM, SGLang and DeepSpeed-MII engines were still affected at v0.75.0, because they tokenize the rendered string themselves rather than receiving ids; --backend transformers was the workaround if you needed the verdict to match training exactly. (Since closed in v0.76.0: those three backends now hand their engine token ids with no second BOS, #867, #890 and #891, so a verdict measured through one of those engines on v0.75.2 or earlier needs the same re-judging.)
v1 honesty
- Pairwise judge win-rate (
--task-mode pairwise) is live as of v0.71.31: the judge picks base vs tuned per prompt, swap-debiased (a win counts only when both orders agree), base is a 0.5 coin-flip and the tuned model wins only if its win-rate exceeds 0.5.soup shipcalls the judge directly and does not go through trl; the trl-capability adapter belongs to Online DPO. ShipConfigundereval.shipis live as of v0.71.39 (the earlier CLI-only note no longer holds); the verdict engine is pure-Python and fully tested.- Built-in mini-benchmarks are offline and instant, lm-eval suites block on a real model load. (A live verdict as a whole is not instant: see the next point.)
- A live verdict is slow on a laptop card (upstream's limitation, tracked as #3011). In upstream's words, a full verdict for a 0.6B model (Qwen3-0.6B) took 35 minutes for 20 task rows plus the eight bundled mini suites on an RTX 5070 Laptop (8 GB), with other work on the machine, at about 95% of one CPU core and 7-12% GPU utilisation, and it prints nothing between loading the models and the result panel unless you pass
--progress jsonl. This is one measurement on one machine, not a speed figure. --task-mode rewardwith a.pyfile executes that file with your permissions. The recorded hash says which file scored a verdict; it is not a defence against a hostile file.verifiable:codeandjudge_rankstay refused by design.- The per-row audit is display only.
Rows,Truncated answersandAdapter updatenever change a verdict, and the truncation warning's two constants are not calibrated. In upstream's Known Limitations,soup eval retentionwith live model loads was not exercised by hand before the v0.78.0 release, and the one loop iteration that ran the--gate loop-v2verdict ended DON'T SHIP, so the SHIP path and the canary after it were not exercised either. - One honesty note that shipped alongside these releases: Soup's telemetry primitives existed with no command wired to them, so nothing was ever sent. v0.75.0 wired them, strictly opt-in and hardware-only, and the shipped wheel still sends nothing even when opted in, because its bundled project key is a placeholder the sender refuses (an opted-in command prints
Notice: telemetry is not yet live.). Only an operator's ownSOUP_POSTHOG_KEYchanges that. What the payload would carry.
See also
- Eval-gated training — halt a run mid-training on a quality regression;
soup shipis the post-training counterpart. - Model report card (soup diagnose) — the seven-failure-mode x-ray that pairs with the verdict.
- Soup Loop — the continual-learning loop, whose check on a candidate is
soup ship --gate loop-v2(see above). - Lean install + live wiring (v0.71) — the release line
soup shipcaps off.
Soup is free and Apache-2.0. If it saved you a training run, starring the repo costs nothing and helps most. You can also fund the GPU time behind the work a 4 GB laptop cannot reach.