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): #1155, #1297, #1302, #1336, #1377, #1294, #1368, #1370, #1371, #1372, #1375, #1379, #1386, #1388, #1397, #1400, #1402, #1403, #1404, #1410, #1108, #1143, #1133

Alpamys3e104bca8909
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 7dc682c3..335021bf 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -95,6 +95,7 @@ Listed by first contribution. PR numbers link the work.
- A LoRA adapter wrapping a streamed `lm_head` or `embed_tokens` had only its literal `weight` key redirected to the canonical weight; every other key under the same prefix still pointed at a module that lives on `meta`, so **a save wrote them from nothing and a resume loaded them into nothing**. The redirect now covers every key under the prefix, which matches what the streamed module's state actually contains rather than adding a second special case beside the first. **The restraint is worth naming**: the optional both-spellings refusal was declined with a reason — it is a separate behaviour, not a wider version of this one — and moved to the issue, so the PR stayed reviewable. Verified here on the merged tree under peft 0.20.0 and 0.21.0: round-trip equality with `torch.equal` over 10/10 and 12/12 keys on both, including the regex, tied and dotted-name cases; reverting to the literal key fails those tests ([#1048](https://github.com/MakazhanAlpamys/Soup/issues/1048), [#1055](https://github.com/MakazhanAlpamys/Soup/pull/1055))
- Two tests for a defect that is **already unreachable**, delivered within the hour of being asked for — and the reason they are worth having is the second one. `TestRealPageLockFailureIsDrainedBeforeTheProbeRuns` drives the real `_build_source(pin=True)` with only `RamSource` mocked to fail its pinned allocation, so #901's `recover_from_failed_page_lock` -> `drain_stale_cuda_error` runs for real before the VRAM probe. `TestPositiveControlUndrainedErrorReadsAsOom` is the control: **an undrained stale `AcceleratorError` classifies as `oom=True`**, which is the misread users reported — a page-lock failure surfacing as an out-of-memory with gigabytes free. A regression test for an unreachable defect is decoration unless something proves the harness would catch it, and that is what the control does. They reached this by investigating and concluding **not reproducible, with the reason** rather than shipping a speculative patch. Verified here: 2 passed under peft 0.20.0 and 0.21.0, 68 across the neighbouring #901/#1002 suites, and neutralising the drain at `layer_stream_runtime.py:2818` fails the test — pinned to the mechanism, not the classifier ([#1003](https://github.com/MakazhanAlpamys/Soup/issues/1003), [#1072](https://github.com/MakazhanAlpamys/Soup/pull/1072))
- `training.gradient_checkpointing` was decided by the trainer rather than by the config on every 4-bit path: `prepare_model_for_kbit_training` was called without the resolved value, so `false` could not turn checkpointing off and nine wrappers could drop a `true`. Threaded into every k-bit site on the text path, thirteen wrappers from `sft` through the preference and RL families. **The part worth copying is what they did when the first revision's test was too weak**: asked for behavioural coverage, they did not add more kwarg assertions — they drove the real `_setup_transformers` for sft, dpo and grpo, so forcing `use_gradient_checkpointing=True` at the SFT text site or the GRPO site fails its own parametrisation, and the count of tests that fail without the fix went from 2 of 16 to 9 of 20. They also **declared the scope they did not take**: the vision and audio k-bit sites are named as a follow-up and [#797](https://github.com/MakazhanAlpamys/Soup/issues/797) stays open for them rather than being quietly closed. Two reds on this branch were mine to explain and not their code -- [#382](https://github.com/MakazhanAlpamys/Soup/issues/382)'s Windows illegal instruction, and the Lambda SIGINT test that [#1073](https://github.com/MakazhanAlpamys/Soup/issues/1073) repaired ([#797](https://github.com/MakazhanAlpamys/Soup/issues/797), [#1045](https://github.com/MakazhanAlpamys/Soup/pull/1045))
+ - `accuracy` and `verifiable/math` scored 0.0 on common MATH answer spellings: `\boxed{90}` against a `90^\circ` gold, `\boxed{\text{Paris}}`, `\boxed{\frac12}` against `\frac{1}{2}`, and an `x = 7` prefix that only the completion side read. They taught the shared normaliser all four rewrites. Then, over three review rounds, they kept the variable's name so `x = 3` never pays `y = 3` (in both rewards, including `math`'s tolerance branch). They reworked the compact `\frac` rule after review showed their first version broke two MATH-500 golds (`\frac 34`, `\frac 59`), refused a gold with nothing after `x =`, and added a growth test for each rewrite. **Each push came with its own negative controls, and every one matched what the review measured.** All 16 mutations of the final fix fail its tests (262 of the 3025 fail on `main` without it). Across 9,792 GSM8K and MATH-500 golds, 70 MATH-500 readings change and none is refused ([#1346](https://github.com/MakazhanAlpamys/Soup/issues/1346), [#1371](https://github.com/MakazhanAlpamys/Soup/pull/1371))
- **Ben Younes** ([@ousamabenyounes](https://github.com/ousamabenyounes))
- `MitigationLogWriter` dropped every record in silence once its parent directory vanished mid-run — the controller kept acting while its evidence stopped growing ([#398](https://github.com/MakazhanAlpamys/Soup/pull/398))
@@ -190,6 +191,10 @@ Listed by first contribution. PR numbers link the work.
- `soup diagnose` tokenized with an ASCII-only regex, so an adapter answering in Greek, Cyrillic, Hindi, CJK or Thai read as MAJOR mode collapse, and one that had forgotten everything still read OK on the forgetting probe. They rebuilt the tokenizer on Unicode categories, with NFC, bigrams for unspaced scripts and digits, and kept English `token_f1` scores identical to main. **Three rounds, and the second was about cost**: NFC on untrusted text was quadratic in a run of combining marks (15 s for 100k characters), so they added a stream-safe cap and pinned it with a Tibetan case that only a category-based filter survives. New tests 54 passed and 32 fail on main; 11 of 11 targeted mutations caught ([#1233](https://github.com/MakazhanAlpamys/Soup/issues/1233), [#1301](https://github.com/MakazhanAlpamys/Soup/pull/1301))
- Contrastive embedding training at one row per batch trained nothing. The in-batch similarity matrix is 1x1, so the loss and gradient are exactly 0, and the shipped template's `batch_size: auto` picked 1 on CPU, MPS and GPUs under ~45 GiB because BGE names were sized as 7B. They refused batch 1 at load and at setup (including the triplet-to-contrastive fallback, by resolving the loss before sizing the batch), floored auto at 2, dropped the last partial batch, guarded the forward, and taught the size estimate BGE / E5 / GTE / BERT-family names. 12 of 13 mutations fail tests ([#1234](https://github.com/MakazhanAlpamys/Soup/issues/1234), [#1296](https://github.com/MakazhanAlpamys/Soup/pull/1296))
- A KL-free GRPO run could not be configured, because `grpo_beta` was validated `> 0`. That is the DAPO / Dr. GRPO setting, and it became unreachable once every variant applied the KL term. They relaxed the bound to `>= 0` without letting `false` or any spelling of infinity through, refused `grpo_beta: 0` next to the controllers that steer beta, and added a real-trainer test in which every variant computes the KL-free loss itself, bit for bit, with no fallback to trl's loss. Verified on trl 0.29.1: no reference forward runs at beta 0, and 10 of 11 mutations fail tests ([#1247](https://github.com/MakazhanAlpamys/Soup/issues/1247), [#1295](https://github.com/MakazhanAlpamys/Soup/pull/1295))
+ - SFT's audio setup never reached the FP8 converter, and layer streaming and the unsloth backend accepted `quantization_aware: fp8`, `fp8_attention` and `nvfp4` without applying them. They wired the audio path to convert after the LoRA attach, refused the other two paths at config load on every task, and declared the unsloth rows in `soup doctor`'s table. It took five rounds: a roundtrip test that had to be inverted rather than left red; a refusal that briefly swept in `use_cut_ce` / `activation_offloading`; the "after LoRA" order pinned by a wrapper-identity test; rebases over #1169, #1154 and #1333; and three tests re-pointed once #1275 made `true` unloadable. They also credited the two pieces adapted from @Srinivasan8888's branch. On the merged tree: 1658 passed, 0 failed across 28 files; 11 of 12 mutations caught ([#1124](https://github.com/MakazhanAlpamys/Soup/issues/1124), [#1155](https://github.com/MakazhanAlpamys/Soup/pull/1155))
+ - DeepSeek-V4-Pro had only an SFT recipe. They added `deepseek-v4-pro-dpo` and `deepseek-v4-pro-grpo` in one PR, as #850 asked, with every value's source stated. The model block comes from the Pro SFT sibling and the task blocks from the DPO and MoE-GRPO conventions. Both surfaces (`RecipeMeta.model` and YAML `base:`) are pinned by tests. Along the way they fixed the MoE counts in the docs. After #1132 they redid the catalog count with the sync and snapshot scripts, so the five sites and the fixture agree at 174. 2266 passed across 11 recipe files; 17 of 20 mutations caught (the other 3 equivalent), and 5 of 5 re-run after the rebase ([#850](https://github.com/MakazhanAlpamys/Soup/issues/850), [#1297](https://github.com/MakazhanAlpamys/Soup/pull/1297))
+ - `soup migrate` dropped the quantization key for unquantized sources and wrote nothing for full fine-tunes, so axolotl, LLaMA-Factory and Unsloth configs silently became 4-bit LoRA runs on load. They made all three migrators write quantization explicitly: HQQ/EETQ mapped, Unsloth's own precedence and notebook variables resolved, and a full fine-tune written as `lora.r: 0` or refused by task name. `soup migrate` now validates before writing. The review rounds added a receiver-qualified exception to the #748 guard instead of deleting its entry, a LoRA fallback for `llama-adapter`, HQQ 5/6-bit, and source-order variable resolution. Six mutations that survived gained tests, and a clash with #1254's import landed a one-line fix. 275 passed, 0 failed across 9 migrate files; 16 of 18 mutations caught ([#1215](https://github.com/MakazhanAlpamys/Soup/issues/1215), [#1302](https://github.com/MakazhanAlpamys/Soup/pull/1302))
+ - Every DPO, IPO and `preference` run that set `dpo_beta_schedule` or `dpo_ref_regen_epochs` crashed at step 0. Both callbacks were plain classes, and transformers' `CallbackHandler` calls every event on every callback with no `hasattr` guard. They rebuilt both on the lazily resolved `TrainerCallback`, with the PEP 562 pattern of `lisa.py`, so the module still imports no torch. They also fixed the third bare callback the issue named. Their real CPU DPO `train()` tests assert the β trl uses after the first optimizer step, not just that the run finishes. `dpo_ref_regen_epochs` could never regenerate the reference: with LoRA there is no separate reference model, and `lora.r: 0` fails in peft. It is now refused at load in every case until [#1345](https://github.com/MakazhanAlpamys/Soup/issues/1345) wires it. 10 of 11 mutations fail tests ([#1229](https://github.com/MakazhanAlpamys/Soup/issues/1229), [#1294](https://github.com/MakazhanAlpamys/Soup/pull/1294))
- **AmixDigital** ([@Amix29](https://github.com/Amix29))
- Gave `soup monitor` a real Apple Silicon path, where it had reported nothing but an NVIDIA-shaped blank since v0.44.1. The security work is the part worth naming: fixed absolute executable paths so `PATH` cannot influence what runs, `sudo -n` that never prompts and never reads a password, stderr pattern-matched for permission markers but never printed, and a parser that returns `[]` against a billion-laughs entity bomb, an XXE `file:///` reference, 5,000-deep nesting and embedded NUL bytes. **Three guards had no test holding them up and they closed all three in twenty minutes** — most importantly the call site that decides which implementation every Linux and Windows user gets, where `if True or detect_apple_silicon()` had left 126 tests passing. Their oversize-payload test had also been asserting on `b"x" * (CAP + 1)`, which is not a valid plist and returns `[]` whether the cap exists or not; they rebuilt it around a valid oversized document. The test file shrank by 18 lines and **every deletion was an upgrade** — membership assertions became adjacency assertions. Asked to confirm the live plist schema, they said plainly that the Mac is not theirs and they cannot authenticate `sudo`, rather than guessing — while confirming the two things they could check against the real binary ([#481](https://github.com/MakazhanAlpamys/Soup/pull/481))
@@ -253,6 +258,8 @@ Listed by first contribution. PR numbers link the work.
- Made `soup attest emit --sign sigstore` live, where it had printed "infra-blocked" and silently written an UNSIGNED attestation with exit 0. **Every local check runs before the first Fulcio/Rekor request, because a Sigstore signature is a permanent public Rekor entry carrying the signer's identity**: `--output`, paths, `--key` and case variants of `--sign` are all refused first. Verification needs an out-of-band identity and issuer, and a verifier outage now exits 1 instead of being reported as tampering. 19 of 20 mutations of the sign and verify paths were killed at the final head ([#179](https://github.com/MakazhanAlpamys/Soup/issues/179), [#1115](https://github.com/MakazhanAlpamys/Soup/pull/1115))
- Published the STEP 13 CPU fixture-window probe (`benchmarks/harness/fixture_window_cpu.py`), which answers both questions the scratchpad lost: where the CI fixture sits relative to the fused-kernel window, and whether bitsandbytes' CPU inference packing causes the recorded rounding-scale difference, one `Linear4bit` at a time against Soup's shipped variant 2. The default run fails closed on every axis (control exact on every row, packing present, every packed row different, every difference inside 2%), and each row carries a same-run emulated-bf16 reference, so the envelope is justified by the harness's own output (4.17x the worst emulated row). Its conditional test surfaced the first real AVX512-BF16 run, on a GitHub runner: 12 of 12 rows packed with the native kernel, 0.375-0.572% against variant 2. Final review: 30 tests (63 with the README reader), all 30 failing on main; the three mutations that had left the emulated reference unpinned each fail a test ([#379](https://github.com/MakazhanAlpamys/Soup/issues/379), [#1144](https://github.com/MakazhanAlpamys/Soup/pull/1144))
- Built the fused Fast-LoRA SwiGLU MLP block: gate/up/down LoRA around SiLU with a hand-written backward that keeps `X`, `G` and `U` and recomputes `silu(G)` and `M`. At the Llama-3.1-8B shape it saves **117,702,656 bytes** of activations against plain peft, exactly the two `[N, f]` tensors the issue predicted plus one `[N, r]`. **The round worth recording is the numerics one**: review found the bf16 backward failing the tracker's own 2x-vs-float64 rule on one NF4 seed (4.93x), from a six-op bf16 SiLU-derivative chain and a cast-before-add on the LoRA term. The fix came back within the hour: fp32 opmath for the derivative, one shared promote-add-cast helper that the single-projection and QKV kernels now use too, and a CPU test for each half, so CI sees what only a card could before. Along the way they moved the peft-delegation guards into one shared `_projection_state` instead of a third drifting copy. On the final head the CPU suite is 126 passed / 6 skipped, the file fails 88 tests on `main`, and reverting the shared add, the down-projection add, or saving one extra `[N, f]` tensor fails 6, 5 and 1 tests ([#837](https://github.com/MakazhanAlpamys/Soup/issues/837), [#1107](https://github.com/MakazhanAlpamys/Soup/pull/1107))
+ - Built the shared-X Fast-LoRA Q/K/V kernel: one `X @ A_cat^T` GEMM for the three LoRA-A projections, one `dA` GEMM and one accumulated `dX`, with the base GEMMs left separate so packed NF4 never needs re-laying-out. **The design call worth recording is the hook**: instead of forking HF attention forwards per architecture, the patched `q_proj` computes Q, K and V together and hands K and V to the next two calls through a short-lived cache keyed by the identity of the input tensor, delegating to peft for any other tensor. When review showed the suite could not tell the kernel from its absence, they pinned the fused path on all three outputs, so a cache that is silently not consumed now fails 56 tests. Over six review rounds they also closed a bf16 cast-before-add, a crash on cross-attention whose key width differs (reproduced on a real TrOCR module), a mixed int8 sibling, and ownership with the single-projection patcher in both orders, each with a test, and kept every restack patch-identical. On the final head: 210 passed / 10 skipped on CPU, the three NF4 rows pass on an RTX 5070, and 23 of 24 mutations fail a test ([#838](https://github.com/MakazhanAlpamys/Soup/issues/838), [#1108](https://github.com/MakazhanAlpamys/Soup/pull/1108))
+ - Streamed NF4 on CUDA always dequantised and ran `F.linear` while resident NF4 ran bitsandbytes' fused GEMM, so on sm_120 the two disagreed (4.88e-4 fp16 / 3.9e-3 bf16). They routed streamed NF4 through bitsandbytes' own dispatch, read at call time, and ran the fused arm through a checkpoint-visible autograd Function with a slot-ownership check, which fails toward the exact path if bitsandbytes' private names move. They also folded #841's per-mapping view cache into the same PR. On the RTX 5070: 19/19 `gpu` tests pass with `[nf4]` at exactly 0.0, the three ruling mutations are each caught (7, 1 and 3 failures), and the #776 numbers return when the source is taken from main. On CPU: 188 passed / 22 skipped, 7/7 mutations killed ([#842](https://github.com/MakazhanAlpamys/Soup/issues/842), [#1143](https://github.com/MakazhanAlpamys/Soup/pull/1143))
- **Srinivasan R** ([@Srinivasan8888](https://github.com/Srinivasan8888))
- Corrected the MCP execution-tool refusal so it gives an actionable `--allow-execute` message instead of claiming shipped tools are unimplemented ([#574](https://github.com/MakazhanAlpamys/Soup/pull/574)).
@@ -317,6 +324,8 @@ Listed by first contribution. PR numbers link the work.
- `training.lr_groups`, `training.early_stop_patience` and `training.citation_recall_threshold` were documented, validated and read by nothing. They now get #808's warn-then-refuse through #1106's `STAGED_FIELDS` and its single deadline constant, and the docs and schema descriptions no longer promise a per-module learning rate or a recall gate that never existed. **The move is the part worth copying**: `early_stop_patience` left `soup train`'s undated note instead of being listed twice, which is the double diagnostic #1106's review had to untangle, and a test pins both that it left and that its sibling flag stayed. When review showed that staging the fields blinded the #755 drift guard, they fixed the guard and put its original stand-in back instead of keeping the substitute that had hidden the gap. 10 of 10 mutations fail a test, and 1,103 tests pass across 23 related files ([#761](https://github.com/MakazhanAlpamys/Soup/issues/761), [#1337](https://github.com/MakazhanAlpamys/Soup/pull/1337))
- An explicitly requested FP8 that failed during conversion trained on anyway. `apply_fp8_training` returned `False` and discarded torchao's error, so `quantization_aware: fp8` printed a yellow line and trained in bf16. The `fp8_attention` refusals ("PARTIALLY converted", "refusing the silent no-op") were caught and printed as yellow lines while training went on over a half-converted model or a no-op. All three now stop the run at setup and quote the cause. The uncalled `validate_fp8_config` is deleted, with a table mapping every behaviour its tests pinned to a live-path test that still holds it. **The discipline worth copying is what they left out**: NVFP4's identical degrade, and the OOM matcher that swallows the wrapped message, were both flagged as out of scope rather than folded in. Review ran the real torchao 0.18 and found its own conversion raising `AssertionError` and `TypeError`, which escaped the first catch unwrapped. They widened it to every exception and added the ready test in one push, replying twenty-five minutes after the review with three numbers that match my own re-measurement exactly. On the final head merged with `main`: 458 tests pass in the FP8 core set and 1,923 in the 28-file FP8 radius, 11 of the PR's tests fail on `main`, and 14 of 14 source mutations fail a test ([#1152](https://github.com/MakazhanAlpamys/Soup/issues/1152), [#1333](https://github.com/MakazhanAlpamys/Soup/pull/1333))
- The `moe_lora` + `backend: unsloth` refusal gave one reason on every task, and it was false on the ten tasks with no unsloth setup; it also fired before the refusals that hold on every backend, so `asr`, `prm`, `moe_lora_routing` and SFT vision/audio were sent to `transformers` only to be refused again. They measured the task list from the wrapper classes rather than trusting the issue's seven, split the reason by a ratchet-checked `UNSLOTH_SETUP_TASKS`, and reordered the checks so each of those configs gets one refusal on every backend. A 936-config grid shows nothing newly refused (305 load on both sides); 135 tests pass on the merged head, 35 of the 72 new ones fail on `main`, and 12 of 12 source mutations are killed ([#1264](https://github.com/MakazhanAlpamys/Soup/issues/1264), [#1323](https://github.com/MakazhanAlpamys/Soup/pull/1323))
+ - `backend: unsloth` loaded on seven tasks whose trainers have no unsloth setup (`reward_model`, `prm`, the classifier family, `unlearn`, `moe_lora_routing`). The run trained on plain transformers under an "unsloth (fast mode)" banner, and `soup doctor --config` called the config clean. They refused it at load with one check keyed on #1323's ratchet-checked `UNSLOTH_SETUP_TASKS`. It sits last, so the refusals that hold on every backend still come first, and the fragment states the breaking change together with its one-line fix. **Review's catch was about order**: on six tasks `unsloth_bnb_4bit` got in ahead of the refusal with "got quantization='none'", a value the user never wrote, because the #795 resolver had already rewritten it. The fix went in within about half an hour, and so did a second class closing a gap in the review's own test. Each time they re-ran the review's key mutation before replying. They also took the optional structural test that forces any later every-backend check above theirs. When #1313 then landed in the same spot, they rebased with that check first and theirs last, exactly as asked: rebuilding the resolution from the approved head gave their file byte for byte. On the final head, merged with `main`, 341 tests pass across the file, #1264, `test_v0530` and #748, and 282 across the file, #1223's three and #795's. 23 of the file's 64 tests fail on `main` with every control passing, all 202 shipped configs load, and 23 of 23 source mutations fail a test ([#1357](https://github.com/MakazhanAlpamys/Soup/issues/1357), [#1372](https://github.com/MakazhanAlpamys/Soup/pull/1372))
+ - Added the CI ratchet that #1116's second half asked for. `scripts/check_recipe_attach.py` runs `soup recipes verify --json` over every shipped recipe, template and example and fails only on a change: a new config that cannot attach, a pinned one that now attaches, or a pinned one that vanishes from verify's output, against 20 exceptions each pinned with a reason. As ruled, it runs anonymously on pull requests and with `HF_TOKEN` only on push to `main`, is never a required check, and reports what it could not cover by reason (50 gated, 12 remote code, 7 unreadable), so a token-less green is not read as full coverage. **The rule worth copying is `not_reported`**: they added it test-first after their own review showed that a pinned config which stopped parsing would silently leave the list while the run stayed green, and it is what names `minimax-m3-dpo` once #1398 removes it. Review found that this rule had made the new-failure tests red for the wrong reason, and that the push trigger predated #1374's shared group for `main`; both fixes and every optional point landed in one push, with mutation counts that matched the review's exactly. On the final head merged with `main`, 18 tests pass, 13 of 14 source mutations fail a test and the 14th is caught by the live run, and actionlint is clean ([#1116](https://github.com/MakazhanAlpamys/Soup/issues/1116), [#1388](https://github.com/MakazhanAlpamys/Soup/pull/1388))
- **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)).
@@ -386,6 +395,7 @@ Listed by first contribution. PR numbers link the work.
- Added `qwen3.5-0.8b-grpo` and `qwen3.5-2b-grpo`, and the interesting part is the defence rather than the recipes: each carries a hand-written literal repo id pinned on **both** surfaces, and that pin is load-bearing. A repo id mutated on one surface is caught by the catalog-wide cross-checks; mutated **consistently on both**, every cross-field invariant stays silent — the two surfaces still agree with each other — and only the literal pins fire. Since the snapshot fixture is regenerated by the author, an id wrong from the start would be baked into it, so the hand-written literal is the only independent statement of the expected repo. That is the class that shipped `glm-5` pointing at `THUDM`. They also stated the three values [#848](https://github.com/MakazhanAlpamys/Soup/issues/848) required be argued rather than inherited — notably `lr: 1e-5`, where copying the SFT siblings' 2e-4 would have been an order of magnitude out on a GRPO objective — and pre-declared five of the six equivalent-by-construction mutation survivors, which they are placed to know exactly, having authored the delta-encoded snapshot guard ([#640](https://github.com/MakazhanAlpamys/Soup/pull/640)) and the decision that that direction must not be killed ([#848](https://github.com/MakazhanAlpamys/Soup/issues/848), [#864](https://github.com/MakazhanAlpamys/Soup/pull/864))
- 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))
- **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))
@@ -427,6 +437,7 @@ Listed by first contribution. PR numbers link the work.
- MiniLLM enabled with the default offline blend **ignored the teacher while still loading it** — at mix 0 the offline reverse-KL target is the detached student, so the run paid for a teacher that contributed nothing ([#692](https://github.com/MakazhanAlpamys/Soup/issues/692)). Refused at parse, with mix 0 kept legal on the on-policy path where it genuinely means student-only sampling. **The second round is the one worth recording.** Told that `--minillm-on-policy` was applied *after* validation and so was now dead for the exact config it exists to serve, they did not move the assignment — they gave `load_config` a `training_overrides` parameter that merges into the raw `training:` mapping before `SoupConfig` is built, so a CLI flag now passes through the same cross-validators as YAML and the next such flag inherits the fix. Turned around in under an hour, with a test that invokes the CLI rather than grepping `--help`. ([#977](https://github.com/MakazhanAlpamys/Soup/pull/977))
- The distill test harness recompiles `_DistillTrainer.compute_loss` and bound the closure's free variables **by value at compile time**, so a new free variable raised a `NameError` **attributed to `distill.py`** — a file where nothing was wrong. That is worse than a crash with no location, because it costs someone an afternoon before they doubt the traceback. The bindings are now derived from the factory and `TrainingConfig` defaults and the error names the symbol that could not be resolved; nested functions such as `_token_weighted_accumulation` are no longer misreported as missing, which is what keeps the error trustworthy; and the recompiled class carries `<compiled _DistillTrainer>` so the misattribution cannot return even if the derivation is wrong one day. Verified here on the merged tree: 45 passed across the #720 grad-accum file, the changelog-fragment guard and the #887 broken-teacher suite ([#990](https://github.com/MakazhanAlpamys/Soup/issues/990), [#1008](https://github.com/MakazhanAlpamys/Soup/pull/1008))
- A PR's green marks describe the `main` that existed when the run started, `strict` is off, and a stale-green PR nearly merged a `NameError` onto `main` on [#763](https://github.com/MakazhanAlpamys/Soup/pull/763). They built the missing half: a `merge-freshness` check that rebuilds the live merge with `git merge-tree --write-tree`, scans it for undefined names, and re-evaluates every open PR on each push to `main`. **The reason this one is worth reading is the security round.** The re-evaluation job holds a `checks: write` token while materialising fork trees, and the first revision ran `python -m ruff` with the working directory set to that tree — so a planted `ruff/__main__.py` executed with the token, which I demonstrated rather than argued. Their fix is three independent layers (an absolute binary resolved by `shutil.which` before any cwd change, a scrub of `GITHUB_TOKEN` / `GH_*` / `ACTIONS_*TOKEN*`, and `--isolated` so the fork's own `ignore = ["F821"]` cannot suppress a finding), each one pinned by the same test, and the fork tree is extracted from `git archive` with `filter="data"` so it carries no `.git` and no persisted credential. Re-run on the final head: the control still writes the token on the old head and the new head writes nothing on **both** invocation paths. They also moved the re-evaluation logic out of the argv reader into an injectable function so the two mutations that had survived now redden named tests, pinned five workflow-shape properties structurally (the `push` trigger, no `ref:` on the checkout, the `if:` conditions, `cancel-in-progress`, the ruff pin), and **documented the one thing that cannot be fixed in code** — the gate job grades its own PR, so only the check posted from `main`'s copy is trustworthy ([#1017](https://github.com/MakazhanAlpamys/Soup/issues/1017), [#1071](https://github.com/MakazhanAlpamys/Soup/pull/1071))
+ - ReLoRA **threw away what the adapter had learned at every restart**: the callback magnitude-pruned `lora_A`/`lora_B` in place without merging them into the base, and a tie could zero both factors into a branch with no gradient. They took the paper contract rather than the rename: merge the PEFT-scaled `B @ A` into the base, re-initialise A and B, clear the optimizer moments, re-warm the LR from `1/(W+1)`. They carried it through five review rounds, each of which found something the previous one could not see: a skip that switched ReLoRA off on every real peft model; a merged base that never reached the saved output (95.4% of the training effect missing after three restarts, reloaded the way `soup merge` does); and a dense save that crashed after training on the embedding and PPO wrappers. **Each time they fixed the cause rather than the symptom**: the save now resolves the embedding wrapper's inner trainer and trl's PPO policy, refuses a model it cannot save dense before step 1, keeps the literal non-ReLoRA save so two existing guards stay valid, and is pinned by a ratchet over every trainer that attaches ReLoRA. Verified here on the tree merged with `main`: the output reloads to the trained logits (0.00004% missing), `soup train` finishes dense for sft, dpo and embedding, their three test files pass where `main` fails 33, and all seven mutations re-run on the final head are caught ([#693](https://github.com/MakazhanAlpamys/Soup/issues/693), [#1133](https://github.com/MakazhanAlpamys/Soup/pull/1133))
- **Dipak Chaudhari** ([@dchaudhari7177](https://github.com/dchaudhari7177))
- Took multipack FFD placement from O(N^2) to O(N log N) by descending a segment tree of per-bin remaining capacity instead of scanning every open bin — 5.5x faster at 1,000 rows, 37x at 10,000, 96x at 30,000, with per-10x-N scaling dropping from 104-130x to 8.9-13.9x. **The property that decides a change like this is not that the packing is valid but that it is IDENTICAL**, since moving one item to a different bin silently changes every multipack training run with no test failure to announce it; verified against the pre-change function over 6,000 randomized cases, 5,384 of them containing repeated lengths, for zero mismatches. They also wrote the one test that a behaviour-preserving revert cannot escape — no equivalence assertion can detect a pure performance regression, so a single timing test is the only guard against silently returning to quadratic, and they wrote it as a **ratio measured inside one process** rather than an absolute threshold, which is the shape that survives a slow CI runner. @Srinivasan8888 stood down on [#716](https://github.com/MakazhanAlpamys/Soup/issues/716) in favour of their design on a neighbouring PR, saying it made the pin unnecessary to trust rather than merely pinning it ([#694](https://github.com/MakazhanAlpamys/Soup/issues/694), [#726](https://github.com/MakazhanAlpamys/Soup/pull/726))
@@ -454,6 +465,7 @@ Listed by first contribution. PR numbers link the work.
- The README translation gate forced a Turkish re-translation of `What's New` every release, for text that is replaced every release. That section is now exempt. **The design point worth copying:** the exempt list feeds the stamp hash, so widening it changes every stamp and cannot happen quietly. All four conditions of the issue survived mutation in review ([#1013](https://github.com/MakazhanAlpamys/Soup/issues/1013), [#1020](https://github.com/MakazhanAlpamys/Soup/pull/1020))
- Arabic and Japanese READMEs, both behind the same structural ratchet that gates the Turkish one they shipped in v0.75.0 — so a `README.md` edit now has to re-translate and re-stamp three files. Coverage is structural rather than listed (`translations()` globs `README.*.md`), which I proved by appending a line to `README.md` and watching the stamp test name both new files. All four files agree exactly: 21 headings with an identical level sequence position by position, 12 fenced blocks with an identical language sequence, 20 table rows, and the same 34 URLs and 34 relative paths, every path existing on disk. The translations are real rather than nominal — 89.2% of the Arabic prose letters are Arabic, 83.4% of the Japanese are kana/kanji, and the only long Latin-script line is the preprint citation, which correctly stays in English — with 13 `<span dir="ltr">` wrappers so the DOI and version strings still read left-to-right inside RTL prose. Four mutations, four killed, and the guard names the section and the differing command rather than counting lines ([#1100](https://github.com/MakazhanAlpamys/Soup/pull/1100))
- Built the CodSpeed trip-wire for `config/schema.py`'s import cost, the dominant leaf of `soup version`'s cold start that they measured in #780. It is one pytest-codspeed benchmark in its own non-required workflow, off until a repository variable enables it and never run on fork PRs, with no stored secret. **They corrected their own proposal in public**: the CodSpeed App's real permissions were far wider than the "read access" they had first described, so they listed them from the App's registration and left the install decision to the maintainer. The benchmark says in its own docstring what it does not measure, and the isolation test that guards its `sys.modules` restore kills all 4 mutations tried ([#1065](https://github.com/MakazhanAlpamys/Soup/issues/1065), [#1086](https://github.com/MakazhanAlpamys/Soup/pull/1086))
+ - Took the layer-streaming runtime off `soup version`'s import path, using the third option from #780, which they re-measured before proposing it. `config/schema.py` imported ten bounds from `layer_stream`, `async_disk_source` and `ship_verdict`, so every CLI start loaded six modules (`layer_stream`, `layer_shard`, `async_disk_source`, `safetensors_reader`, `queue` and `_queue`) to read ten numbers and two tuples. A dependency-free `utils/config_bounds.py` now holds them and the runtimes re-export it, so the schema bound and each runtime message stay one object. **They stated the saving at its honest size**: about 1.6% of `import soup_cli.cli`, with a wall-clock A/B inside the noise. They named the 22-25% drop in `import soup_cli.config.schema` on its own for what it is, the #780 trap in miniature rather than a win. **They also corrected my suggestion on #780**: an `is` check per re-export cannot see a copied `MAX_NOISE_FLOOR_RUNS = 10`, because CPython caches small ints. So the re-exports are pinned on the source text instead, counting every name bound in store context, the schema's included. Verified: config schemas, values and runtime messages are byte-identical to `main`, and CLI import goes from 526 to 521 modules, with exactly those six leaving. The 78 related test files pass, and all 12 mutations are killed, five of them only after the review round widened the guards ([#780](https://github.com/MakazhanAlpamys/Soup/issues/780), [#1368](https://github.com/MakazhanAlpamys/Soup/pull/1368))
- **KJO92** ([@Konuktor](https://github.com/Konuktor))
- Stopped every in-process inference path from prompting a tuned model with a sequence it never trained on. `soup chat`, `soup serve`, `soup infer` / `soup bench`, `soup diff`, the `--mole` decoder, `soup data generate` and the `live_eval` generators behind `soup ship` / `diagnose` / `advise` all rendered the chat template to text and then let the tokenizer add its own special tokens, so a Llama-3 / Gemma / Mistral template produced a **doubled BOS** while Soup's default SFT path trains with one, and Soup's own `data.chat_template` presets (which render none) were prompted with one. **The design choice worth copying is the rule they chose over the obvious one**: not "drop a duplicate BOS" but "text a template rendered gets no tokenizer special tokens" — a startswith-BOS check would have fixed the vendor case and silently missed the presets, which need 1 -> 0, not 2 -> 1. `fallback_on_error` is keyword-only with **no default**, so none of the seven call sites could quietly inherit a different error contract, and four hand-rolled copies of the legacy fallback prompt were deleted rather than fixed a fifth time. 62 offline tests over a real fast tokenizer with a genuine BOS/EOS post-processor (30 of them red on `main`), a train/infer prefix property, and an AST ratchet with controls proving it can fail. They reported running 24 mutations; I re-ran three myself and all three were killed — the encoder reverted to pre-fix behaviour failed 23 tests. A first contribution ([#781](https://github.com/MakazhanAlpamys/Soup/issues/781), [#782](https://github.com/MakazhanAlpamys/Soup/pull/782))
@@ -573,6 +585,7 @@ Listed by first contribution. PR numbers link the work.
- Pinned `trainer/pretrain.py`'s LoRA target resolver, whose deletion had left the whole suite green, by driving pretrain and the remaining MoE text trainers through their real setup ([#1157](https://github.com/MakazhanAlpamys/Soup/issues/1157), [#1160](https://github.com/MakazhanAlpamys/Soup/pull/1160))
- The `gpu` test marker asked whether torch was *built* with CUDA, so under `CUDA_VISIBLE_DEVICES=""` on a machine with a card every gpu-marked test ran and failed in CPU-only bitsandbytes instead of skipping. The fix is subtler than the issue first proposed: a test that initialises CUDA flips `device_count()` from 0 to 1 mid-session, so the count is now pinned once at conftest import, before any test can touch CUDA, and used only by the marker, leaving `cuda_available()` to the test bodies that pick a device with it. **Both directions are checkable on a CI runner with no GPU**: child processes fake `torch.cuda` before the conftest is imported, and the hook tests turn a skip into a failure, so reverting the fix line fails two tests on every cell instead of passing as two skips. Nine of nine mutations killed ([#1128](https://github.com/MakazhanAlpamys/Soup/issues/1128), [#1134](https://github.com/MakazhanAlpamys/Soup/pull/1134))
- Gave the seventeen config fields #808 found accepted and read by nothing a voice at load: a non-default value now prints `<field> is accepted but read by nothing; v0.77 will refuse it`. **The comparison uses the validated value, so `'false'`, `'off'` and `''` stay silent**, and the loader cannot fall back to the weaker raw comparison. The deadline sits in one constant, and a `TestTheDeadline` test fails if the v0.77 refusal is forgotten or done early: #627's warn-then-refuse mechanism, applied to fields instead of keys ([#808](https://github.com/MakazhanAlpamys/Soup/issues/808), [#1106](https://github.com/MakazhanAlpamys/Soup/pull/1106))
+ - Brought the nine training-intelligence and convergence knobs that #808 had left in `soup train`'s undated "not enforced" note (`forgetting_eval_steps` / `_benchmark` / `_stop`, `checkpoint_eval_steps` / `_metric` / `_tasks` / `_keep_top`, `convergence_window`, `convergence_rel_tol`) under the dated warn-then-refuse rule of the first seventeen. Each is now reported once, with the v0.77 date, and the note keeps only what the loader does not cover. **The second review round closed every item raised, including two non-blocking tests that would have broken silently at the v0.77 switch.** 339 passed on the merged tree, and 203 shipped configs load under the error severity. All 10 mutations fail a test, including the two that survived the first round ([#808](https://github.com/MakazhanAlpamys/Soup/issues/808), [#1379](https://github.com/MakazhanAlpamys/Soup/pull/1379))
- **Nehal kanak kuniyil thottathil** ([@sloemo01](https://github.com/sloemo01))
- First contribution: the single-projection step of the Fast-LoRA tracker — LoRA forward and backward for one adapted projection as a `torch.autograd.Function`, with the scaling folded into the LoRA term, everything backward needs carried by `save_for_backward` (the #331 rule) including the NF4 quant state, and NF4 weights dequantised transiently so a streamed pool slot is never aliased past the call. **The review was about proving the fast path is actually taken, and every round closed exactly what was asked**: a vacuous `lora_B`, the `fan_in_fan_out` guard (removing it makes a square Conv1D silently diverge), `lora_bias` and double backward in round one; an unconditional delegate that left the suite green in round two, now killed by two `grad_fn` arms; and three narrowings of that pin (3-D input, bias-less, both) that all survived at 24 passed and now each fail by name. On CUDA, fp32, bf16 and NF4 agree exactly with peft ([#839](https://github.com/MakazhanAlpamys/Soup/issues/839), [#1087](https://github.com/MakazhanAlpamys/Soup/pull/1087))
@@ -595,9 +608,11 @@ Listed by first contribution. PR numbers link the work.
- **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))
+ - `soup doctor --config` reported a setting by how the file spelled it, not by its value. `loss_watchdog: false` on `backend: mlx` printed as "rejected" although the schema refuses the `true` value at load, so every rejected row it could print was a false positive. A config written out in full by `soup autopilot` also reported 15 rows where the same minimal config reported none. Each table entry now carries an `active` predicate: switched on by default, and `seed: 0` still counts. The issue's config now gets the all-clear. **Putting the predicate on the entry, with a default that covers every row, gave #1155's three unsloth rows the same fix without touching that PR.** Merged with #1155's head, the test file picks them up and passes. 5 of the 6 new tests fail on `main` (the sixth is a control). 10 of 11 mutations fail a test in the new file, and the 11th fails 2 of #1069's ([#1330](https://github.com/MakazhanAlpamys/Soup/issues/1330), [#1336](https://github.com/MakazhanAlpamys/Soup/pull/1336))
- **Mohammad Hijjawi** ([@MohammadHijjawi97](https://github.com/MohammadHijjawi97))
- First contribution: since #1249, every `grpo_variant` other than `standard` applies its KL penalty inside Soup's own loss, which replaces the trl function that records the `kl` metric, so variant runs logged no `kl` anywhere. The variant path now records trl's exact quantity from the same per-token KL the loss adds, over the completion and tool mask or rft's accepted tokens, under trl's key and gather, and nothing at `grpo_beta: 0` or for `standard`. **The rft case counts accepted tokens even without a completion mask, a detail the issue's wording implies and a test pins.** On a real trainer, five variants log exactly trl's stock `kl` on the same batch and rft logs its accepted-token mean. The three tests and the docs paragraph asked for in review went in unchanged two hours later; all 18 mutations fail a test ([#1263](https://github.com/MakazhanAlpamys/Soup/issues/1263), [#1293](https://github.com/MakazhanAlpamys/Soup/pull/1293))
+ - `soup data canary insert` appended its canaries, and the loader holds out the file's unshuffled tail as validation, so from 135 rows on all 16 default canaries were held out, no model trained on them, and `soup data canary check` could only report OK. They spread the canaries one per equal stretch at a seeded row, which bounds the held-out share for every seed rather than on average, kept the dataset's own rows in order, recorded each canary's row in the manifest (older manifests still load), and had `insert` print how many canaries the default split trains on, counted with the loader's own `_split_val`. **The printed count has a boundary test**: a canary on the last trained row counts, one on the first held-out row does not. 121 new tests, all failing on `main`; 12 of 12 mutations fail a test ([#1331](https://github.com/MakazhanAlpamys/Soup/issues/1331), [#1386](https://github.com/MakazhanAlpamys/Soup/pull/1386))
- **Krishna** ([@Ru0k3](https://github.com/Ru0k3))
- First contribution: `soup registry diff`, `soup eval compare` and `soup eval leaderboard` kept the oldest eval score per benchmark. They overwrote rows in the tracker's newest-first order, so a re-measurement was ignored: on the issue's example both commands reported +0.20 and no regression, where comparing the newest scores gives a -0.05 regression. **They found that the leaderboard had the same bug, which the issue did not name**, and routed all three commands and the eval gate's `registry://` baseline through one helper that picks the newest `created_at` and then the latest insert. Their tests list rows newest first, as the tracker returns them, so restoring the old code at any call site fails a test. The second round added a two-model leaderboard test for the one mutation that had survived, and skips empty benchmark names as #1260 did. 13 of 15 mutations fail a test, and the other two would need a NULL value that the schema forbids ([#1270](https://github.com/MakazhanAlpamys/Soup/issues/1270), [#1291](https://github.com/MakazhanAlpamys/Soup/pull/1291))
@@ -611,6 +626,7 @@ Listed by first contribution. PR numbers link the work.
- **Y.B.** ([@drakeo338](https://github.com/drakeo338))
- First contribution: `soup shrink` scored the layers of a Qwen2, Qwen3, Qwen2-MoE or SmolLM3 model, then died at save, because the prune left `layer_types` (and SmolLM3's `no_rope_layers`) at the old length. The lists are now sliced by the same kept indices as the layers. When review showed that MoE layouts naming layers by NUMBER (`mlp_only_layers`, `decoder_sparse_step`, `moe_layers`, `interleave_moe_layer_step`) would now reload with their expert and dense MLPs on the wrong layers, they took the guard on in the same PR. It refuses a non-default layout from `config.json` before the weights load, so `--plan-only` agrees with the real run, and it keeps a default layout valid, so a shrunk Llama4-text model shrinks again. On `main` 42 of the new file's 51 tests fail; 9 of 10 mutations in the last round fail a test ([#1241](https://github.com/MakazhanAlpamys/Soup/issues/1241), [#1256](https://github.com/MakazhanAlpamys/Soup/pull/1256))
- Second merge. The #361 NF4 throughput harness stamped its rows with `git rev-parse HEAD` of its own checkout. A row from a dirty tree, or from a `soup_cli` imported from somewhere else, therefore named a commit whose code did not run. They moved it onto the #1085 function: the repository is found from `soup_cli.__file__`, a dirty tree is marked `-dirty`, and a package outside any git checkout records `unknown`. Their test answers `--show-toplevel` with a directory that belongs neither to the package nor to the harness, and it pins the `cwd` of every git call, so it fails 2 of 2 against the old function. 5 of 10 mutations fail a test, including all five that read the commit from the wrong tree or drop `-dirty` ([#1327](https://github.com/MakazhanAlpamys/Soup/issues/1327), [#1382](https://github.com/MakazhanAlpamys/Soup/pull/1382))
+ - Second merge. Two #808 silence checks asserted that `"read by nothing"` was absent from raw captured output, and Rich wraps the loader's warning to the console width, so at 50 columns the phrase split across lines and the four `warn` cases passed with the warning printed. They routed both checks through the file's own `_plain(...)`, which collapses whitespace as well as stripping ANSI. When review showed that their first guard rewrote `staged_fields.py` on disk during the run and did not pin either line on its own, they replaced it in one push with the static scan the review proposed, which reads the test file only. Verified on the tree merged with current `main`: under the regression the 8 cases fail at 50, 80 and 120 columns and under forced colour (4 passed at 50 before); 48 passed unmutated; 4 of 4 mutations of the fix fail the scan, including each one-line revert ([#1352](https://github.com/MakazhanAlpamys/Soup/issues/1352), [#1377](https://github.com/MakazhanAlpamys/Soup/pull/1377))
- **sup3dev** ([@sup3dev](https://github.com/sup3dev))
- First contribution: `soup` reported any error whose message contained the digits `401` or `403` as "Authentication failed." / "Access denied." and hid the real message. That covered a too-long SFT row 401, a tensor size of 4013, a `checkpoint-4010` path and a hash in a Hub URL. The status is now read from the exception object along its `__cause__`/`__context__` chain, with a text fallback limited to explicit HTTP phrasing, so genuine requests, urllib and huggingface_hub 401/403 errors get the specific hint instead of "HTTP request failed.". **The detail that decided a three-way race for the issue**: `GatedRepoError` and `RepositoryNotFoundError` are declined anywhere in the chain. A missing local adapter directory that peft first looks up on the Hub, which answers an unauthenticated user with 401, therefore keeps its real message; both competing fixes reported "Authentication failed." there. 16 of the 31 new tests fail on `main`, and 21 of 22 mutations fail a test ([#1267](https://github.com/MakazhanAlpamys/Soup/issues/1267), [#1268](https://github.com/MakazhanAlpamys/Soup/pull/1268))
@@ -623,10 +639,21 @@ Listed by first contribution. PR numbers link the work.
- **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))
+ - Second merge. `soup sweep` kept its own trainer chain, last extended in v0.40.0, so ten task values and every `backend: mlx` config trained plain next-token SFT under a sweep while the run registry recorded the configured task. Both commands now go through one `build_trainer`, which refuses an unknown task instead of falling back to SFT, and the parity test reads its task list off the schema's `task` Literal, so a new task cannot skip it. **The debugging worth copying**: three unrelated-looking failures turned out to be a recorder leaking into `TTSTrainerWrapper`'s base class at first import, and they fixed the fixture rather than the test order. The review round came back complete: tests that pin the kwargs each command forwards, and a failed arm's error printed without Rich eating the `[mlx]` in its install hint. On the real CLI, `soup sweep` now builds the same trainer as `soup train` in 24 of 24 rows (13 before), a real distillation sweep loads its teacher, 3,826 tests pass across 78 files, and 10 of 10 mutations fail a test ([#1213](https://github.com/MakazhanAlpamys/Soup/issues/1213), [#1397](https://github.com/MakazhanAlpamys/Soup/pull/1397))
- **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))
+- **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))
+
+- **Maxi** ([@maximilianfeix](https://github.com/maximilianfeix))
+ - AutoDistill's vocabulary guards and the weight shards' `retain_bytes=False` were pinned by no test. Disabling both guards and turning full-RAM hashing back on left all 41 autodistill tests passing. Tests now cover the capture guard for both bounds, the worker's own guard before the teacher loads (on a dataset that still matches its fingerprint), and a shard hash that retains no bytes. **They noticed the `-1` cases still passed with the capture guard off, because `CaptureToken` raises the same phrase, and said so in the PR instead of shipping them as coverage. Anchoring the matches on the full message closed the gap on the next push.** Every mutation fails the new tests: whole guard 4, lower bound 2, context and prompt bypasses 2 each, worker guard 1, teacher loaded first 4, each retention mutation 1 ([#1341](https://github.com/MakazhanAlpamys/Soup/issues/1341), [#1400](https://github.com/MakazhanAlpamys/Soup/pull/1400))
+ - First contribution: three pieces of stale text from #1353. The streaming docs said DPO's streamed reference "costs no extra weights", but since #1061 an untied checkpoint under `dpo` or `kto` keeps a private copy of the output head for its backward every step. That is about 1.05 GB for Llama-3.1-8B, and the pre-flight already charged it. The docs now state that cost in four places and say the untied bit-exact check covers `dpo` only. The `citation_faithful` refusal said its runtime "ships in v0.62.1" when it had been live since v0.71.10, and the `unlearn`-on-MLX refusal said "deferred to v0.61.1". Eleven comments and docstrings in `schema.py` and `ra_dit.py` also still pointed at past releases. All of them now describe current behaviour, each checked against the code. **They noticed that the stale refusal was an f-string concatenation, which a scan of plain string constants would miss. They extended the #823 guard to every `raise` message in `schema.py`, with f-strings read, and pinned that reading with its own test.** On `main` the guard fails on exactly that refusal, and both mutations fail it (1 and 2 failures) ([#1353](https://github.com/MakazhanAlpamys/Soup/issues/1353), [#1402](https://github.com/MakazhanAlpamys/Soup/pull/1402))
+ - First contribution: three benchmark harnesses each carried a copy of the helper that records which tree a row measured. Every copy credited a `soup-cli` wheel installed into a gitignored `.venv/` inside the checkout with the checkout's clean commit. One shared `source_sha()` now refuses a `soup_cli/__init__.py` the checkout does not track. `head_prefetch_ab` keeps its narrower `src/` dirty scope through a parameter, so the other harnesses do not inherit it. **They tested it with real `git` against a throwaway checkout rather than a faked `subprocess.run`, which is the only way a swallowed `ls-files` failure gets caught.** The tests skip cleanly without git, ignore a global `commit.gpgsign`, and catch all 8 mutations tried (82 passed) ([#1387](https://github.com/MakazhanAlpamys/Soup/issues/1387), [#1403](https://github.com/MakazhanAlpamys/Soup/pull/1403))
+ - `training.moe_aux_loss_coeff` is applied only by SFT's text setup, yet a non-default value loaded on `task: sft` with `modality: vision` or `audio` and was never read. They refuse it at config load, beside #798's check for the same field, naming the modality and pointing to `modality: text` as #1179 does for `moe_lora`. The default `0.01` still loads everywhere, and `audio_out`, which SFT sends to the text setup, is pinned as allowed. 20 related test files passed with main merged (2675 passed, 0 failed), and 8 of 9 mutations of the fix fail a test ([#1394](https://github.com/MakazhanAlpamys/Soup/issues/1394), [#1404](https://github.com/MakazhanAlpamys/Soup/pull/1404))
+ - `task: ppo` could not complete a single step on trl 0.29. The dataset handed to trl's `PPOTrainer` still carried the `prompt_text` strings, and trl's padding collator raised on them at the first batch, after three models had loaded. A train set smaller than one rollout batch spun forever at 100% CPU instead. trl now gets only `input_ids` / `attention_mask` at all three hand-offs, and a train set with fewer than `batch_size` x `gradient_accumulation_steps` x the number of processes rows is refused before any model loads, naming the numbers. **They wrote the suite's first test that runs a real trl PPO update, on CPU with nothing mocked, and it fails on `main` with the issue's exact error. When review asked for the refusal to move ahead of the model loads, they applied it and also pinned the two trl hand-offs no test covered.** 191 tests in the six PPO files pass with `main` merged, and 11 of 11 mutations of the fix fail a test ([#1391](https://github.com/MakazhanAlpamys/Soup/issues/1391), [#1410](https://github.com/MakazhanAlpamys/Soup/pull/1410))
+
---
Want to join this list? See [CONTRIBUTING.md](CONTRIBUTING.md) — good first issues are