soup eval design — derive evals from your training data
Before v0.55 you wrote your eval suite by hand. Now Soup drafts one from your data.
soup eval design
soup eval design data.jsonl --goal "polite customer support chat" --num-dimensions 5How it works:
- TF-IDF salience picks up to
num_dimensions(default 5) salient terms over the dataset. 10,000-row DoS-capped subsample. - Goal-keyword dispatch maps each dimension to a scorer:
json/code/math→rlvr(verifiable reward),classify→exact_match,extract→regex, and everything else →judge. - Output: a frozen
EvalDesign(JSON) with oneEvalDimensionper row.
Scorer allowlist: {exact_match, regex, judge, rlvr}.
soup eval discover — canaries
soup eval discover data.jsonl --num-clusters 5 --per-cluster 3Three sets:
- Held-out canaries — greedy farthest-first Jaccard-distance clustering (
_CLUSTER_SUBSAMPLE = 10_000). - Adjacent-skill probes — neighbours that fall just outside training distribution.
- Memorization probes — 25%-prefix truncation. If the trained model can continue the rest of a training row from its prefix, it memorized.
Per-group cap: _MAX_CANARIES_PER_GROUP = 1024.
soup eval lock — pin the suite
soup eval lock my-design.jsonLocks the design as a SHA-256-checksummed eval_suite artifact via canonicalise_design_bytes (canonical-JSON for stable hashes across runs). The frozen LockedSuite (path / sha256 / dimension_count) is registered in the v0.26 registry alongside the new canaries artifact kind.
soup eval coverage — gap analysis
soup eval coverage my-design.json --task reasoningChecks the locked design against the v0.54.0 TASK_CATEGORIES taxonomy and the _RECOMMENDED_SCORERS allowlist (e.g. reasoning → (rlvr, judge), format_conversion → (regex, rlvr)). Returns a CoverageReport with concrete gap recommendations.
soup eval gate-install — git regression gate
soup eval gate-install --baseline run-id-7f3aWrites .git/hooks/pre-push (atomic, POSIX 0o755) that:
- Runs your locked eval suite on the current head.
- Compares each
GateThresholdsmetric (task_accuracy/refusal_rate/format_validity/p95_latency_ms) against the baseline viapaired_bootstrap_ci(baseline, candidate, n_samples, ci_level, seed), wheren_samplesis bounded to[100, 100_000]andci_levelto(0, 1). decide_regressionuses direction-aware metric handling via_METRIC_DIRECTION— higher-is-better for accuracy, lower-is-better for latency.- Refuses the push on a
RegressionVerdictofREGRESSED.
The hook script is rendered via render_pre_push_hook with shlex.quote for every interpolated path — no shell injection.
soup eval against — the check the hook runs
The hook above is a wrapper. This is the command inside it, and you can run it by hand any time you want to compare two runs without pushing anything.
soup eval against <baseline-run-id> --candidate <candidate-run-id>It reads the per-row metric series for both runs from the experiment tracker, runs the same decide_regression on the paired delta, and exits 0 when there is no regression and 1 when there is, so it drops into any CI step, not only a git hook.
| Flag | Default | Meaning |
|---|---|---|
--candidate | (required) | The run whose metrics are compared against the baseline. |
--metric | task_accuracy | One of task_accuracy, refusal_rate, format_validity, p95_latency_ms. |
--n-samples | 1000 | Paired-bootstrap samples, bounded to [100, 100000]. |
--seed | 0 | Deterministic seed, so the verdict is reproducible. |
--suite | (none) | A locked suite from soup eval lock, validated as a gate precondition. A missing or unparseable suite blocks the check rather than skipping it. |
--json-only | off | One JSON verdict line instead of the rendered panel. |
The --suite behaviour is the part worth knowing: the generated pre-push hook passes the locked suite through, so a suite that has gone missing fails the gate instead of quietly turning it off.
See also
- Quant-check — same idea, but for quant-induced regression
- Eval-gated training — halt training when quality drops
- Registry — where
eval_suiteandcanariesartifacts live - Eval depth (v0.65) — 4 deeper optional probes (behavior, capability, checklist, irt-subset) that stack on top of v0.55 dimensions
- Post-train x-rays (v0.66) — 4 mechanistic-interpretability probes (sae-diff, sleeper, interference, pack); failure-mode coverage 6 → 10
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.