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

Alpamys85980f0ce495
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 66047891..5d2a057e 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -477,6 +477,7 @@ Listed by first contribution. PR numbers link the work.
- 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))
+ - Published the STEP 6 depth-versus-bytes reconstruction (`benchmarks/harness/depth_vs_bytes.py`): the record's synthetic 48-layer Llama sweep with three backward reads per row, and **a verdict that fails any sweep contradicting the record**, namely every NF4 read at or below 163.8 MiB per layer exact, every read at or above 171.5 MiB wrong, and a bf16 control above the bracket exact (the version first submitted accepted a bf16 "control" at 0.05 MiB, which cannot rule bytes out). Also added the `--hidden`, `--intermediate`, `--heads` and `--kv-heads` flags to `synth_checkpoint.py`. ([#379](https://github.com/MakazhanAlpamys/Soup/issues/379), [#1287](https://github.com/MakazhanAlpamys/Soup/pull/1287))
- **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