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): #2024, #1775 [skip ci]

Alpamys13afe8f0c26f
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 8657a758..c922805b 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -248,6 +248,7 @@ Listed by first contribution. PR numbers link the work.
- `soup ship --emit-evidence` bound only the recipe and a verdict-time data hash, so evidence for one adapter could be gated against another and nothing recorded the policy behind a decision. They added a separate versioned `provenance.binding` (adapter manifest root, task-eval bytes, suite versions, effective policy with its own hash) that leaves `config_sha` alone, an opt-in `--require-provenance` drift gate and a caller-asserted `--data-sha256`. **The part worth copying is how they closed the review's one finding**: a nonfinite `noise_floor.runs` reached the policy encoder before the validator and raised an uncaught `ValueError`, and they moved the shared evidence decode ahead of the capture and pinned it with 18 public CLI cases, 12 that fail with the original exit 1 when the order is undone and 6 healthy controls. 52 tests pass plain and under `FORCE_COLOR`, 37 of them fail on the merge-base, and both mutations I ran were caught (12 and 1 failures); the six controls alone would not pin the noise-floor repeat count inside the policy ([#1765](https://github.com/MakazhanAlpamys/Soup/issues/1765), [#2025](https://github.com/MakazhanAlpamys/Soup/pull/2025))
- Landed the agreed first revision/provenance slice: supported resident Transformers base loads share one resolved Hub commit, portable final-artifact sidecars preserve recorded identities, and registry round-trips transfer historical hashes without reopening training files. Added nullable, concurrency-safe storage and explicit unknown/cache-hint semantics; training-file hash capture and unsupported binding paths remain separate ([#1902](https://github.com/MakazhanAlpamys/Soup/issues/1902), [#1972](https://github.com/MakazhanAlpamys/Soup/pull/1972)).
- Closed #2035, reported by @abdulwaarith0, which showed that after #2025 restamped evidence failed `--require-provenance` against the same config unless the suites happened to be alphabetical, and always failed on the default suite. They canonicalized both `suites` and `policy.general_suite` inside `make_binding`, on copies, so the restamp and the strict gate cannot disagree again. **The part worth copying is the unit test beside the CLI round trip**: a round trip alone is green on a build that sorts the caller's list in place, and the in-place mutation is caught by that unit test only. 56 tests in `tests/test_ship_provenance.py` pass plain and forced-color; 3 of the new tests fail on the merge-base source; 5 of 5 mutations killed (either sort dropped, reversed order, in-place sort of either caller input); a repeated suite name still counts as a different selection, as before ([#2035](https://github.com/MakazhanAlpamys/Soup/issues/2035), [#2038](https://github.com/MakazhanAlpamys/Soup/pull/2038))
+ - Produced the missing half of #1764, the data identity of a trained run: `soup train` now captures `training_data_sha256`, the SHA-256 of the complete bytes of one supported local raw text-training file, before the loader runs (1 MiB reads, 256 MiB limit, 5-second budget), keeps it in the tracker and in `soup_run.json`, and `soup registry push --run-id` copies it while an explicit `--data` keeps its precedence; remote, mixed, streaming, tokenized, non-text, oversized, changing or partly read inputs record unknown instead of a prefix hash. **The part worth copying is how they handled the Windows finding:** the path-based and descriptor-based `stat` calls disagree on ctime for roughly one fresh file in ten, so they split the identity that is comparable across both APIs (device, inode, size, mtime) from the signature compared within one API (plus ctime), and they turned every gap the review listed into a test (URL and UNC guards, the in-loop deadline and its boundary, the read allowance, the NUL path, the capture order in `train.py`). 58 tests in the identity file and 20 in the CLI file pass, with no intermittent failure over five runs; 44 mutations tried, 36 caught, the 8 survivors are guards that cover each other and `st_dev` ([#1764](https://github.com/MakazhanAlpamys/Soup/issues/1764), [#2024](https://github.com/MakazhanAlpamys/Soup/pull/2024))
- **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)).
@@ -990,6 +991,9 @@ Listed by first contribution. PR numbers link the work.
- First contribution. Added native DPO on `backend: mlx` with Soup's own training loop (sigmoid loss, reference log-probs precomputed once from the base model, a chunked vocabulary head), reading rows through the same `format: dpo` converter as the transformers backend ([#1846](https://github.com/MakazhanAlpamys/Soup/pull/1846))
- Made `backend: mlx` skip a validation split smaller than one batch with a warning, and refuse a training split smaller than one batch before the model loads, instead of crashing at the first evaluation ([#1851](https://github.com/MakazhanAlpamys/Soup/issues/1851), [#1857](https://github.com/MakazhanAlpamys/Soup/pull/1857))
+- **Tanmay Garg** ([@Tanmay9223](https://github.com/Tanmay9223))
+ - First contribution. Moved the PRM, MoLE routing and PPO wrappers onto the shared warmup resolution, and made PPO honour `--deepspeed`, take `response_length` from `data.max_length` and keep 3 saves ([#805](https://github.com/MakazhanAlpamys/Soup/issues/805), [#1775](https://github.com/MakazhanAlpamys/Soup/pull/1775))
+
---
Want to join this list? See [CONTRIBUTING.md](CONTRIBUTING.md) — good first issues are