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): #1172 [skip ci]

Alpamys05406afc854a
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index a543afa0..66047891 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -476,6 +476,7 @@ Listed by first contribution. PR numbers link the work.
- Published the STEP 2b determinism reconstruction (`benchmarks/harness/determinism.py`): forward twice, backward rep 1 vs rep 3 and a trained 5-step curve twice, streamed NF4 against a resident NF4 reference, with the record's asymmetry as the verdict. Over four rounds it went from a validator of hand-written JSON (where a `null` read as the defect) to an in-process measurement. **The fix that mattered** was ordering: the historical control has to be installed before the streamed model is built, or the harness measures the repaired path. It now goes through `build_streamed_arm(..., "control", ...)` and restores the control in a `finally`, and a `main()` test pins both, so swapping in the clone arm or dropping the restore fails it. Six of its 20 CPU tests drive the real measurement path. Not run on CUDA ([#379](https://github.com/MakazhanAlpamys/Soup/issues/379), [#1286](https://github.com/MakazhanAlpamys/Soup/pull/1286))
- Closed #1616, which asked that a layer cache whose files were rewritten for other settings is never reported reusable for the old ones, and that files the index no longer names are reported. After the maintainer's correction in the thread (a content-changing interrupt must be a miss; only a layout-only re-shard may keep the old index) they made `index.json` move to `index.json.resharding` before the first write of a re-shard whose dtype, quantization, source fingerprint, external policy or format differs, so the next run reports `previous re-shard did not finish` and re-shards; the marker is removed only after the new index is committed. **The part worth copying is the interrupts**: the tests stop `_atomic_save` after two layers and `_atomic_write_index`, on one root and on a striped cache, and the layers-interrupt tests check that every layer file is float32 after the next run, rather than asserting on the marker alone. Part 2 reports unindexed `layer_*.safetensors` and `.soup.*.tmp` files with their size through `for_terminal` and deletes none of them; the tests include a three-root layout, an interrupt between the index commit and the deferred delete, and a stripe folder named `stripe-[bold]`. The PR said plainly that three setup tests needed `peft`, which was not installed. 22 sharder tests and 686 across 14 related files pass; removing the quarantine call fails 4 and flipping its predicate fails 6; the four predicate terms double_quant, quant_device, external_mode and format_version are not pinned by a test ([#1616](https://github.com/MakazhanAlpamys/Soup/issues/1616), [#1747](https://github.com/MakazhanAlpamys/Soup/pull/1747))
- Made mixed direct-I/O stripes visible through per-root runtime stats and a `k/N` ready line, named each page-cache fallback and its operating-system refusal reason, and limited disk read-ahead guidance to disk-tier runs ([#1615](https://github.com/MakazhanAlpamys/Soup/issues/1615), [#1962](https://github.com/MakazhanAlpamys/Soup/pull/1962)).
+ - Published the STEP 8 pinning-cost measurement (`benchmarks/harness/pincost.py`): pinned versus pageable streamed NF4 throughput under the historical control, n=3 per arm against one resident reference. **It reports the historically wrong pinned arm as WRONG next to its tok/s rather than refusing to time it, and it decides from the measurement**: the ratio must reach 1.5x and exceed the arms' own spread, otherwise exit 1. It took five review rounds; the last one closed an empty LoRA-gradient set that read as a pass (0 of 0). ([#379](https://github.com/MakazhanAlpamys/Soup/issues/379), [#1172](https://github.com/MakazhanAlpamys/Soup/pull/1172))
- **chadetov** ([@chadetov](https://github.com/chadetov))
- First contribution, and it is the kind that is easy to file as a one-line fixture tweak and much harder to *diagnose*: `test_sft_smoke` had been red since v0.36.0, and they traced why nobody knew. `pyproject`'s `addopts` carry `-m 'not smoke'`, and the only smoke job in CI is `mlx-smoke`, which selects `-k mlx_sft_smoke` on an install that asserts the PyTorch stack is **absent** — so `test_sft_smoke` and `test_dpo_smoke` run in neither the default suite nor CI, which is how a fixture drifted out of sync with a hard error added five releases earlier. **The scope discipline is what got it merged unchanged**: the MLX fixture carries the same `format: chatml` line and they left it alone, because it reaches the MLX trainer rather than `sft_format.py` and is the one smoke test CI actually runs and passes — verified, not assumed. They also declined to wire the PyTorch smoke tests into CI in the same PR and said why (model downloads, runner minutes), leaving the call to the maintainer instead of taking it ([#594](https://github.com/MakazhanAlpamys/Soup/pull/594)). Separately, and on the same day, they measured `utils/log_level.py`'s branch coverage on #273 and filed [#595](https://github.com/MakazhanAlpamys/Soup/issues/595) — four code sites quoting a probe-denominated VRAM ratio under a "real peak" label, plus a schema field description still carrying a justification the gate record had explicitly withdrawn