Fine-tune LLMs from one YAML. Layer streaming trains an 8B model on a 4 GB laptop GPU.
Python cliconsumer-gpudpofine-tuningggufhuggingfacellmllmopslocal-ailocal-llmloralow-vrammachine-learningollamapeftpythonpytorchqlorasfttransformers
docs(contributors): #1508, #1560, #1474, #1532, #1546, #1556, #1520, #1582 [skip ci]
Alpamys2e11008048da
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.mdindex f72d6317..fb010440 100644--- a/CONTRIBUTORS.md+++ b/CONTRIBUTORS.md@@ -206,6 +206,7 @@ Listed by first contribution. PR numbers link the work.- `soup expect` passed every preference dataset at any threshold: `expect_chosen_preferred_over_rejected_by_judge` scored every row 1.0 when no judge was given, and the command never gave one. They made a missing judge a violation per row, added `--judge` and `args.judge` (validated when the suite loads, CLI wins), built the judge from the existing URL rules with both-order pairwise judging, made `advisory: true` an explicit opt-in that the output names, and stopped at the first unreachable judge with exit 1 instead of scoring it as a quality failure. Three rounds: the second closed all six review items, the third was a clean rebase onto a docs change that landed in between; 438 tests passed and 8 of 9 mutations on the final head were killed, including both that survived the first round ([#1433](https://github.com/MakazhanAlpamys/Soup/issues/1433), [#1505](https://github.com/MakazhanAlpamys/Soup/pull/1505))- `soup train --cloud lambda` held one idle SSH session for up to 25 hours with no keepalive, and read `ssh`'s exit 255 (connection lost) as a failed run, so a Wi-Fi drop or a NAT timeout terminated the instance and lost the job. They replaced it with short keepalive polls every 30 s that report cloud-init's own state, a 15-minute outage window with capped backoff that a good poll resets, and a `scp` retry window that starts at the first failure. **The value is in what review made testable**: the first version read a missing exit file as "still running" (a 25-hour paid keep-alive), and the fix for that lived in a remote shell string no test executed. The final tests run that exact command under `sh` with a fake `cloud-init`, and pin the clock reset with two ten-minute outages around one good poll. 8 of 9 mutations are caught; the survivor changes only the poll interval. The new tests fail 17 of 21 on `main` ([#1439](https://github.com/MakazhanAlpamys/Soup/issues/1439), [#1506](https://github.com/MakazhanAlpamys/Soup/pull/1506))- `training.warmup_ratio` was turned into absolute warmup steps from the raw row count in all 15 trainer wrappers, so GRPO's warmup shrank by `num_generations` (to 0 on small sets) and packed SFT and pretrain warmed up for longer than the whole run, never reaching their peak learning rate. They routed every wrapper through one helper that hands the ratio to transformers, which applies it to the real optimizer steps. **What made it mergeable was what they removed**: a second commit had patched `TrainingArguments.get_warmup_steps` process-wide to hide a rounding difference, and on review they deleted the patch. They then adopted tests that run all 15 wrappers instead of skipping 12, fixed the three seed tests the honest rounding exposed, and wrote the one-step change into the changelog. On the merged tree the issue's own reproduction reaches the configured peak with packing (3 of 6 warmup steps, where `main` used 20 of 6), GRPO resolves 20/40, 20/40 and 2/16 (`main`: 5, 2, 0), and 329 tests pass; every wiring mutation tried across two rounds is caught ([#1431](https://github.com/MakazhanAlpamys/Soup/issues/1431), [#1507](https://github.com/MakazhanAlpamys/Soup/pull/1507))+ - `soup diagnose` measured catastrophic forgetting on the first 12 rows of `--dataset`, the adapter's own training data, so an adapter that had lost everything else still scored `OK 1.000`. They added `--holdout` and a built-in general-knowledge prompt set, kept `--dataset` for the probes that need training rows, and validate the holdout path before any model loads. **The rounds were about the cases that measured nothing**: an unusable holdout and a probe that raised became `NOT_RUN` instead of a neutral OK, and when review showed that #1489's `--dataset` fallback loop overwrote a measured forgetting score, they fixed that too. 2809 tests pass on the merged tree, the issue's own mutation fails 5 tests, every other mutation across three rounds is caught, and the new tests fail 12 of 52 on `main` ([#1436](https://github.com/MakazhanAlpamys/Soup/issues/1436), [#1508](https://github.com/MakazhanAlpamys/Soup/pull/1508))- **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))@@ -342,6 +343,7 @@ Listed by first contribution. PR numbers link the work.- 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))+ - Finished the LLaMA-Factory and Unsloth halves of `soup migrate`'s preference mapping. `pref_loss: ipo` had become plain DPO, `hinge` / `kto_pair` loaded as DPO, and four TRL trainer classes migrated as SFT, all without a warning. Each value now maps to its Soup task or stops by name, `OnlineDPOTrainer` gets a placeholder judge that loads, and `SFTConfig` hyperparameters are read. **The fourth round is the one worth copying.** Adding `SFTConfig` exposed that the notebook walk was breadth-first, so an inline SFT warm-up beat a later GRPO config, and four public Unsloth GRPO notebooks turned into SFT recipes with a 40x learning rate. They switched to a source-order walk. Unasked, they also made the config resolver handle the positional `CPOTrainer(model, args)` form and refuse a rebound config name instead of reading a stale one. 278 tests pass on the merged tree, the new tests fail 42 of 67 on `main`, and all 9 mutations run on the last two rounds' code are caught ([#1214](https://github.com/MakazhanAlpamys/Soup/issues/1214), [#1560](https://github.com/MakazhanAlpamys/Soup/pull/1560))- **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)).@@ -408,6 +410,7 @@ Listed by first contribution. PR numbers link the work.- `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))+ - `preference_loss_weights` could not blend on trl 0.29 (every blend stopped at step 0 after #1513). They captured the per-sequence log-probs trl's CPO/ORPO trainers already compute in `concatenated_forward` and restored the response length, so the sum-based kernels round-trip to trl's averages. They also moved each term's hyperparameters from the primary trainer to the config. A `simpo` + `orpo` blend now trains, independently of YAML key order, and the setup line says the terms are margin-only. Verified on a real CPOTrainer/ORPOTrainer; 220 tests across six related files; 7 of 9 mutations killed ([#1425](https://github.com/MakazhanAlpamys/Soup/issues/1425), [#1556](https://github.com/MakazhanAlpamys/Soup/pull/1556))- **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))@@ -452,6 +455,7 @@ Listed by first contribution. PR numbers link the work.- `soup data clean --repair-json` and `--drop-invalid-json` read only a flat `arguments` key on a row's top-level `tool_calls`, so the calls the tool-calling loader actually reads were never touched: calls nested in an assistant turn (what `soup agent synth` writes) were not repaired or checked, and a valid `{"function": {"arguments": ...}}` call read as `""` and got its row dropped. They wrote the issue with four shapes and a repro, then routed the top-level list and every assistant turn through one helper in both the `tool-calling` and `chatml` branches, following exactly what the loader accepts (dict arguments and a missing `arguments` left alone, non-assistant turns untouched). **When review found that the fix turned `"tool_calls": null`, which a schema-unified export writes on every no-call row, into a dropped row under the default flags, they took the guard and the test in one push** and filed the neighbouring empty-turn case as its own issue. The new file gives 45 passed on the branch and 24 failed on `main`, 8 mutations of the fix and 3 of the null guard all fail a test, and a four-row CLI run matches ([#1338](https://github.com/MakazhanAlpamys/Soup/issues/1338), [#1453](https://github.com/MakazhanAlpamys/Soup/pull/1453))- `soup data clean` silently deleted valid tool-calling training rows: with no flags, the `--min-tokens` check in the `chatml` branch of `clean_row` dropped a trajectory whose call-only assistant turn had `"content": ""` (the shape Soup's own tool-calling format writes) while the same turn with `null` was kept and the loader accepted both. They found it while working on #1338, reported it with a runnable snippet and the CLI output, and fixed it by exempting only a turn with a non-empty `tool_calls` list, leaving `[]`, `null`, a missing key and non-lists on the old rule. 18 tests (6 fail on `main`) cover `""`, whitespace and `null` in both branches; their mutation table (6 / 10 / 2 / 3 / 18 / 1) reproduced exactly and five further mutations were all caught ([#1477](https://github.com/MakazhanAlpamys/Soup/issues/1477), [#1493](https://github.com/MakazhanAlpamys/Soup/pull/1493))- `soup ab` estimated the variance from the rows it tested, so its two-sided mSPRT needed a 30-40 row burn-in, was calibrated only to 1000 rows and `--alpha 0.01`, and still sat at 0.011 there. They replaced it with the normal-inverse-gamma mixture Bayes factor, which depends on the rows only through the t statistic, so the false-positive bound holds at any number of looks: worst simulated 0.033 at `--alpha 0.05` and 0.0066 at 0.01, from 7 rows per arm. **The part worth copying is that the cost is published next to the gain**: `accept_h0` is slower when there is no difference (281 pairs against 43 at 0.5 sd), and that table sits in the docs, the record and the changelog. Across four review rounds every edge review found became a refusal or a guard with a test a mutation kills: a near-constant held-out column, an overflowing prior at a small row count, a variance that underflows to 0, and a saturated start that had ended 99% of simulated runs in a wrong `accept_h0`, now held at `continue` while the tested rows spread more than 3 times the held-out ones (0 such runs in 2000, 15 of 6000 Gaussian first verdicts changed, no rejection). 208 passed across the `soup ab` suite; 16 of 17 mutations of the final changes killed ([#1265](https://github.com/MakazhanAlpamys/Soup/issues/1265), [#1419](https://github.com/MakazhanAlpamys/Soup/pull/1419))+ - `training.freeze_layers` and `training.freeze_ratio` loaded on all 23 tasks but are read in exactly one place, `SFTTrainerWrapper._setup_transformers`. On the other 21 tasks a `freeze_layers: 2` run trained every layer and said nothing. They refused the fields at load on those tasks and kept `tts` on the applying side, because its wrapper inherits the SFT setup. They tied the refused list to the trainers with an AST scan of `trainer/dispatch.py` instead of a hand-kept table, pinned the refusal on every backend, and filed the remaining within-`sft` gap as #1581. 106 tests; every reachable mutation killed ([#1497](https://github.com/MakazhanAlpamys/Soup/issues/1497), [#1532](https://github.com/MakazhanAlpamys/Soup/pull/1532))- **GitFromRatatouille** ([@swalla02](https://github.com/swalla02))- First contribution, and it is the third instance of this repo's most persistent bug class found by someone else ([#363](https://github.com/MakazhanAlpamys/Soup/issues/363), [#423](https://github.com/MakazhanAlpamys/Soup/issues/423), [#659](https://github.com/MakazhanAlpamys/Soup/issues/659)): `soup migrate` refused **any** input named `*.jsonl`, a valid LLaMA-Factory YAML config included, because the guard branched on the filename while the content sniff written to gate it had **zero call sites in `src/`**. The diagnosis is worth more than the one-line fix — the test was named after the command and its body called the helper, so it passed on a codebase where `migrate` never imported it. **Then review found a regression their own fix introduced, and the way they closed it is the part to copy**: the sniff read `utf-8`, so a UTF-8 BOM survived as U+FEFF, which `str.strip()` does not remove, and a real BOM'd JSONL silently lost the friendly error it used to get — on a project with three Windows CI cells where PowerShell's `Out-File` writes that BOM by default. Their BOM test **guards its own fixture** (asserting the file really contains a BOM before asserting behaviour) and their bounded-read test measures the property with `tracemalloc` rather than pinning the spelling of the loop. Six mutations, six killed; zero assertions removed. They also **declined to widen the fix** to files whose name gives no hint, correctly citing the `.ipynb` case the original comment warns about, and left that as an open question rather than guessing ([#672](https://github.com/MakazhanAlpamys/Soup/issues/672), [#675](https://github.com/MakazhanAlpamys/Soup/pull/675))@@ -635,6 +639,7 @@ Listed by first contribution. PR numbers link the work.- 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))+ - The Web UI signed the browser out on every reload or new tab, because the token lives only in page memory. On a loopback bind, `/?token=` now swaps it for an `HttpOnly; SameSite=Strict` session cookie holding a random id that the server keeps in memory only, then redirects to the same URL without the token. Every port of `127.0.0.1` is one site, so a cookie-authenticated state change must also name this exact server in `Origin`; 64 of 64 foreign-Origin requests to the 8 state-changing routes are refused. The constant-time comparisons and the redirect target are pinned by tests, and 19 of 21 mutations fail a test ([#1191](https://github.com/MakazhanAlpamys/Soup/issues/1191), [#1474](https://github.com/MakazhanAlpamys/Soup/pull/1474))- **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))@@ -670,6 +675,7 @@ Listed by first contribution. PR numbers link the work.- **Suyog Verma** ([@commit-msuyog](https://github.com/commit-msuyog))- First contribution: A local `.parquet` dataset with list columns loaded 0 training rows for eight formats, because pandas handed every list cell to the converters as a numpy array, and `soup data validate` / `inspect` crashed on the same file. The loader now reads parquet with pyarrow, so rows match the same data in JSONL, and it drops pandas' hidden `__index_level_N__` index column while keeping a named index. The new tests fail 15 of 24 on `main`, and all 5 mutations of the fix fail a test ([#1218](https://github.com/MakazhanAlpamys/Soup/issues/1218), [#1292](https://github.com/MakazhanAlpamys/Soup/pull/1292))+ - `eval.auto_eval: true` loaded and never ran during `soup train`: the evaluation sat in the callback's `on_train_end`, which no trainer configured and which fires before the adapter is saved. They moved it to `soup train` itself, after the save, so it evaluates the adapter that run produced, on the main process only, with `trust_remote_code` off, and a failure does not fail the run. They also routed the 16 trainers through one callback builder, guarded by an AST scan. Verified with a real CPU `soup train`, 348 tests across 10 related files, and 6 of 8 mutations killed ([#1487](https://github.com/MakazhanAlpamys/Soup/issues/1487), [#1546](https://github.com/MakazhanAlpamys/Soup/pull/1546))- **Jamal Kamaladdinoglu** ([@jamalkamaladdin](https://github.com/jamalkamaladdin))- First contribution: `soup migrate --from axolotl` turned `rl: orpo`, `ipo` and `simpo` into `task: sft` with no warning, so those preference configs migrated as SFT or failed at load on a `data.format` error that never named `rl`. They now map to Soup's `orpo`, `ipo` and `simpo` tasks with `data.format: dpo`. Any other `rl` value, such as axolotl's `ebft`, stops the migration with exit 1 and names the value and the supported list, printed through `for_terminal` so a YAML value cannot restyle or hijack the terminal. On `main` all 11 new tests fail; 12 of 12 mutations in the last round fail a test ([#1214](https://github.com/MakazhanAlpamys/Soup/issues/1214), [#1254](https://github.com/MakazhanAlpamys/Soup/pull/1254))@@ -747,6 +753,7 @@ Listed by first contribution. PR numbers link the work.- **Alberto Cucca** ([@bobbonauta](https://github.com/bobbonauta))- First contribution: resuming a QLoRA SFT run upcast the trainable LoRA adapter from bf16 to fp32, because TRL casts it to bf16 at init and peft's `load_adapter` autocasts it back on `_load_from_checkpoint`, so a resumed run could not reproduce the uninterrupted one. `keep_trainable_dtype_on_resume` records each trainable parameter's dtype and restores it right after the reload, before the optimizer exists. Frozen and quantized weights are left to the loader, and the run's own dtype is restored, so the #429 fp16 path is untouched. **They measured the result on a real 8B NF4 run (a bit-identical adapter, loss and grad norm against the uninterrupted run). When review showed the SFT call was pinned by no CI test, they added CPU tests through `SFTTrainerWrapper.train`, strengthened two unit tests, and filed #1573 for the trainers this PR left out.** 9 of 10 mutations fail a test. Deleting the call fails 1 test and inverting it fails 2 ([#1503](https://github.com/MakazhanAlpamys/Soup/issues/1503), [#1504](https://github.com/MakazhanAlpamys/Soup/pull/1504))- First contribution: layer streaming refused every model cached by huggingface_hub 1.32 or later, because Xet blobs moved into a cache-wide shared store that the snapshot materializer treated as an escape. Links into that store are now followed only when it carries huggingface_hub's marker and neither the store nor the marker is a link or junction. Links leaving both stores are still refused. The recorded blob id is the per-repo etag, so copies made before the change are reused. **They traced it from a real Qwen3-8B NF4 run to the exact huggingface_hub change, and kept old copies reusable by reading the etag from the first link rather than the final file. When review showed that a symlinked store directory was trusted where huggingface_hub would not trust it, they applied the lstat check and pinned both refusals.** 12 of 14 mutations of the fix fail a test, and a cache built by huggingface_hub 1.33.0 itself materializes, shards and is reused ([#1509](https://github.com/MakazhanAlpamys/Soup/issues/1509), [#1510](https://github.com/MakazhanAlpamys/Soup/pull/1510))+ - First contribution: the docs claimed streamed NF4 training is bit-exact against a resident run, which holds only against a resident control without PEFT's `prepare_model_for_kbit_training`; the default resident path upcasts embeddings, norms and an untied `lm_head` to float32 and streaming does not. They filed it with a public dtype reproduction, wrote a scope note that says what the measurement does not show (backward, resume, trajectory, LoRA A init), and, after review, labelled the one non-reproducible Qwen3-8B number with its card and versions and fixed the fp16-before-Ampere store-dtype detail. Docs only; every claim re-checked against the code ([#1519](https://github.com/MakazhanAlpamys/Soup/issues/1519), [#1520](https://github.com/MakazhanAlpamys/Soup/pull/1520))- **vaputa** ([@vaputa](https://github.com/vaputa))- First contribution: `soup data from-traces --logs session.jsonl --format soup-serve` ended in a green `Wrote 0 preference pair(s)`, exit 0 and an empty output file, because the soup-serve reader walks a directory and quietly returns nothing for a single file. They claimed the issue, took the smaller of the two proposed fixes (refuse the file at the CLI, naming `--logs`, the directory `soup serve --trace-log` writes and the `--format langchain`/`openai` alternative), added a `Read 0 trace(s) from --logs '<path>' ...` line with a per-format reason whenever a source reads nothing, and left the zero-pair exit code alone as the issue asked. **The part worth copying is the scoping**: the parser keeps the behaviour its own tests pin, two controls prove the refusal is not wider than the bug, and on review they fixed a misleading reason for a directory under a file format ("no line parsed" when nothing had been opened) in the same push. 8 tests (6 fail on `main`, the 2 controls pass), 6 of 9 mutations killed ([#1530](https://github.com/MakazhanAlpamys/Soup/issues/1530), [#1557](https://github.com/MakazhanAlpamys/Soup/pull/1557))@@ -754,6 +761,9 @@ Listed by first contribution. PR numbers link the work.- **Akshat Shah** ([@akshatshahh](https://github.com/akshatshahh))- First contribution: `http://[::1]:<port>` was accepted by the judge API-base and vLLM checks but refused by eval-gate suites, `soup ship --judge-model` and the online-DPO trainer, because three gates kept their own `("localhost", "127.0.0.1")` literal and two more kept a third copy. They made all five import `net_guard.LOOPBACK_HOSTS` and added an AST ratchet that fails on any rebuilt loopback literal, including single-quoted and multi-line spellings. Their 27 tests: 11 fail on main, 27 pass here; 7 mutations, all killed ([#1548](https://github.com/MakazhanAlpamys/Soup/issues/1548), [#1554](https://github.com/MakazhanAlpamys/Soup/pull/1554))+- **Pranav Deshpande** ([@PranavD2905](https://github.com/PranavD2905))+ - First contribution: the refusal for a non-public IP literal in an outbound endpoint named no remedy, and `http://0.0.0.0` in `soup data generate --api-base` and the Web UI chat proxy got only the generic HTTPS text while three other validators already said "0.0.0.0 is ambiguous; use 127.0.0.1 or localhost". They claimed the issue first, appended "address the server by its hostname" to the one shared message, moved the 0.0.0.0 wording into a single `net_guard` constant that all five checks now use, and kept every existing test case, changing only the four message assertions. **Their description said exactly what does not change, and it held**: 185 host spellings through 21 checks gave 0 differences in what is accepted or refused against main. 601 tests pass (40 fail on main); 14 mutations, all killed ([#1549](https://github.com/MakazhanAlpamys/Soup/issues/1549), [#1582](https://github.com/MakazhanAlpamys/Soup/pull/1582))+---Want to join this list? See [CONTRIBUTING.md](CONTRIBUTING.md) — good first issues are