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): #2093 [skip ci]
Alpamys981a19156251
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.mdindex 4a0362d5..fe3f6989 100644--- a/CONTRIBUTORS.md+++ b/CONTRIBUTORS.md@@ -252,6 +252,7 @@ Listed by first contribution. PR numbers link the work.- 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))+ - Closed #2090, which found that a preference file with a `messages` prompt was auto-detected as ChatML, silently dropped `chosen` and `rejected`, passed `soup train --dry-run`, and failed only after the model loaded with `KeyError('chosen')`. They made `format: auto` resolve to the pair converter for the preference tasks in `data_config_for_task` and added a guard that refuses converted train or validation rows without `prompt`, `chosen` and `rejected` before any trainer is built, for both `--dry-run` and a real run, with a message naming the loaded format and `data.format: dpo`. **The part worth copying is that the tests were written for the spellings, not the example**: string and message-list answers, a system turn or none, `prompt` and `messages` together, a mixed file, all seven tasks, `auto` written and omitted, plus the SFT and KTO controls. 118 new tests; five mutations (task-blind pick, dry-run guard, real-train guard, validation split, all-rows-dropped branch) each fail named tests ([#2090](https://github.com/MakazhanAlpamys/Soup/issues/2090), [#2093](https://github.com/MakazhanAlpamys/Soup/pull/2093))- **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)).