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): #2041 [skip ci]
Alpamys8a2c57d7e2ab
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.mdindex 4a2a0783..47669c6a 100644--- a/CONTRIBUTORS.md+++ b/CONTRIBUTORS.md@@ -933,6 +933,7 @@ Listed by first contribution. PR numbers link the work.- Refused invalid benchmark, recipes-verify and CUDA-graph requests before heavy imports or model loading ([#1817](https://github.com/MakazhanAlpamys/Soup/issues/1817), [#1841](https://github.com/MakazhanAlpamys/Soup/pull/1841)).- Fixed loss-spike recovery limits across launches by checking prior attempts before incrementing the persisted count, and handled malformed recovery hints without crashing ([#808](https://github.com/MakazhanAlpamys/Soup/issues/808), [#1971](https://github.com/MakazhanAlpamys/Soup/pull/1971)).- Closed #2076, reported by @feloau (split from #1913): on Apple Silicon `soup train` died with no traceback while loading weights, because transformers' threaded loader aborted in `_materialize_copy`. They set `HF_DEACTIVATE_ASYNC_LOAD=1` through one helper, `configure_mps_async_load`, before the model is built for `soup train`, `soup sweep` and `soup bench train`, keep a value the user set (so `0` opts out), leave cuda, cpu and mlx alone, and made `soup doctor` show the variable's state without claiming it is set. Eleven mutation checks each fail a named test, and @feloau verified the branch on an M2 Max ([#2076](https://github.com/MakazhanAlpamys/Soup/issues/2076), [#2040](https://github.com/MakazhanAlpamys/Soup/pull/2040))+ - Closed #1423: `soup profile` and the MCP `tool_profile` budgeted every run as LoRA, so a full fine-tune (`lora.r: 0`, Spectrum, LISA, `prm`, classifier or ASR without LoRA) showed 0 trainable parameters and 0 GB of optimizer memory. They moved the train pre-flight's classification, branch for branch, into one `resolve_peft_mode` shared by all three callers and gave `estimate_total` a full-fine-tune path with a gradient term; when review found no test pinned the gradient budget, they asserted the exact values (14.9 GB gradients, 62.28 GB total) and the rendered `Gradients` row after collapsing the table padding, so 17 of 20 one-edit mutations of the changed lines now fail the new file. ([#1423](https://github.com/MakazhanAlpamys/Soup/issues/1423), [#2041](https://github.com/MakazhanAlpamys/Soup/pull/2041))- **John Coplin** ([@johncoplin](https://github.com/johncoplin))- First contribution: the friendly-error formatter's `HTTP 401`/`HTTP 403` text patterns let two whitespace groups compete for the same run, so an exception message with `HTTP` followed by a long whitespace run and no status took about 13 s to print at 50,000 spaces. Since #1366, that check runs for every exception in the chain. They claimed the issue, rewrote both patterns so the optional whitespace is consumed only after a `:`/`=` separator, and added a timing test that fails on `main`. **The part worth copying is the equivalence test**: all 15 phrasings from the issue run against the old and the new pattern for both 401 and 403, so the speed-up provably changes nothing about what gets classified. 31 tests (1 fails on main), 7 of 7 mutations killed ([#1367](https://github.com/MakazhanAlpamys/Soup/issues/1367), [#1594](https://github.com/MakazhanAlpamys/Soup/pull/1594))