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): #1335, #1360
Alpamys886eb6468b89
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.mdindex 8c3a3ef6..079eecc5 100644--- a/CONTRIBUTORS.md+++ b/CONTRIBUTORS.md@@ -333,6 +333,7 @@ Listed by first contribution. PR numbers link the work.- The last three unguarded regex sinks, and the `diagnose/format.py` one is the sharpest: its guard WAS the denial of service, because it matched the untrusted pattern against `"a" * 128` before deciding anything. Measured on main with a ten-character input, `matches_regex('short text', '(a+)+b')` never returns; twelve pattern/sink combinations hang past a ten-second timeout there and refuse in under 0.06 s here, each naming its own field. They also proved the check DISCRIMINATES - `(?:q|k)+_proj`, `force.*attraction` and `\d+` all still match - and flipped the source-grep that asserted the probe's presence into one asserting its absence, so it cannot come back quietly ([#1137](https://github.com/MakazhanAlpamys/Soup/issues/1137), [#1142](https://github.com/MakazhanAlpamys/Soup/pull/1142))- Pinned the async-disk tier's page-lock recovery behaviourally: a real `AsyncDiskSource` built from a minimal on-disk shard, only its pinned staging allocation failing, driven through the real drain into the real VRAM probe — so replacing the drain with `pass` fails on `peak.oom is False`, the exact misreport of #1003. It complements a recorder-based test that proves the call and its order; this one proves the stale error is actually gone ([#1095](https://github.com/MakazhanAlpamys/Soup/issues/1095), [#1098](https://github.com/MakazhanAlpamys/Soup/pull/1098))- Published the STEP 14 control-versus-repair gate (`benchmarks/harness/variant2_gate.py`) that the H100 record could only describe. Review then found its wiring counter had been blind since #1010: `StreamedDecoderLayer.named_modules()` hides the wrapper carrying `n_dequant_forward`, so `wiring_distinct` could never be true. They now walk registered children, refuse to measure a repaired arm with nothing rewired, and pin both the whole-run verdict and `_run_arm` on CPU, with 14 of 17 mutations killed ([#379](https://github.com/MakazhanAlpamys/Soup/issues/379), [#1085](https://github.com/MakazhanAlpamys/Soup/pull/1085))+ - The regex PII baseline behind `soup expect`, `soup data pii` and `soup data score` was **quadratic** on long `[\w.+-]` runs with no `@`: the email pattern restarted at every word boundary, so one 50 KB row of `1-1-1-...` took 14-20 s, paid again for every such row. They made a match start only where a run starts, keeping the rule that the local part needs a word character, and **pinned both sides of the trade**. An 8N-versus-N ratio test covers the speed: 59-66x on `main`, worst 11.8 of 300 repeats against a limit of 32 with the fix. A seeded differential against the old pattern, with the two known snippet differences named, covers the detections. Row flags are identical by construction, and in review 7.2 million exhaustive strings plus 100,000 random rows showed 0 disagreements. 7 of 7 mutations of the fix fail their tests ([#1329](https://github.com/MakazhanAlpamys/Soup/issues/1329), [#1360](https://github.com/MakazhanAlpamys/Soup/pull/1360))- **k4its1t** ([@k4its1t](https://github.com/k4its1t))- First contribution, picking up where #497 stopped one day earlier. The dtype scanner's predicate already matched anything starting with `AutoModel`, so every `AutoModelFor*` load was covered and the surviving hole was **concrete, non-Auto** classes: `Qwen2VLForImageTextToText.from_pretrained(..., dtype=)` or `BertForMaskedLM.from_config(..., dtype=)` were invisible and would have shipped a kwarg that TypeErrors below the declared transformers floor. Four suffixes, a focused regression test each, both load methods. **Their own mutation claim was the coarse one -- removing all four suffixes makes four tests fail -- and removing them one at a time is stronger than they claimed**: each single removal produces 1 failed, 15 passed, so every named test is the sole guard for its own suffix rather than the four reddening together. The two things I check on any widening they got right: the four existing false-positive controls survive untouched (a guard that fires on correct code is one people delete), and all six deleted lines are a rename plus reworded docstrings, not a test. The rename `_is_transformers_model_load` -> `_is_dtype_guarded_model_load` describes the contract being enforced instead of implying every matched class comes straight from transformers. **Scope was not oversold, which is why it is worth writing down**: none of the four suffixes appears in `src/` today and the scanner reports zero live hits, so this is prospective -- Whisper loads as `WhisperForConditionalGeneration` and #497 already covered it. Timely prospective work, though: concrete vision classes are exactly what #488, #501 and #502 are moving through right now ([#500](https://github.com/MakazhanAlpamys/Soup/pull/500))@@ -613,6 +614,9 @@ Listed by first contribution. PR numbers link the work.- **Parnika S M** ([@parnika0110](https://github.com/parnika0110))- First contribution: nine shipped recipes named a Hugging Face repo that does not exist, so the weekly repo-id check had been red on `main` (missing=18). Seven now point at live, ungated repos and two are removed. **They overruled the issue's own premise**: the issue called Mistral Medium 3.5 API-only, and they found its 128B weights on the Hub, kept the recipe and fixed its size. They also settled `granite-4-sft` and `kimi-k2-sft` on one base-checkpoint rule and added the test that fails when a recipe's `RecipeMeta.model` and YAML `base:` disagree. The check now exits 0 with missing=0; 10 of 13 mutations fail a test, and the survivors are size/tag labels that no test pins yet ([#1122](https://github.com/MakazhanAlpamys/Soup/issues/1122), [#1132](https://github.com/MakazhanAlpamys/Soup/pull/1132))+- **Jillur Rahman** ([@developerjillur](https://github.com/developerjillur))+ - First contribution: `soup eval behavior --base-model` scored each live generation by whether it contained the probe's oracle label word, so an unchanged healthy model read MAJOR and a real refusal regression read delta 0.00. Generations are now classified as refusals or answers against a frozen table, `--evidence` keeps word matching, and `elephant` / `syceval`, whose `disagree` oracle a refusal classifier cannot judge, are refused before any model loads with exit 3. **They also taught the refusal classifier the contracted `I'm unable` / `I'm not able`, and when review showed that this moves the `mini_safety` and `mini_over_refusal` gate suites too, they bumped the scorer revision with contracted forms in the fingerprint corpus, so an older `--baseline` warns and a revert is caught.** On `main` 24 of the new file's 25 tests fail; 5 of 6 mutations in the last round fail a test, and the sixth (the revision number set back while the new fingerprint stays) is a property of the repository's revision test, not of this change ([#1228](https://github.com/MakazhanAlpamys/Soup/issues/1228), [#1335](https://github.com/MakazhanAlpamys/Soup/pull/1335))+---Want to join this list? See [CONTRIBUTING.md](CONTRIBUTING.md) — good first issues are