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): #2079 [skip ci]
Alpamysf2092f289966
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.mdindex 50c1be39..a543afa0 100644--- a/CONTRIBUTORS.md+++ b/CONTRIBUTORS.md@@ -251,6 +251,7 @@ Listed by first contribution. PR numbers link the work.- 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))- Closed #1912, reported by @feloau: `soup merge` on a Qwen3.5 text model saves no `mtp.*` tensors but leaves `mtp_num_hidden_layers: 1` in `config.json`, so llama.cpp's converter added a block and wrote a GGUF that fails to load. They made `soup export` read the safetensors headers only (single file, indexed or unindexed shards, `text_config` honoured) and pass `--no-mtp` on the direct f16/f32 path and on the f16 intermediate of a quantized export, refuse before conversion when the converter does not advertise the flag, and keep real MTP tensors. **The part worth copying is what they did with the review**: 12 of 35 mutations survived the first version, and every one became a test that fails for its own reason, including a shard path that really exists outside the model directory and a real symlink, rather than assertions that passed because a later error carried the same prefix. They also documented the shared header reader's dtype limit. 47 tests in the new file; 12 of 12 survivors killed on re-application; on main without the change the file does not import, and with the import guarded 42 fail and 5 pass ([#1912](https://github.com/MakazhanAlpamys/Soup/issues/1912), [#1957](https://github.com/MakazhanAlpamys/Soup/pull/1957))- Took #1427 on the plan agreed on the issue after the earlier claim was released: `soup data pii`, `toxicity`, `score`, `langdetect`, `educational` and `decontaminate` read only `text`/`content`, so alpaca, DPO, KTO and ShareGPT rows were scanned as empty and reported clean, and a `{prompt}` benchmark file removed nothing. They moved the `soup expect` multi-format extractor verbatim into `utils/row_text.py` (old private names kept as aliases), made the six commands warn with a count and refuse when no row has text, and documented it in `docs/data.md`. **The part worth copying is how the one finding closed**: review found that an input with zero usable rows was newly refused (exit 1, it was exit 0) with no test, and `if rows and missing == len(rows)` left all 47 tests green; they added 18 CLI cases (three zero-row inputs by six commands) with the file's own helpers plus a docs sentence, and that mutation now fails all 18. 65 tests pass plain and under `FORCE_COLOR`, 55 fail on the merge-base, and 19 of 20 mutants across two rounds are caught (the twentieth, `not rows or`, is equivalent); the MCP `data score` tool gets the broader extractor but still reports clean totals for rows without text ([#1427](https://github.com/MakazhanAlpamys/Soup/issues/1427), [#2037](https://github.com/MakazhanAlpamys/Soup/pull/2037))+ - The gate `soup ci init` writes ran `soup data validate` with its permissive default, so a file with one valid row and nine broken ones passed the data step. It now passes `--min-valid-fraction 1.0`, while the validator's own default stays as #811 decided. **The tests take the command out of the rendered YAML and run the real CLI** on 1/10, 9/10 and 10/10 valid files, a quoted file name and a skipped-record file; removing the flag fails 6 of the 10 new tests and the other 4 are controls ([#2055](https://github.com/MakazhanAlpamys/Soup/issues/2055), [#2079](https://github.com/MakazhanAlpamys/Soup/pull/2079))- **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)).