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): #1583, #1537 [skip ci]
Alpamys1dd0d8bd6e8d
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.mdindex 627aa701..e15554d6 100644--- a/CONTRIBUTORS.md+++ b/CONTRIBUTORS.md@@ -345,6 +345,7 @@ Listed by first contribution. PR numbers link the work.- 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))- Removed the Web UI plugin registry that nothing rendered: `soup_cli.ui.plugins` had been importable since v0.44.0, but `create_app` never read it and a registered tab never appeared. The module, its docs section and its 11 dead tests went, exactly as the ruling listed, with `soup plugins` and `ui_env` untouched. They added a guard that keeps it gone; in review they reproduced the stale ignored `__pycache__` failure themselves before applying the suggested replacement, and they extended the route pin to every decorated Web UI path plus the static mount. 709 passed / 2 skipped across 19 files; 9 of 9 mutations caught ([#1465](https://github.com/MakazhanAlpamys/Soup/issues/1465), [#1608](https://github.com/MakazhanAlpamys/Soup/pull/1608))+ - Made `soup migrate --from unsloth` read real Unsloth notebooks: IPython magics were parsed as Python, so every official notebook was refused as one `SyntaxError`. Their per-cell transform treats a `!` / `%` line as a magic only at statement level. That keeps `%` / `!=` continuation lines as Python, and a magic that opens a suite becomes a `pass`, so the block stays valid. It keeps the bodies of `%%capture`-style cells, treats a backslash-continued install as one magic, and makes a real syntax error name its cell and line. All 82 official GRPO notebooks migrate (0 on `main`). On the final head 129 migrate tests pass, 217 pass on the merged tree, and 8 of 8 mutations are caught ([#1579](https://github.com/MakazhanAlpamys/Soup/issues/1579), [#1583](https://github.com/MakazhanAlpamys/Soup/pull/1583))- **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)).@@ -762,6 +763,7 @@ Listed by first contribution. PR numbers link the work.- **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))+ - `soup train --task unlearn` ran every step, saved the adapter, wrote the tracker row and then died with `KeyError: 'duration'` in the completion panel, because the unlearn wrapper was the one trainer returning `duration_secs` without the formatted `duration` string. They claimed the issue first, fixed both halves (the wrapper now returns `duration`, the panel formats from `duration_secs` when a wrapper omits it and says `unknown` when both are absent, keeping a measured `0m` apart from a missing measurement), and pinned the wrapper with a stubbed-loop test and the whole trainer family with a scan. **The part worth copying is the turnaround on review**: when the first review showed that reverting the panel line left all seven tests green, they added an AST pin for the call site the same day; and when `main` moved under the approved branch twice (the unlearn loop gained gradient accumulation, the same spot in `commands/train.py` gained another function), they brought it back with one push that kept both functions and changed nothing else. The 9 tests do not collect on `main`; on the final head reverting the panel line fails 1 of them and dropping the wrapper's key fails 3; 591 neighbouring tests pass on the merged tree ([#1529](https://github.com/MakazhanAlpamys/Soup/issues/1529), [#1537](https://github.com/MakazhanAlpamys/Soup/pull/1537))- **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))