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): credit reviewed data, training and core fixes (#2011)

Alpamys Makazhan8323ba9f5116
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 927b1f0b..f815e0eb 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -236,6 +236,10 @@ Listed by first contribution. PR numbers link the work.
- Added early capability diagnostics for unsupported GGUF converter architectures while preserving the shared llama.cpp pin ([#1911](https://github.com/MakazhanAlpamys/Soup/issues/1911), [#1955](https://github.com/MakazhanAlpamys/Soup/pull/1955)).
- Accepted leading UTF-8 signatures in JSON, CSV and TXT datasets while preserving embedded U+FEFF content ([#1922](https://github.com/MakazhanAlpamys/Soup/issues/1922), [#1954](https://github.com/MakazhanAlpamys/Soup/pull/1954)).
+ - Added bounded batched greedy generation to the custom-task and bundled-suite scorers, preserving prompt order and scalar-callable fallback. One completion per prompt now explicitly preserves saved beam configuration; progress/JSONL remains a separate follow-up, so this is only the batching slice of #1759 and does not close the parent issue ([#1759](https://github.com/MakazhanAlpamys/Soup/issues/1759), [#1958](https://github.com/MakazhanAlpamys/Soup/pull/1958))
+ - Added shared trace/ingest conversation rendering that normalizes LangChain human/ai/system roles and omits blank context turns while preserving the accepted plain-text versus multi-turn JSON contract. Seven isolated mutations are caught by behavioral regressions, including explicit-role and first-user selection controls ([#1809](https://github.com/MakazhanAlpamys/Soup/issues/1809), [#1848](https://github.com/MakazhanAlpamys/Soup/pull/1848))
+ - Verified the light-core dependency floors in an isolated Python 3.10 CI environment and repaired Plotext 5.2.2 figure detection without changing the Typer cap. The real hosted floor installation and CLI checks pass; four independent mutations catch version, training-stack, venv PATH and figure-detection regressions. The separate Typer migration remains with its own claim ([#1802](https://github.com/MakazhanAlpamys/Soup/issues/1802), [#1927](https://github.com/MakazhanAlpamys/Soup/pull/1927))
+
- **AmixDigital** ([@Amix29](https://github.com/Amix29))
- Added native Sesame CSM fine-tuning for transcript/audio pairs, training the backbone and depth decoder while keeping the Mimi codec frozen; documented supported inputs, refusals and the scoped Apple Silicon evidence ([#265](https://github.com/MakazhanAlpamys/Soup/issues/265), [#1769](https://github.com/MakazhanAlpamys/Soup/pull/1769)).
- 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))
@@ -931,6 +935,9 @@ Listed by first contribution. PR numbers link the work.
- Fixed #1807: `soup migrate` silently dropped the validation split, re-defaulted LLaMA-Factory LoRA rank/alpha/targets, took the wrong Unsloth base and missed its trainer arguments. They fixed all three migrators, mapped `pref_beta` to `ipo_tau` with source citations, coerced quoted integers, and made every unmapped key a warning; twelve mutations all killed ([#1807](https://github.com/MakazhanAlpamys/Soup/issues/1807), [#1901](https://github.com/MakazhanAlpamys/Soup/pull/1901))
- Fixed #1887: `soup data validate` did not count rows the loader skips, so a mostly unusable file could pass the valid-fraction gate and the exit code. They counted non-object rows and invalid-JSON lines as skipped, made an all-skipped file exit 2 (with `--format`) or 3 (without), and documented it; sixteen tests fail on main and eight mutations all killed ([#1887](https://github.com/MakazhanAlpamys/Soup/issues/1887), [#1908](https://github.com/MakazhanAlpamys/Soup/pull/1908))
- Fixed #1853: `lora.use_rslora` loaded on `backend: mlx` and `backend: unsloth` but was never read, so an rsLoRA run trained at plain-LoRA scale (8x smaller update at the default `r: 64, alpha: 16`). They added one `mlx_lora_scale` helper read by both the MLX adapter-config writer and `_apply_lora`, forwarded `use_rslora` from all 11 Unsloth trainers to `get_peft_model`, and pinned every call site with a parametrised test plus a source guard; six mutations all killed ([#1853](https://github.com/MakazhanAlpamys/Soup/issues/1853), [#1899](https://github.com/MakazhanAlpamys/Soup/pull/1899))
+ - Covered the tests-only slice of #1814 (parts 1 and 4): separated fields refused by validation and aliases consumed by validators from the silently inert config-field list. Tests verify each named category against its validator and load every shipped recipe and template to catch inert, staged, or deprecated fields ([#1814](https://github.com/MakazhanAlpamys/Soup/issues/1814), [#1948](https://github.com/MakazhanAlpamys/Soup/pull/1948))
+ - Fixed the Liger slice of #1811: Liger was reported as applied when its kernel table had no entry for the model type. The fix checks Liger's supported model-type table before enabling kernels, keeps the existing fallback when config or the table is unavailable, and documents the behavior ([#1811](https://github.com/MakazhanAlpamys/Soup/issues/1811), [#1947](https://github.com/MakazhanAlpamys/Soup/pull/1947))
+ - Fixed the Unsloth 8-bit slice of #1811: Soup forwarded only `load_in_4bit` and silently loaded 8-bit requests in 16-bit. They added config-time and loader guards, documented the refusal, and tested supported choices. The parent issue remains open for its other sites ([#1811](https://github.com/MakazhanAlpamys/Soup/issues/1811), [#1946](https://github.com/MakazhanAlpamys/Soup/pull/1946))
- **DBVamsi** ([@DBVamsi](https://github.com/DBVamsi))
- Refused `training.neftune_alpha` at config load on tasks that never apply it, and documented the supported tasks ([#1820](https://github.com/MakazhanAlpamys/Soup/issues/1820), [#1883](https://github.com/MakazhanAlpamys/Soup/pull/1883))
@@ -938,6 +945,12 @@ Listed by first contribution. PR numbers link the work.
- **dipesh-singh07** ([@dipesh-singh07](https://github.com/dipesh-singh07))
- Made oversized integer baseline scores follow the existing usage-error path across the writer, reader and eval gate; the shared finite-score helper preserves healthy controls, and removing the overflow handler fails 14 regressions ([#1865](https://github.com/MakazhanAlpamys/Soup/issues/1865), [#1903](https://github.com/MakazhanAlpamys/Soup/pull/1903)).
+- **George Tonmoy Roy** ([@george07-t](https://github.com/george07-t))
+ - First contribution. Capped repeated JSON/JSONL and data-review warnings while retaining exact skipped-row totals, so validation fractions and exit codes remain correct even when only a bounded sample is kept. The regression suite catches replacing the exact total with the sample length ([#1888](https://github.com/MakazhanAlpamys/Soup/issues/1888), [#1930](https://github.com/MakazhanAlpamys/Soup/pull/1930))
+
+- **Vincent Le** ([@VincentTLe](https://github.com/VincentTLe))
+ - First merged contribution. Made the checkpointing choice explicit in all 30 affected shipped TRL-family recipes, templates and examples, with 22 matching snapshots. The config walker catches deleting only the reward-example key even though that config still loads, preserving the memory behavior intended before the TRL forwarding fix ([#1862](https://github.com/MakazhanAlpamys/Soup/issues/1862), [#1923](https://github.com/MakazhanAlpamys/Soup/pull/1923))
+
---
Want to join this list? See [CONTRIBUTING.md](CONTRIBUTING.md) — good first issues are
diff --git a/changelog.d/0.76.0/1923.fixed.md b/changelog.d/0.76.0/1923.fixed.md
index 03bafa6d..b94aca41 100644
--- a/changelog.d/0.76.0/1923.fixed.md
+++ b/changelog.d/0.76.0/1923.fixed.md
@@ -1 +1 @@
-- The 30 shipped grpo, ipo, bco, reward-model and online-DPO recipes, templates and example configs now set `training.gradient_checkpointing: true`: since #1778 passes the key to TRL, leaving it unset fell back to the schema default `false` instead of TRL's `true` and used more activation memory (#1923).
+- The 30 shipped grpo, ipo, bco, reward-model and online-DPO recipes, templates and example configs now set `training.gradient_checkpointing: true`: since #1778 passes the key to TRL, leaving it unset fell back to the schema default `false` instead of TRL's `true` and used more activation memory (#1923 by @VincentTLe).