Skip to content

armgit / Soup

Public Imported from GitHub
0

Fine-tune LLMs from one YAML. Layer streaming trains an 8B model on a 4 GB laptop GPU.

docs(contributors): #1513, #1499, #1540, #1541, #1521, #1545, #1255, #1544, #1363, #1476, #1500, #1104 [skip ci]

Alpamyse4d0b59b3ba7
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 397d2506..69a055e2 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -336,6 +336,7 @@ Listed by first contribution. PR numbers link the work.
- `soup expect` silently ran an expectation on its defaults when the suite put `max_tokens` beside `name` (the `docs/compliance.md` example itself) or misspelled an argument, so a 5000-token row passed a 512-token gate with exit 0; they declared each expectation's arguments in one table that also drives the allowlist and the dispatcher, refused stray keys and unknown arguments at load with a pointed hint and a `difflib` suggestion (exit 3, before the data is read), validated bounds and threshold at parse time, moved the docs example to `args:`, and wrote a test that runs the YAML block read out of `docs/compliance.md` on a 5000-token row. 21 new tests (14 fail on the previous tree), every mutation of the fix plus the docs revert killed ([#1428](https://github.com/MakazhanAlpamys/Soup/issues/1428), [#1461](https://github.com/MakazhanAlpamys/Soup/pull/1461))
- A dead LLM judge was scored as a tie: `compare_pair` mapped every exception to "no winner", so `soup ship --task-mode pairwise` reported a measured 0.5 win-rate and DON'T SHIP with the judge down, `soup eval judge` aborted on the first transport error and lost the rows already scored, and nothing retried. They put every judge request behind one bounded retry helper that raises `JudgeUnavailableError` naming the judge, kept the Online DPO adapter on its own unranked-pair path with a test, and made the gate log say "could not be scored" instead of "regressed". **What is worth copying is how they took review**: three holes in their own design (a `Retry-After: nan` that reached `time.sleep`, the judge URL's userinfo and `?api_key=` printed into errors and logs, a `DecodingError` that still aborted a run) were fixed in one push, each with the test that fails without it and a mutation that turns it red; the four mutations that had survived round one were all pinned with absolute bounds rather than bounds derived from the constants they bound. 45 new tests (40 fail on `main`); 17 of 19 re-review mutations caught, the two survivors being an unpinned fallback and an unreachable branch; 470 related tests passed ([#1447](https://github.com/MakazhanAlpamys/Soup/issues/1447), [#1484](https://github.com/MakazhanAlpamys/Soup/pull/1484))
- Resolved #1145's four recipes that could not load, following the three rulings on the issue: removed `mistral-large-3-sft`/`-dpo` (the repo has no `config.json`) and `minimax-m3-dpo` (DPO cannot build the `minimax_m3_vl` wrapper), and moved `minimax-m3-sft` onto the vision path. **The finding worth copying is the consequence nobody asked about**: the vision path loads `AutoProcessor`, MiniMax-M3's processor is custom code, so the recipe now needs `--trust-remote-code`, and they wrote that into the description and pinned it in a test, then checked a second review comment (the vision collator supervises every token) by running `soup doctor --config` both ways. The rebase chased moving targets (#1297, then #1388 and #1113), each time from `main`'s side with both fixtures regenerated by their scripts; the last round closed the attach-ratchet coupling and pinned the docs paragraph whose mutation had survived. 2446 tests over 20 files on the merged tree, 9 of 9 mutations caught, live attach ratchet exit 0 ([#1145](https://github.com/MakazhanAlpamys/Soup/issues/1145), [#1398](https://github.com/MakazhanAlpamys/Soup/pull/1398))
+ - Closed the top-level half of `soup expect`'s silent-drop family: `parse_suite_spec` read only `expectations`, so `fail_fast: true` (or a `name:` label, or a typo like `expectation:`) beside it ran and exited 0. They filed it from the #1461 review, waited for #1461 to merge as agreed, and opened the PR rebased on it: six lines in `src/`, the key text echoed through #1461's `repr()` helper, `soup expect` exiting 3 before the data file is opened. They found that one existing test fixture (`name: test_all_formats_suite`) was itself an instance of the bug and removed that single line, leaving the test's rows and exit-2 assertion untouched. When review found one docs sentence missing and one surviving mutation (an allowlist widened to `name`), they closed both in one push with `src/` byte-identical and a 4-case test that kills it, and said plainly that bounding the key list would be a separate follow-up rather than folding it in. Verified on the merged tree: 270 passed; the check removed, the `repr()` removed, naming only the first key, and four allowlist widenings are each caught (8 / 2 / 1 / 1 / 1 / 1 / 1 failures). ([#1483](https://github.com/MakazhanAlpamys/Soup/issues/1483), [#1499](https://github.com/MakazhanAlpamys/Soup/pull/1499))
- **Sohaib Kamash** ([@Nick-800](https://github.com/Nick-800))
- Added seven validated Qwen2.5-Coder, Qwen2.5-Math, and DeepSeek-R1-Distill-Qwen SFT recipes; synchronized all catalog-count sites and repaired the Mistral Small model identifier. Literal repository IDs and per-recipe learning rates are now load-bearing assertions ([#536](https://github.com/MakazhanAlpamys/Soup/pull/536)).
@@ -365,6 +366,7 @@ Listed by first contribution. PR numbers link the work.
- Routed GRPO objective variants through TRL per-token log-probability computation with runtime-contract regression coverage ([#585](https://github.com/MakazhanAlpamys/Soup/pull/585))
- Closed the abbreviated-IPv4 SSRF bypass one layer out from the `localhost` hole #598 had just fixed — `ipaddress.ip_address()` raises on `127.1`, `2130706433`, `0x7f000001` and `0177.0.0.1`, so the guard returned `False` and treated them as public hostnames. **They answered the question the issue could not**: I had filed it saying I could not tell from a Windows box whether glibc actually resolves those forms, and declined to claim a live bypass. They measured it — glibc 2.39 resolves every one, `2852039166` reaching `169.254.169.254`, while Windows returns `gaierror` for all of them. Using `socket.inet_aton` rather than a hand-rolled parser is the load-bearing choice: across 26 exotic forms the guard and the resolver diverge only *together*, because both track the platform's own parser. They also found and fixed a second bypass nobody had reported (`--slack-url https://2852039166/` reaching cloud metadata through `webhooks.py`) and closed the trailing-dot FQDN form raised as non-blocking. Review found three changelog defects — a direct `CHANGELOG.md` edit that would have published #577 **twice** and added a duplicate `### Fixed` heading, and a fragment filed under **another contributor's** PR number — and all three were gone in one push ([#600](https://github.com/MakazhanAlpamys/Soup/issues/600), [#604](https://github.com/MakazhanAlpamys/Soup/pull/604))
- Closed the hostname-indirection bypass in the telemetry SSRF guard: a host that was not a literal IP passed regardless of what it resolved to, so `10.0.0.1.nip.io` (real DNS -> `10.0.0.1`) and `localtest.me` (-> `127.0.0.1`) were both accepted while the literal `10.0.0.1` was refused. **They pushed back on the design before building it, and were right to.** Handed a sketch that resolved every custom endpoint, they pointed out that `socket.getaddrinfo` takes no timeout in Python and that `send_telemetry` calls `httpx.post` synchronously, so an unbounded resolver call would block air-gapped runs — and proposed a tiered design where a trusted allowlist short-circuits before any lookup. Verified by measurement rather than by reading: with `getaddrinfo` patched to raise, the default endpoint still validates with **zero** DNS calls. They also took the one correction handed back — **no `lru_cache`**, because caching a *permissive* verdict for the life of a process means a rebinding attacker need only win once — and they documented the DNS layer as defence in depth rather than as SSRF prevention, which it cannot be across two separate lookups. Each of the three tiers is killed by a named test, and the one place that margin is a single test wide is stated in the merge commit rather than glossed. The self-hosted-PostHog test was **adapted, not deleted** — mocked to a public IP, still asserting `True`, so the self-hoster path stays covered ([#599](https://github.com/MakazhanAlpamys/Soup/issues/599), [#624](https://github.com/MakazhanAlpamys/Soup/pull/624))
+ - Filed #1543 with both causes already diagnosed, each of which checks out against the hub release notes and `refuse_if_data_parallel`, and took it themselves: the proof notebook's install cell pulled `huggingface_hub` 1.32, whose shared blob store soup-cli 0.75.0 refuses (#1509), and the notebook left two CUDA devices visible, so layer streaming refused to start under `nn.DataParallel`. They capped the hub below 1.32 with a comment that says when to drop it and set one visible device before torch is imported. **In the second round they took the guarded `setdefault`, so a caller who chose their own card keeps it, and added the fragment and the two tests the first review asked for.** Only cell 3 changes (outputs identical in all 19 cells); the two new tests are 2 failed / 7 passed on `main`, and 4 of 4 targeted mutations are caught ([#1543](https://github.com/MakazhanAlpamys/Soup/issues/1543), [#1545](https://github.com/MakazhanAlpamys/Soup/pull/1545))
- **Samarth Mukhija** ([@Samearth17](https://github.com/Samearth17))
- First contribution, and it answers the awkward half of #379: the repo could not reproduce its own benchmark records, because most of those harnesses only ever existed in a scratchpad on a machine that is gone. They published the upstream bitsandbytes #2034 NF4 reproducer as a standalone, download-free script and left the methodology and the existing table row untouched — a reproducibility slice that reproduces, rather than a rewrite. **Review blocked on the one thing that matters for a harness: it exited `0` whether or not the defect was present**, so it could not distinguish the mechanism it claims to demonstrate from a machine where nothing is wrong. They fixed it in both directions — an explicit `--bypass-pool` negative control, *and* an ordinary invocation that now requires the NF4 mismatch, so a removed `pool.acquire()` fails instead of passing quietly. Verified on real CUDA at merge: normal run reproduces on 6/8 layers with the bf16 control clean on 8/8; cutting `pool.acquire()` exits 1 on the merged head and exited **0** on the pre-fix commit. They also said plainly that they could not run it themselves — no GPU — instead of implying they had ([#589](https://github.com/MakazhanAlpamys/Soup/pull/589))
@@ -378,6 +380,7 @@ Listed by first contribution. PR numbers link the work.
- Answered #829, the defect that the GPU panel printed only a name and a size while a torch build that could not run the card still read "available": `soup doctor` now shows `sm_120 (Blackwell)`, a red line with the wheel hint when `get_arch_list()` does not cover the card (same-major later-minor SASS, `a`-suffixed targets exact-only, PTX fallback), and a Precision features block for BF16 / FP8 / NVFP4. **What earned the merge is that they made disagreement impossible rather than testing it**: the NVFP4 software row calls an `is_nvfp4_software_supported()` that resolves the same torchao classes `apply_nvfp4` does, and the last blocker (#829's own text named `torch.cuda.is_bf16_supported()`, which answers yes on a T4 through emulation) was closed by delegating to `cuda_supports_bf16()`, the gate every trainer uses, with a T4 test that fails against the old call. Review on real hardware: sm_120 output matched `nvidia-smi` row by row, six mutations killed, 59 passed on the merged tree ([#829](https://github.com/MakazhanAlpamys/Soup/issues/829), [#947](https://github.com/MakazhanAlpamys/Soup/pull/947))
- Published the STEP 2b GRADDIFF measurement, the two-line result that started the 32B investigation (gradients match after one backward, yet the curves do not reproduce themselves). The bar for a reconstruction is that it can say no, and the review rounds were about exactly that: the success condition demanded a resident curve the record had printed as non-identical, the success branch could not be reached at any commit because every tree that can import the harness already carries the #331 repair, a NaN streamed curve counted as the defect, and eight mutations of the verdict left `--self-test` green. **What they did with it**: imported the historical control from `mechanism_cost` and restored it in a `finally`, made NaN an invalid measurement with its own exit code, stated the departures from the record (fresh adapter and optimizer per curve; the record never explains its C = False) as differences rather than causes, and took the maintainer's guard tests in as their own file — all seven mutations that still survived the second review are now killed. 33 CPU tests drive the real `main()` and `run_measurement()`; 19 of 26 mutations of the harness fail them and the 7 survivors are non-verdict guards that are named, not hidden. They said plainly that the CUDA path needs a 32B checkpoint they did not have ([#379](https://github.com/MakazhanAlpamys/Soup/issues/379), [#1170](https://github.com/MakazhanAlpamys/Soup/pull/1170))
- Brought the "Reproducing" section of `gate-h100-validation.md` in line with the harnesses that are now published: it said no script was in the repo and linked none, so a reader following the record was told there was nothing to run. **They re-synced it the same day `graddiff.py` merged and made their own note stale**, which is the discipline that keeps a dated correction true. Each of the three reconstructions is labelled as one, the unpublished rows still point at #379, and every other cell is left as the record had it. Checked by a 19-check script (19/19, fails on `main`), 11 mutations of the section (11 killed) and 104 resolving links ([#1348](https://github.com/MakazhanAlpamys/Soup/issues/1348), [#1364](https://github.com/MakazhanAlpamys/Soup/pull/1364))
+ - `data.format: pre_tokenized` loaded with `data.add_new_tokens`, `data.new_special_tokens`, `data.prompt_strategy` or a non-text `modality`, although `soup data preprocess` never applies any of them, so the run trained on cached ids that silently lacked the transformation. They refused each combination at config load (three `DataConfig` checks plus a `SoupConfig` validator placed after the quantization resolver), updated the `NOT_PREPROCESS_KEY_FIELDS` reasons and the docs, and after review rewrote the one refusal that stated the opposite reason and pinned it in the test. Re-run by the maintainer: the 6 new cases fail on `main`, 15 of 16 mutations killed, 1452 related tests pass ([#1273](https://github.com/MakazhanAlpamys/Soup/issues/1273), [#1363](https://github.com/MakazhanAlpamys/Soup/pull/1363))
- **chadetov** ([@chadetov](https://github.com/chadetov))
- First contribution, and it is the kind that is easy to file as a one-line fixture tweak and much harder to *diagnose*: `test_sft_smoke` had been red since v0.36.0, and they traced why nobody knew. `pyproject`'s `addopts` carry `-m 'not smoke'`, and the only smoke job in CI is `mlx-smoke`, which selects `-k mlx_sft_smoke` on an install that asserts the PyTorch stack is **absent** — so `test_sft_smoke` and `test_dpo_smoke` run in neither the default suite nor CI, which is how a fixture drifted out of sync with a hard error added five releases earlier. **The scope discipline is what got it merged unchanged**: the MLX fixture carries the same `format: chatml` line and they left it alone, because it reaches the MLX trainer rather than `sft_format.py` and is the one smoke test CI actually runs and passes — verified, not assumed. They also declined to wire the PyTorch smoke tests into CI in the same PR and said why (model downloads, runner minutes), leaving the call to the maintainer instead of taking it ([#594](https://github.com/MakazhanAlpamys/Soup/pull/594)). Separately, and on the same day, they measured `utils/log_level.py`'s branch coverage on #273 and filed [#595](https://github.com/MakazhanAlpamys/Soup/issues/595) — four code sites quoting a probe-denominated VRAM ratio under a "real peak" label, plus a schema field description still carrying a justification the gate record had explicitly withdrawn
@@ -395,6 +398,8 @@ Listed by first contribution. PR numbers link the work.
- `soup train --find-lr` answered every failure of the live sweep, a missing base model id, a YAML syntax error in the config, a model or dataset that could not be loaded, or no `torch`, with a curve shaped by the LR schedule alone, wrote a `recommended_lr` from it and exited 0, so two different nonexistent ids reported the identical number. They deleted the fabrication rather than hiding it behind a flag: a new `LrSweepUnavailableError` beside `SweepTooShortError` makes every such case a refusal that names the cause, exits 1 and writes no report. The control test, a sweep that can run still writing its 8-point report, is what stops the refusal from swallowing a real measurement, and they disclosed the side effect that an install without `torch` now exits 1 before being asked. **The review round is the part worth copying**: five items came back, and each was closed with the mutation run to prove it. Removing the loader message, removing the escaped print and deleting the `SweepTooShortError` re-raise each survived the first round and each now fails a test; 10 of 10 mutations fail at least one test, and the new file fails 3 on `main`. The bug was found by @mohdUwaish59 while reproducing #1189 ([#1203](https://github.com/MakazhanAlpamys/Soup/issues/1203), [#1334](https://github.com/MakazhanAlpamys/Soup/pull/1334))
- Answered #1440, the defect that Soup's own trace stream never yielded a preference pair: `parse_soup_serve` read the signal only from a nested `feedback.rating` that no producer writes, while `soup ingest` writes a top-level `signal`, and no parser ever set `edited_output`, so the round trip ended in a green `Wrote 0`. **What earned the merge is the scope and the clamp**: they fixed only the consumer half and said in the issue which half was left (thumbs into the `soup serve` trace log), changed `Closes` to `Refs` so the issue stays open, and clamped the top-level `signal` to a closed vocabulary, so the new "Signals present" line can only ever print constants — hostile `signal` values (lists, dicts, ANSI and OSC escapes, a 100,000-character string) read as `none`, verified by execution. Their 16 tests fail 11 on the parent commit; against 19 mutations 15 are killed, including the issue's own (read only `feedback`: 10 failed). Review found four surviving mutations (the no-signal branch of the message, `none` leaking into the present-signals list, precedence on a conflicting `feedback.rating`, a whitespace-only `edited_output`) and they closed all four by adding tests, **re-running each mutation against their own file rather than quoting mine**, and also gated the `soup ingest` hint to the one format that reads a top-level `signal` and corrected the docs to say who writes which signal. 414 passed across 9 related files on the merged tree ([#1440](https://github.com/MakazhanAlpamys/Soup/issues/1440), [#1498](https://github.com/MakazhanAlpamys/Soup/pull/1498))
- `task: ppo` loaded `reward_hack_detector`, `reward_hack_mitigation` and `echo_trap_enabled` and then ran them blind: the trl PPO trainer takes no `reward_funcs`, so the shared signal buffer was never written, and because the buffer object existed the detector's `on_log` fallback returned early too. **They chose the refusal over a half-wired feed on exactly that second observation** (a controller that cannot fire is worse than a config that stops), refused the precise set `rl_callbacks_need_buffer` uses before `datasets` or any model loads, and left `reward_fn`-on-PPO and the real buffer feed out of the PR rather than widen it. **The round worth recording is the second one**: their first tests drove the helper and never `setup()`, so deleting the one call line left 12 of 12 green; they added setup-level tests with stubbed loaders and a flagless control, a drift test between the refusal and `rl_callbacks_need_buffer`, and moved the `datasets` import below the refusal so the flag is reported first. 21 tests; 11 mutations (call removed, condition inverted, each flag dropped, refusal after each load, never/always raising, no flag names, a fourth buffer flag) all killed, where the first round's call-removal survived ([#1441](https://github.com/MakazhanAlpamys/Soup/issues/1441), [#1514](https://github.com/MakazhanAlpamys/Soup/pull/1514))
+ - Found that `training.preference_loss_weights` never blended anything: no trl 0.29 trainer puts log-probs on the batch, so the wrapper fell back to `primary_loss * primary_weight` and `{dpo: 0.7, simpo: 0.3}` trained DPO alone at 0.7 while printing a blend. They measured it on a real trainer (`Loss: 0.4852` = 0.7 x 0.693147), deleted the fallback and its dead helper so the run refuses naming the terms, and said in the issue exactly what the PR did not do instead of letting `Closes` over-claim, then changed it to `Refs` when review asked. Review closed with a docs rewrite (the page had claimed a true weighted sum), a whole-string assertion that kills the mutation that had survived (`missing = sorted(snapshot)`), and a real-trainer test that fails on `main` 2 of 2 and with the fallback restored 2 of 2. Verified on the merged tree: 183 passed; fallback restored / over-broad missing list / empty computed list / partial blend accepted / wrong exception type each caught. Partial progress: the real blend is still open on the issue ([#1425](https://github.com/MakazhanAlpamys/Soup/issues/1425), [#1513](https://github.com/MakazhanAlpamys/Soup/pull/1513))
+ - `task: simpo` trained every LoRA tensor to NaN behind a logged loss of `0.0` when a row's `chosen` outran `data.max_length`, because trl's CPO truncation empties the shorter answer and SimPO's length-normalised log-probability becomes 0/0. They read the slice out of the installed trl source, pinned it with a canary, and refused the run before the first step instead of repairing anyone's dataset. **The review found their first predicate refusing pairs that train fine, and what they did with it is the part worth recording:** they had re-applied trl's truncation formula to rows trl had already truncated (a 64/14 pair, measured on real trl at loss 3.995 with no NaN, was being refused), and instead of loosening a threshold they rewrote the check to the one question that survives truncation (does a side have no trainable label left), moved every fixture to the post-truncation shape, and wrote down why their own fixtures had hidden it. The wiring is pinned twice, by real-trl `setup()` tests on a tiny CPU model and by a source pin for machines where trl cannot import a CPO config; 16 of 19 new tests fail on `main`, 9 of 9 mutations killed ([#1208](https://github.com/MakazhanAlpamys/Soup/issues/1208), [#1500](https://github.com/MakazhanAlpamys/Soup/pull/1500))
- **Aravind S** ([@ARAVIND281](https://github.com/ARAVIND281))
- Measured the layer-streaming VRAM fit on a **second GPU and software stack** — an A10G 23 GB on Ubuntu with torch 2.13 / transformers 5.16.1 / trl 0.29.1, against the RTX 3050 laptop on Windows and torch 2.5.1 that every previous figure came from. All three findings are constraints on an open question rather than extra data points beside it: the v0.73.1 long-sequence under-prediction **does not reproduce** (flat 1.1621-1.1694 across seq 2048-6144 where the RTX series reads 0.787x at 6144), the logits loss term measures **12.000000 exactly** and invariant across vocabulary and torch version — so the shipped 14's `+2` retained copy, which #327 has never identified, demonstrably does not happen here — and the SDPA hypothesis #395 names as leading is **not supported**, with the math backend included as a positive control that IS expensive enough (3.27 GB at seq 6144) to prove the measurement could have found it. **They retracted their own headline figure mid-review** — a back-solved 11.83 B/element — and then enforced the retraction in CI rather than in prose: writing 11.83 back into the constant fails a named test. The discarded first sweep is kept in the record because its failure is silent: `data.max_length` truncates rather than pads, so short rows run at their own length while the prediction keeps climbing, producing a clean-looking over-prediction that is entirely an artifact and would mislead the next person identically ([#395](https://github.com/MakazhanAlpamys/Soup/issues/395), [#610](https://github.com/MakazhanAlpamys/Soup/pull/610))
@@ -412,6 +417,7 @@ Listed by first contribution. PR numbers link the work.
- Fixed a worker-identity check that could only ever pass by accident. `autodistill`'s MLX teacher worker proved it was the process the parent spawned by comparing its own `os.getpid()` against `Popen.pid` — and on Windows a venv's `Scripts\python.exe` is a **redirector** that launches the real interpreter as a grandchild, so those two legitimately differ and six tests failed on a perfectly healthy worker. **The reason it stayed hidden for a release is worth recording**: nobody had run the suite from a venv on that box, so it surfaced only during a release cut. The replacement is a nonce the parent generates and the worker echoes back into its receipt, which is what the check was trying to establish and does not depend on the process tree at all. Verified here by simulating the defect going away — swapping the launcher for a non-redirecting interpreter makes the test fail rather than silently stop testing anything, so it keeps its own discriminating power ([#898](https://github.com/MakazhanAlpamys/Soup/issues/898), [#950](https://github.com/MakazhanAlpamys/Soup/pull/950))
- Widened the failure boundary in `soup train` so an exception raised during setup reaches `fail_run` instead of escaping it, which had left a run that died before training started sitting at `status='running'` forever with no error recorded ([#764](https://github.com/MakazhanAlpamys/Soup/issues/764)); they also recorded the run's pid and made `get_run` reconcile an orphaned run on read, so a process that vanished reports as terminated rather than as still alive. **The part I want to credit is what they did not change.** Seven neighbouring fields in `soup runs show` render unescaped text and they routed only `error_message` — arbitrary exception text — through the shared `utils.terminal.for_terminal`, declining to widen into a repo-wide sweep. That was the right call, and the one correction I owed them was in their favour's opposite direction: those fields are *unvalidated* rather than already-validated — `SoupConfig.base`, `output.dir` and the experiment name carry no control-byte validator — so the restraint is still correct but the reason is now written down for whoever reads that hunk next. 339 insertions, **zero removed test lines**. ([#767](https://github.com/MakazhanAlpamys/Soup/pull/767))
- `soup data forge --judge-provider anthropic --judge-base-url <x>` and `soup data recipe --provider anthropic --base-url <x>` blamed a failed Anthropic call on `<x>`, in the terminal and in the recipe's `.checkpoint.json`, although Anthropic ignores that flag and every request goes to `https://api.anthropic.com/v1/messages`, so an outage pointed the user at a host that was never contacted. They fixed it in the one shared label helper, so a single change covers both commands, and **built the label from the same constant the POST now uses, normalising the provider exactly as the dispatcher does**, so the message and the call cannot disagree on a spelling like `Anthropic`. In review the CLI tests were changed to record the URL actually posted to. Two mutants that had survived (POST sent elsewhere, Anthropic honouring `base_url`) went from 0/8 to 2/8, and they re-ran both themselves before pushing. 8 new test items, 6 of them fail on `main`; eight behaviour-changing mutations, eight killed ([#1340](https://github.com/MakazhanAlpamys/Soup/issues/1340), [#1370](https://github.com/MakazhanAlpamys/Soup/pull/1370))
+ - Found that the Hub dependency in the test suite was several times larger than the grep estimate in the issue: with the network blocked and an empty `HF_HOME` they ran the real sweep, posted the failure list before touching anything, and showed 76 tests across 10 files downloading tiny models for nothing they check. Replaced each download with a locally trained byte-level tokenizer and a randomly initialised tiny GPT-2/Llama, then consolidated ten copies of the builder into one shared helper that removes its temp directory at exit, keeping file-local only the two models whose shape the tests vary. The 10 files go from 53 failures + 24 errors offline on `main` to 495 passed, no leaked directories, and 9 of 9 mutations of the code under the rewritten tests are killed ([#1356](https://github.com/MakazhanAlpamys/Soup/issues/1356), [#1544](https://github.com/MakazhanAlpamys/Soup/pull/1544))
- **MKnaomi2** ([@MKnaomi2](https://github.com/MKnaomi2))
- Made `soup doctor` recommend a CUDA wheel the driver can actually run, instead of telling everyone to install `cu121`. **The fallback directions are argued, not defaulted**: an unreadable `nvidia-smi` header falls back to `cu121` rather than the newest tag, because a parse failure most likely means an old driver and a too-new wheel is the failure mode that *looks* like success — pip installs happily and CUDA initialisation dies later. They also verified every tag the mapping can emit against the real PyTorch index **with a negative control** to defeat soft-404s. Review found one blocking defect and it is the interesting one: their first tests asserted `"cu121" not in advisory`, which matches the **installed torch version string** rather than the recommendation — so they passed in CI, where torch is CPU-only, and failed on every machine with a CUDA build, the same green-on-the-runner shape that has reddened this repo four times. They fixed it by asserting on `whl/cu121` **and adding a test that pins the trap**, so the naive form cannot return. All four non-blocking items landed in the same push, including the CWE-427 absolute-path resolution of `nvidia-smi` and the stale `cu121` advice in `README.md` ([#612](https://github.com/MakazhanAlpamys/Soup/pull/612))
@@ -511,6 +517,7 @@ Listed by first contribution. PR numbers link the work.
- `soup data stats` wrote 951 raw ANSI bytes into redirected output with `NO_COLOR=1`, because plotext's `show()` goes straight to stdout and Rich's colour decision was never in the path. Plots now build to a string and print through Rich, so there is **one** decision point rather than a hand-rolled TTY/`NO_COLOR` predicate sitting beside Rich's own. The second half is the one worth naming: Rich's `Console.size` returns `width - legacy_windows`, so on Windows Rich reports 79 columns where plotext has already drawn at 80, and that one-column overhang wrapped **every** row — 42 emitted lines against 23. Asked for it, they did not merely add `soft_wrap=True`; they wrote a test that discriminates, asserting at `Console(width=4)` both the line count and that a long line survives intact, which also kills the near-miss variant (`no_wrap` without `crop=False`) a future refactor would most likely introduce ([#824](https://github.com/MakazhanAlpamys/Soup/issues/824), [#860](https://github.com/MakazhanAlpamys/Soup/pull/860))
- Two more rows off the #275 model-family tracker, `minimax-m3-dpo` and `mistral-large-3-dpo`, each the DPO sibling of an existing SFT entry. **Both base repo ids were re-checked with `huggingface_hub.model_info(..., token=False)` rather than with an HTTP status**, which is the exact distinction [#661](https://github.com/MakazhanAlpamys/Soup/issues/661) exists for and the step most recipe PRs skip. They also took two bookkeeping corrections without argument — the fragment was named after the issue instead of the PR, and the credit line named the wrong number — and the follow-up diff was the rename plus two lines with nothing else touched, which is what makes a correction round cheap to re-verify ([#849](https://github.com/MakazhanAlpamys/Soup/issues/849), [#933](https://github.com/MakazhanAlpamys/Soup/pull/933))
- Added the `qwen3.6-27b-dpo` and `qwen3.6-27b-grpo` recipes, taking the catalog to 176. All three review asks landed, and the cross-reference was fixed the stronger way: the recipe count was dropped from it rather than bumped, so that sentence cannot go stale again. On the tree merged with `main`, the count agrees at all nine sites and the config snapshot is a clean regeneration. The changelog says plainly that the 27B configs were validated against the schema and the CLI but not trained ([#845](https://github.com/MakazhanAlpamys/Soup/issues/845), [#1015](https://github.com/MakazhanAlpamys/Soup/pull/1015))
+ - `soup loop canary --traffic 5%` wrote a policy that serving and the watch daemon never read, so there was no traffic split, no live verdict and no rollback. Keyed `/v1/chat/completions` requests now follow the configured split, and every outcome, streamed errors included, is recorded against a per-promotion rollout id. `soup loop watch` rolls back a `MAJOR` canary after at least 30 samples and keeps a healthy one. Across four review rounds each surviving mutation was closed with the discriminating test, and on the merged tree 17 of 17 mutations fail a test ([#815](https://github.com/MakazhanAlpamys/Soup/issues/815), [#1104](https://github.com/MakazhanAlpamys/Soup/pull/1104))
- **Zhengzhuo Wang** ([@wangzhengzhuo05](https://github.com/wangzhengzhuo05))
- `soup doctor` treated the seven `[train]` packages as required core dependencies, so a supported core-only install reported seven failures **and exited 0** — wrong in both directions at once, alarming about a correct install while staying silent about a broken one. The training stack is now a single optional group, a missing or incompatible core dependency exits 1 while optional packages and the train group never change the exit code, and the "Fix all" suggestion is two commands rather than one, because `--index-url` *replaces* PyPI and the PyTorch index hosts no soup-cli, trl, peft or transformers. **They also fixed the adjacent drift they found**: `soup version --full` derived extras from a hand-kept list, and now reads distribution metadata, so `scikit-learn` and `pillow` resolve and train and mcp appear on a `[dev]` install. Three rounds of maintainer mutations, every one killed — bare per-package floors, a missing core dependency exiting 0, collapsing the two commands into one `--index-url`, an unescaped fix-all payload, and reverting extras detection to `find_spec`. Both suggested commands were checked to resolve under `pip install --dry-run`. A first contribution ([#828](https://github.com/MakazhanAlpamys/Soup/issues/828), [#854](https://github.com/MakazhanAlpamys/Soup/pull/854))
@@ -619,6 +626,7 @@ Listed by first contribution. PR numbers link the work.
- **Mohd Uwaish** ([@mohdUwaish59](https://github.com/mohdUwaish59))
- First contribution: The Web UI kept its bearer token in `sessionStorage`, readable by any script in the page. It now lives only in a request-wrapper closure, and the tests run `app.js` under node to prove the token reaches no storage, cookie, history entry or global name, and that every request site still sends it ([#1136](https://github.com/MakazhanAlpamys/Soup/issues/1136), [#1190](https://github.com/MakazhanAlpamys/Soup/pull/1190))
- `soup train --find-lr` failed with a misleading "Invalid --find-lr-output" whenever the dataset had fewer rows than `--find-lr-steps`. The sweep now shrinks to the rows it has over the full LR range, refuses below four points before the model loads, and blames the output path only for real path errors; the refusal is re-raised past the synthetic-curve fallback instead of being turned into a report; 13 of 14 mutations fail a test ([#1189](https://github.com/MakazhanAlpamys/Soup/issues/1189), [#1244](https://github.com/MakazhanAlpamys/Soup/pull/1244))
+ - `training.loraplus_lr_ratio` with `optimizer: apollo_adamw`, `lomo` or `adalomo` (transformers can only build those from the model) passed config load and died after the base model had loaded, and LoRA+ with `use_galore` was refused only at runtime. A `TrainingConfig` validator now refuses both at load, naming both fields, with the runtime GaLore check kept as the backstop. They parametrized the 36-test file over `sft`, `dpo` and `ppo`, then proved it by moving the refusal into an `sft`-only validator (10 failures), and rebased across two docs conflicts with the code unchanged. Re-run by the maintainer: 15 of 36 fail on `main`, 10 of 10 mutations killed, 1333 related tests pass ([#1210](https://github.com/MakazhanAlpamys/Soup/issues/1210), [#1255](https://github.com/MakazhanAlpamys/Soup/pull/1255))
- **anying** ([@anyingiit](https://github.com/anyingiit))
- First contribution: `--baseline registry://` kept each benchmark's oldest eval score while its provenance warning came from the newest row, so re-measuring a baseline silenced the warning and left the stale score in the gate: a candidate at 0.38 passed against 0.30 instead of regressing against the re-measured 0.45. The score and the provenance now come from the same newest row. Provenance is checked per benchmark, which caught a scorer-revision mismatch `main` missed entirely. Ties on `created_at` resolve by insertion order, and `soup eval gate` escapes the warning now that it carries benchmark names. All 8 mutations tried across two review rounds fail a test ([#1224](https://github.com/MakazhanAlpamys/Soup/issues/1224), [#1260](https://github.com/MakazhanAlpamys/Soup/pull/1260))
@@ -634,6 +642,7 @@ Listed by first contribution. PR numbers link the work.
- `soup tokenizer train` saved a byte-level BPE with no `ByteLevel` decoder, no 256-byte initial alphabet and a hard-coded `unk_token`, so `decode(encode(x))` returned `Ġ` for spaces, unseen accents, emoji and CJK became `<unk>`, and `--special-token` without `<unk>` made encoding raise. They fixed all three, and measured that the vocabulary floor is `256 + special tokens + 1` (anything lower silently yields a vocabulary with zero merges) instead of trusting the number in the ticket. In review they pinned the two survivors, the saved `unk_token` and the exact boundary, with a parametrised test on both sides of the floor; 9 tests, 7 failing on `main`, and 8 of 8 mutations killed ([#1429](https://github.com/MakazhanAlpamys/Soup/issues/1429), [#1455](https://github.com/MakazhanAlpamys/Soup/pull/1455))
- `soup expect` passed datasets it had not checked: a UTF-8 BOM hid the first row from the PII check, malformed and non-object JSONL lines were skipped or dropped silently, and an empty file passed with `Rows 0`. They read the file as `utf-8-sig` and refused unreadable lines and zero-row runs as an input error (exit 3, count plus the first ten line numbers), kept distinct from a real suite failure (exit 2), and updated the two docs sentences that described the old behaviour. In review they tightened two `in (2, 3)` asserts to `== 3` and pinned the count and the ten-line cap; 9 tests, all failing on `main`, and 12 of 12 mutations killed ([#1434](https://github.com/MakazhanAlpamys/Soup/issues/1434), [#1457](https://github.com/MakazhanAlpamys/Soup/pull/1457))
- `soup compile`, quantized GGUF export and `task: unlearn` all checked their destination only after the expensive step and then discarded the result: the compile optimizer ran its LLM calls before refusing `-o ../out.py` (exit 1, no clean refusal), a quantized export into a missing directory crashed in `mkdtemp` after the adapter merge and the cleanup deleted the merged model, and unlearn trained to the end before refusing an output outside the working directory or a symlink. They moved each check in front of the work (plan-time compile check with the write-time one kept as the TOCTOU guard and its `ValueError` turned into exit 2, the export parent created before the merge, `setup()` refusing first), pinned the unlearn ordering with an import sentinel that fails when the call is removed, and in review made both export tests hermetic with the missing-parent precondition asserted after two stray `model.gguf` files had been committed and had hidden the fix from CI; 9 tests (6 fail on `main`, 3 are in-cwd controls), 4 of 4 mutations killed ([#1445](https://github.com/MakazhanAlpamys/Soup/issues/1445), [#1469](https://github.com/MakazhanAlpamys/Soup/pull/1469))
+ - KTO reached TRL with a per-device batch of 1 by three routes, and TRL refuses that outright ("Actual (not effective) batch size must be > 1"): a resident `task: kto` config at `batch_size: 1` loaded and loaded its model before dying (the parse-time refusal covered only `stream_layers`), `batch_size: auto` floored its halved estimate at 1, and `soup local-rl train --train-method kto` hard-wrote `batch_size: 1`. They refused it at config load for every KTO config, floored `auto` at 2, and changed the local-rl default; the `auto` test runs a real `KTOTrainerWrapper.setup()` on a tiny CPU model with the estimator patched to 1, 2 and 3, and the local-rl test builds a real `KTOTrainer` from the rendered YAML. Over four review rounds they rewrote the refusal message to name the KL term and the fix (it had told resident users about "a streaming run"), put the MLX refusal back in front of the batch message, documented the rule in two pages, and removed two comments that named a release the change had not shipped in; 5 new tests fail on `main`, 9 of 10 mutations killed ([#1420](https://github.com/MakazhanAlpamys/Soup/issues/1420), [#1476](https://github.com/MakazhanAlpamys/Soup/pull/1476))
- **yi111** ([@Yi-111-a](https://github.com/Yi-111-a))
- First contribution: with torchao actually installed, four FP8-gate tests failed. The `converts` fixture stubbed `torchao` as a bare module that transformers' torchao quantizer could not import, and two "torchao absent" tests left real `torchao.*` submodules cached. The fixture now pre-seeds a package-shaped stub tree, the absent-torchao tests clear cached submodules, and the torchao-contract CI job runs the file against real torchao. **They fixed two failures the issue had not listed.** Those appear only when an earlier test file has already imported torchao, which is the CI job's own order. With torchao 0.18.0, `main` fails 4 of 333 in that job's command and the branch passes all 333; 5 of 7 fixture mutations fail a test ([#1205](https://github.com/MakazhanAlpamys/Soup/issues/1205), [#1284](https://github.com/MakazhanAlpamys/Soup/pull/1284))
@@ -676,6 +685,7 @@ Listed by first contribution. PR numbers link the work.
- **Jillur Rahman** ([@developerjillur](https://github.com/developerjillur))
- First contribution: `soup eval behavior --base-model` scored each live generation by whether it contained the probe's oracle label word, so an unchanged healthy model read MAJOR and a real refusal regression read delta 0.00. Generations are now classified as refusals or answers against a frozen table, `--evidence` keeps word matching, and `elephant` / `syceval`, whose `disagree` oracle a refusal classifier cannot judge, are refused before any model loads with exit 3. **They also taught the refusal classifier the contracted `I'm unable` / `I'm not able`, and when review showed that this moves the `mini_safety` and `mini_over_refusal` gate suites too, they bumped the scorer revision with contracted forms in the fingerprint corpus, so an older `--baseline` warns and a revert is caught.** On `main` 24 of the new file's 25 tests fail; 5 of 6 mutations in the last round fail a test, and the sixth (the revision number set back while the new fingerprint stays) is a property of the repository's revision test, not of this change ([#1228](https://github.com/MakazhanAlpamys/Soup/issues/1228), [#1335](https://github.com/MakazhanAlpamys/Soup/pull/1335))
- Second merge. Four places read model output with a pattern that did not match the format they asked for: the LLM judge's one-level-nesting regex scored every criterion at the minimum whenever the reasoning quoted a nested object (and a missing or differently cased criterion became the minimum too), `\b...\b` could never match a keyword such as `-5`, `(B)` or `C++` so `soup eval checklist` reported MAJOR on a correct answer, and the recipe judge kept `NOT OK` because it contains the letters `OK`. They parse the structure instead (`raw_decode` over each `{`, one shared `(?<!\w)...(?!\w)` matcher for both keyword readers, a first-word verdict) and added two refusals nobody asked for, a 65,536-character reply cap and an ambiguous-spelling check. **The second round is the one to read**: each review finding became a test that fails under its mutation, and the five mutations that survived round 1 now all fail (right-hand edge 4 cases, `scores` preference 1, rubric-name folding 1, non-object `scores` 4, one-word default prompt 1); the deep-nesting test was rebuilt so it stays under their own size cap. 63 tests, 48 of them fail on clean `main`; 37 mutations, 34 killed ([#1467](https://github.com/MakazhanAlpamys/Soup/issues/1467), [#1472](https://github.com/MakazhanAlpamys/Soup/pull/1472))
+ - Third merge. Aligned ULD (`uld_strategy: wasserstein_aligned`, which `soup draft distill` selects for every cross-tokenizer pair) gave each student position with no aligned teacher token (a byte-fallback piece, an empty piece, a student-only special token) an all-zero teacher row, which softmaxes to uniform, and kept it in the loss: each such position scored about V/2 (7999.4 at a 32k vocabulary) against near 0 for aligned positions, and the gradient pushed the student toward maximum entropy there. They counted a position only when its alignment names an existing teacher position, in the sum and in the denominator, under the label mask, the attention mask and no mask alike (a sequence with nothing aligned gives a finite zero), and made the trainer decode student special tokens to an empty string as the teacher text already does. 15 tests (11 fail on main; the 4 that pass are controls), including one that runs the real `_DistillTrainer.compute_loss`, and a six-row mutation table that reproduces; ten mutations in review all died, and old-vs-new on fully aligned input was bit-identical in 800 comparisons ([#1426](https://github.com/MakazhanAlpamys/Soup/issues/1426), [#1541](https://github.com/MakazhanAlpamys/Soup/pull/1541))
- **dymux** ([@putramkti](https://github.com/putramkti))
- First contribution: The eval gate's MCQ scorer and the reward parser read the same `\boxed{...}` differently. After an echoed option list, `\boxed{B.}` and `\boxed{**B**}` scored as C in the eval gate and in `soup ship`, while the reward parser read B. The letter tier now reads boxes through one shared, linear scan in `utils/final_answer.py`, which yields only innermost boxes, so nested boxes stay linear and a double-boxed answer still reads its inner value. On `main` 4 of the 11 new MCQ tests fail and the scan tests cannot import. 7 of 7 mutations of the fix fail a test, and a 20,000-string differential fuzz against `main` found no change in the reward parser ([#1347](https://github.com/MakazhanAlpamys/Soup/issues/1347), [#1365](https://github.com/MakazhanAlpamys/Soup/pull/1365))
@@ -686,6 +696,7 @@ Listed by first contribution. PR numbers link the work.
- **qwist1233-cpu** ([@qwist1233-cpu](https://github.com/qwist1233-cpu))
- First contribution: `soup ab` accepted `--alpha` + `--beta` at or above 1. There the reject and accept boundaries cross and every LLR between them rejects, so two identical arms were reported as a significant regression. A huge `--effect-size`, or a near-constant column at the default, ended on a bare `OverflowError` that named no flag. They refuse the pair in `MsprtConfig`, naming both values, and bound the standardised effect at sqrt(float max) before it is squared. The bound is exact: sqrt(max) squared is finite, and the next float up overflows. It also closes a silent-NaN `continue` at `--effect-size 1e308` that the issue never listed. Their 15 tests include 5 deliberate controls that pass on main, 10 fail on main, and six mutations of the fix were each caught ([#1339](https://github.com/MakazhanAlpamys/Soup/issues/1339), [#1378](https://github.com/MakazhanAlpamys/Soup/pull/1378))
- Second merge. #1304 called `_ensure_assistant_masks` on every SFT split, but only the packed call had a test: gating both calls on `packing` kept all six #1236 tests green, and with `use_liger: true` trl's Liger column selection drops `labels`, so the system and user tokens would train again. They added two tests, one checking that an unpacked run carries the mask on both splits with the right content, and one driving trl's real `_prepare_dataset` and the trainer's own collator. **Review found that an all-zero mask still passed both, because the expected count came from the dataloader, which applies `assistant_masks` itself, so 0 == 0; they took the expected positions from the `labels` column instead and re-ran the row the next morning.** 13 of 13 mutations (10 in `trainer/sft.py`, 3 in a scratch copy of trl) now fail the new file, against 7 of 13 for the #1236 file alone ([#1351](https://github.com/MakazhanAlpamys/Soup/issues/1351), [#1376](https://github.com/MakazhanAlpamys/Soup/pull/1376))
+ - Third merge, one slice of the #1448 audit: `soup advise run <data> --probe-model X` ran the live probe, which is paid for, and then printed no ROI table. `--probe-model` implies `--probe`, the probe ran under the derived `run_probe`, and the table was gated on the raw `--probe` option. They claimed that one item on the issue and touched nothing else, changed the gate to `run_probe` (one line), and wrote the tests with the probe helpers monkeypatched so they count the calls as well as checking the table. **Review found that nothing pinned plain `--probe`: rewriting the gate to `probe_model is not None` kept all 71 tests green and would have hidden the table on the path the old gate served. They added the test the next morning, and that mutation now fails it.** The new file is 1 failed / 3 passed on `main`, 4 of 4 mutations of the gate are caught, and 228 related tests pass with `main` merged ([#1448](https://github.com/MakazhanAlpamys/Soup/issues/1448), [#1521](https://github.com/MakazhanAlpamys/Soup/pull/1521))
- **Momoyeyu** ([@Momoyeyu](https://github.com/Momoyeyu))
- First contribution: the streamed test builders picked `cuda` or `cpu` and never `mps`, so on Apple Silicon the model sat on the CPU while `TrainingArguments` picked `mps:0`. 32 streamed training cases, plus three classes #1258 had just added, therefore skipped on every macOS cell, and CI had never run a streamed backward pass, optimizer step or save on MPS. One `accelerator_device()` resolver in `tests/conftest.py` now serves all four builders, the three private `_mps_is_the_accelerator` copies are gone, and those cases run on MPS while both bitsandbytes skips stay. **They ran every round on an M3 Ultra and an RTX 4090 D before asking for review. They also set aside the CPU pin the issue proposed, because no CPU-pinned case reaches a trainer step, which checks out, and dropped #1258's MPS skip only after its classes passed on real hardware.** A resolver test now catches all four resolver mutations on any machine (3, 2, 1 and 1 failures), and forcing the MPS probe on a machine without MPS fails 67 cases ([#1355](https://github.com/MakazhanAlpamys/Soup/issues/1355), [#1375](https://github.com/MakazhanAlpamys/Soup/pull/1375))
@@ -705,6 +716,7 @@ Listed by first contribution. PR numbers link the work.
- **Urooj Fatima Mukhtar** ([@UroojFatima-052](https://github.com/UroojFatima-052))
- First contribution: ten real-`train()` tests were still skipped on every windows-latest cell under #382, although #1314 had traced the crash to CPU bf16/fp16 matmuls and the skip helper's docstring still blamed bitsandbytes for all of them. Nine now request `aten_half_matmuls` and the tenth, an fp32 run, just loses its skip. **The part worth copying is the guard that keeps the list honest**: a `FIXTURE_TESTS` check fails if any of the nine stops requesting the fixture, and, after review, if one both requests it and carries the skip again. `GUARDED_TESTS` shrinks to the two NF4 tests that really are the bitsandbytes crash, with the reason written next to the list. They flagged that their own CPU probably never hits `0xc000001d`, so the windows-latest cells are the real test, and the required run on their first head was green on all three with every one of the ten tests passing. 6 of 8 mutations fail a named test, one is caught by an existing test elsewhere, and the new guard file fails 9 on `main` ([#1359](https://github.com/MakazhanAlpamys/Soup/issues/1359), [#1401](https://github.com/MakazhanAlpamys/Soup/pull/1401))
+ - Second merge, and it is the one that claimed the work and then did what it said. #1490's whole-token `contains` scorer had become quadratic in `len(output) * len(expected)` on repetitive token-separated text (a 400,000-character output against a 200,000-character `expected` took 68 s; v0.75.1's substring test took 0 s) because its pattern began with a lookbehind and ran under `re.IGNORECASE`, which keeps `re` off its literal-prefix search. They posted the plan before writing code (literal first, a fixed-width lookbehind after it, both sides lowercased once, `İstanbul` and `ſ` staying `False` as in v0.75.1) and the pull request is that plan. The tests mirror the acceptance list: a growth test on four shapes in the `test_issue1346_rewrites_are_linear.py` style, a 20,000-case differential against a copy of #1490's regex over the issue's own alphabet, the two Unicode pins documented in the `contains` row, and a gold token at character 60,000 of a 60,016-character output so a reintroduced slice fails. Review ran 16 mutations of the scorer (either boundary, the lowercasing, `re.IGNORECASE` back in, the lookbehind width off by one both ways, a 50,000-character slice, the literal last again, no `re.escape`, no `strip`) and all 16 fail the new tests; 4 of the 8 new tests fail on `main`, and a 320,000-case differential against an explicit overlapping scan agrees with 0 mismatches ([#1528](https://github.com/MakazhanAlpamys/Soup/issues/1528), [#1540](https://github.com/MakazhanAlpamys/Soup/pull/1540))
- **Bakdaulet** ([@bakdauletbaktygaliyev](https://github.com/bakdauletbaktygaliyev))
- First contribution: `soup diagnose` scored a probe that never ran as OK 1.00, so the overall verdict, the exit code and the badge all read it as a pass: a `--dataset` of ShareGPT or plaintext rows gave overall OK / exit 0, a 9000-character prompt turned a MAJOR into OK, and a `--tokenizer` typo exited 0 with a green badge. They added a `NOT_RUN` verdict (score 0.0 only, ranked between MINOR and MAJOR, grey, exit 3 unless `--allow-not-run`, MAJOR still wins), kept the exception text in the evidence, resolved `--tokenizer` before any model loads, and found two consumers nobody asked about, `train --diagnose-gate` and the MCP `diagnose_evidence` tool, both fixed through one shared `evidence_default_score` helper. **The part worth copying is what they did with review**: a second round showed memorization still reading OK 1.00 on `question`/`answer`, `query`/`response` and `input`/`output` rows and only two of six converted `except` sites pinned by a test; they took the guard, added a parametrized test over all six probe sites and three memorization shapes, tightened both, and named the gap they left on purpose rather than hiding it. The 175 tests in the two touched files fail 39 on clean main and pass on the branch; 19 of 20 mutations of the new logic fail a test, including the four sites that survived the first round ([#1435](https://github.com/MakazhanAlpamys/Soup/issues/1435), [#1489](https://github.com/MakazhanAlpamys/Soup/pull/1489))