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): #1662, #1723, #1716, #1729, #1727, #1661, #1730 [skip ci]
Alpamysa3476ca99c36
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.mdindex 5713c0e6..02c488e1 100644--- a/CONTRIBUTORS.md+++ b/CONTRIBUTORS.md@@ -127,6 +127,7 @@ Listed by first contribution. PR numbers link the work.- Made FSDP + BNB 4-bit QLoRA dtype-compatible by resolving quantization storage and aligning trainable PEFT parameters, with recipe, documentation, and regression coverage ([#588](https://github.com/MakazhanAlpamys/Soup/pull/588))- A direct `soup export --format awq` let AutoAWQ silently download its own default calibration set — roughly 214k rows — so an export the user believed was local was network-dependent and calibrated on whatever upstream happened to ship. An explicit local JSONL is now required, and missing, empty or malformed input is refused **before** AutoAWQ is imported and before the model is loaded, so the failure costs seconds instead of a model load. The substance is theirs, in three commits. Three remaining review items — a width-fragile test rewrite, a stale "Unlike `--format awq`" line in the GPTQ refusal that this change itself made false, and the fragment move after v0.74.0 was tagged mid-review — were finished by the maintainer after a publicly announced date passed, and the merge commit names exactly which commits were whose ([#338](https://github.com/MakazhanAlpamys/Soup/issues/338), [#592](https://github.com/MakazhanAlpamys/Soup/pull/592))- `soup ui` opened and printed a URL with no token, so the first tab was `Unauthorized` on first paint. They made the panel and the browser launch use the `?token=` login URL (also under `--no-browser`), and corrected the review's own premise: after #1191 the server, not `app.js`, consumes the token on a loopback bind, so the docs describe the 303 + HttpOnly cookie. 4 of 4 mutations killed, including `--no-browser` being ignored, which the first version of the test could not catch ([#1194](https://github.com/MakazhanAlpamys/Soup/issues/1194), [#1307](https://github.com/MakazhanAlpamys/Soup/pull/1307))+ - `stream_layers` accepted `use_liger` and `use_flash_attn`, trained, and ignored both, because only the resident setup reads them. They claimed the issue, refused both at config load in the existing conflict list, resolved the issue's second box by pinning the task gate that already covers the streamed preference tasks rather than adding a dead branch, and added a scan test that fails when the streamed setup starts reading either field. When the review showed their "byte-identical" control asserted on pydantic's multi-line rendering and could not fail, they rebuilt it on the raw message (it now fails 6 mutants), fixed the trailing space it had hidden, and took the optional suggestion of naming only the switches that are set. 33 tests (7 of the first 32 fail on `main`), 9 validator mutations killed ([#1692](https://github.com/MakazhanAlpamys/Soup/issues/1692), [#1716](https://github.com/MakazhanAlpamys/Soup/pull/1716))- **Shutaru** ([@Shutaru](https://github.com/Shutaru))- Kept the Transformers SFT import off the MLX dispatch route, so `backend: mlx` cannot reach the PyTorch/TRL stack even if `sft.py` stops being import-light later — and, told the PR did not fix the defect its title claimed, retitled it to match reality rather than defending the framing, leaving [#394](https://github.com/MakazhanAlpamys/Soup/issues/394) open for the unexplained hang. The `mlx-smoke` job it adds asserts mlx is *present*, not merely that torch is absent: the earlier shape went green having executed nothing ([#431](https://github.com/MakazhanAlpamys/Soup/pull/431))- Found and fixed a silent data-corruption bug in assistant-only loss masking: `BatchEncoding` is not a `dict`, so the guard missed and the mask was built from the mapping's **key strings** — no exception, normal loss curve. Split it out of #426 on request, then decided the case the issue asked to be decided rather than inherited: an all-zero mask with assistant messages present is rejected rather than honoured (measured: 0 trained tokens before, 2 after) ([#439](https://github.com/MakazhanAlpamys/Soup/pull/439))@@ -365,6 +366,7 @@ Listed by first contribution. PR numbers link the work.- `data.add_new_tokens` / `new_special_tokens` loaded and were silently dropped on every unsloth setup, on MLX, under layer streaming and on twelve tasks whose trainers never call the expansion helper. They refused them at config load, ordered so switching backend never meets a second refusal, and re-measured every (task, backend) pair against the current trainers. Over three rounds they exempted SFT's vision/audio paths on unsloth and let a task's own backend refusal speak first. On the final head: 129 passed in the new file, 6 of 6 mutations caught, 186 configs probed, and 6794 passed / 0 failed across 86 files merged with main ([#1358](https://github.com/MakazhanAlpamys/Soup/issues/1358), [#1622](https://github.com/MakazhanAlpamys/Soup/pull/1622))- Made every documented `soup` invocation resolve in the live CLI. They corrected six spellings from the issue and about sixteen more the reviews surfaced, and wrote a guard that walks the Click tree over every `soup ...` line and inline span in `docs/*.md` and `README.md` and every recipe description. It handles global options, `--no-*` flags, groups that run on their own, routed default subcommands, aligned columns and `VAR=value` prefixes. Over three rounds every gap came back closed with a control row. On the final head the guard, #979's guard and the translation sync test give 111 passed on the merged tree, and 12 of 12 mutations are caught ([#1465](https://github.com/MakazhanAlpamys/Soup/issues/1465), [#1578](https://github.com/MakazhanAlpamys/Soup/pull/1578))- Filed #1393 from the #1145 measurements and then fixed it: DPO built `AutoModelForCausalLM` whatever `modality` said, so a vision-language wrapper checkpoint (MiniMax-M3) could not load in DPO. They gave the DPO wrapper SFT's vision path (processor, pad-token mirror, vocab expansion through the processor's tokenizer, LoRA on the language tower) and **answered the open trl question by measurement**: a real DPO step on a tiny LLaVA showed trl keys its vision collator on an `images` column, not on the processor, so text-only preference rows train. Review found the preflight answered DPO + `audio` wrongly (a green verdict for a config the trainer cannot load) and missed a `preference_loss_weights` blend led by dpo in both the preflight and the unsloth refusal; the fix was one per-trainer modality map plus resolving the blend by its largest weight in both places, with a control test against widening the refusal, and their re-measured mutation counts reproduced exactly. 17 of 19 mutations killed (the two survivors only change an equal-weight tie, which I recorded rather than blocked on), 111 tests in the two PR files, 2531 on a trial merge with `main` ([#1393](https://github.com/MakazhanAlpamys/Soup/issues/1393), [#1707](https://github.com/MakazhanAlpamys/Soup/pull/1707))+ - Closed #1197, which they filed and measured: `training.moe_lora: true` with `lora.use_vera: true` adapted the attention projections exactly as VeRA without the flag did and still printed `ScatterMoE LoRA: targeting 7 module patterns`, because peft's `VeraConfig` wraps `nn.Linear` modules only and a transformers-5 MoE keeps its routed experts as fused 3-D parameters. **The part worth copying is that they took the maintainer's correction on their own numbers and kept the shape the data pointed to**: their 12 / 4 counted `lora_A` names (two per adapted layer), the true figure was 6 layers with 2 on experts, and Mixtral is fused at the transformers floor too, so the check is "VeRA wraps no routed expert", not #798's predicate. They claimed the issue, waited for #1590 to land because the refusal reads its `find_fused_expert_parameters`, and opened the PR rebased on it. The refusal sits in `resolve_moe_lora_targets` ahead of the dropout rule, so every MoE-wired trainer reaches it without a call-site change; it names both flags, the fused parameters and the two ways out, and leaves `use_vera` without `moe_lora`, a dense base and a one-`nn.Linear`-per-expert checkpoint alone. 15 tests on tiny real Qwen3-MoE, Mixtral, MiniMax and Qwen2-MoE models, 6 of them failing on `main`, including a refusal driven through the real DPO setup; on the head 3237 passed across 52 related files and all 11 source mutations are caught. One had survived their own set of five: nothing asserted the second way out in the message, and it took one assertion ([#1197](https://github.com/MakazhanAlpamys/Soup/issues/1197), [#1723](https://github.com/MakazhanAlpamys/Soup/pull/1723))- **Sohaib Kamash** ([@Nick-800](https://github.com/Nick-800))- Added seven validated Qwen2.5-Coder, Qwen2.5-Math, and DeepSeek-R1-Distill-Qwen SFT recipes; synchronized all catalog-count sites and repaired the Mistral Small model identifier. Literal repository IDs and per-recipe learning rates are now load-bearing assertions ([#536](https://github.com/MakazhanAlpamys/Soup/pull/536)).@@ -387,6 +389,7 @@ Listed by first contribution. PR numbers link the work.- Closed #1309, a setting that was accepted and then ignored: `training.gdpo_variant` loaded on `task: dpo` and `task: preference` and its description promised to replace the trainer's preference loss, but on trl >= 0.29 the `DPOTrainer.dpo_loss` hook it relied on is gone, so every variant trained exactly the default loss and nothing said so. They took the owner's "refuse" ruling and kept to it: a `mode="before"` field validator that refuses every non-null value, so `bogus`, `false`, `""` and `[]` get the same message as the real variants and the task and backend gates cannot mask it. **What makes it a good change**: every test the earlier EBFT refusal (#1279) had handed to this fix was inverted rather than deleted — loads-as-valid became refused, the two gate-unchanged tests became "refusal precedes the gate", the silent `False` from the legacy hook became a `ValueError` — and the refusal text names the nearest real alternative while saying it is not identical. 452 tests in the four touched files (44 fail on a clean `main`); 12 mutations of the validator, its message and the `live_wired` flags, 12 killed ([#1309](https://github.com/MakazhanAlpamys/Soup/issues/1309), [#1515](https://github.com/MakazhanAlpamys/Soup/pull/1515))- Took the `soup data score` slice of [#1448](https://github.com/MakazhanAlpamys/Soup/issues/1448), an option that was validated, announced and then read by nothing: `--benchmarks` and `--threshold` were accepted and decontamination was always called with no texts, so the scorecard printed `Decontaminated 0` for any input. They added `--benchmark-file` and wired the supplied texts and the threshold to the real 8-gram kernel, refuse labels alone by name, and made the "not run" case say so instead of showing a zero. **What makes it worth keeping**: asked what the `-b` labels do once a file is given, they did not argue it — they put the answer in the help text, the docs, a printed note and a test — and every refusal (labels alone, malformed or non-object JSONL, a truncated file, an empty or unusable corpus) comes before a scorecard prints, so a bad corpus can no longer read as a clean result. 34 tests (22 fail on a clean `main`); 16 mutations of the wiring, the strict loader and the core validation, 16 killed ([#1448](https://github.com/MakazhanAlpamys/Soup/issues/1448), [#1518](https://github.com/MakazhanAlpamys/Soup/pull/1518))- Closed #1718: `soup eval benchmark` started each tracker row from `score = 0.0`, so a benchmark that was missing from the lm-eval results, or present without a numeric metric, was stored as a measured zero and then reported as saved - and `soup eval compare` and `soup eval leaderboard` take the newest row per benchmark, so that zero replaced a real score. They took the accepted contract exactly and did not widen it: skip, name and count the unmeasured names (never refuse the whole run over one task), print the banner only when a row was saved and carry the count (`2 of 4`), exit 1 when nothing was saved, keep a real `0.0`, refuse a `bool` as a score (the `isinstance(True, int)` trap), and treat a group like any other requested name without saving its sub-tasks. **What makes it worth keeping**: the results table and the tracker now share one metric selector, so they can no longer disagree about what was measured, and the tests drive the real CLI against a real SQLite file with only lm-eval's reply stubbed, with the colour-stripping helper shown to be load-bearing under `FORCE_COLOR=1`. The only existing test touched was the trust-forwarding double, which changed its return value and nothing else. 20 tests; 17 of 17 mutations of the contract (each skip, the bool rule, the zero rule, the banner, the count, the exit code, the `for_terminal` routing at three sites, the group rule) are killed by a named test ([#1718](https://github.com/MakazhanAlpamys/Soup/issues/1718), [#1722](https://github.com/MakazhanAlpamys/Soup/pull/1722))+ - `soup eval human` let a JSONL string or array that contained `"prompt"` through its loader, built both model generators, and then died with a `TypeError`. They reported it with a run of the real command, proposed and agreed a narrow scope before writing code, and added the object guard with the wording `eval/custom.py` already uses, so the error names the line before any model is loaded. 14 tests, including a CLI spy that no generator is built for a bad row; removing the guard fails 12 of them ([#1725](https://github.com/MakazhanAlpamys/Soup/issues/1725), [#1727](https://github.com/MakazhanAlpamys/Soup/pull/1727))- **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))@@ -585,6 +588,7 @@ Listed by first contribution. PR numbers link the work.- The hardware-fit gate sized Hub models from a fixed marker list and called anything else 7B, so a 72B, 405B or 675B base was budgeted as 7B and let through to OOM on Linux or spill on Windows. Substring hits made it worse: `a3b` read as 3B, `11b` as 1B, `17b` as 7B. They replaced the list with a boundary-safe size parse, handling `8x7B` MoE totals, Llama 4 `17B-16E` active-plus-expert names, `-A22B` active tokens and OLMoE's active-first `1B-7B`. On the 91 catalog bases with a known real count, estimates within 10% went from 34 to 61, and 2x-or-worse under-predictions from 40 to 16. **What made it trustworthy was the yardstick**: the catalog test now checks real parameter totals rather than recipe labels, so a label wrong in the same direction as the estimate (Scout's "17B", DeepSeek-V3-0324's "7B") can no longer hide one. A reverse check keeps both tables in step with the catalog, which is how #1132's repointed ids were caught and fixed in the rebase rather than drifting. Three review rounds, every requested and optional item taken; 24 of 24 mutations fail a test ([#1198](https://github.com/MakazhanAlpamys/Soup/issues/1198), [#1285](https://github.com/MakazhanAlpamys/Soup/pull/1285))- `mistral-medium-3-5-sft` could not attach LoRA: its base is a `mistral3` vision-language wrapper, but the recipe had no `modality: vision` (so `AutoModelForCausalLM` rejected `Mistral3Config`) and `target_modules: auto` had no `mistral3` row. **They measured the real key names on the meta device before choosing the pattern**, so the row is a language-tower regex (8 modules adapted on a 2-layer skeleton, 0 in the Pixtral vision tower, where a plain suffix list would have adapted 16), left `ministral3` out as the issue asked, removed the recipe's `EXCEPTIONS` pin, and after review named the real Hub repo in the changelog, documented the row, built the stand-in on the real `Ministral3Config` and relabelled the tests that only document alternatives. 20 of 30 new tests fail on clean main, seven mutations caught, `recipes verify` moves from 0 attach to 1 attach ([#1395](https://github.com/MakazhanAlpamys/Soup/issues/1395), [#1482](https://github.com/MakazhanAlpamys/Soup/pull/1482))- A sink-based ratchet for outbound HTTP calls: the #616 guard found gates by their shape, so a differently written gate, or no gate at all, passed unchecked, and `energy.py` had its own loopback set that missed abbreviated IPv4 and `100.64.0.0/10`. They built the inverted scanner the issue asked for, and it **improved under review rather than merely passing it**: the first version saw 20 of 46 spellings of an outbound call, the two-pass one sees 45 (the missing one, an untyped client passed in as a parameter, is stated as a limit in the docstring); the table is keyed by qualified name with an exact call multiset, so a second call inside a declared function fails; and every declared gate is checked to exist and to be called (review had found four entries that named functions that do not exist). When review showed that the inert list held classes that open a connection, they removed the names rather than argue. `validate_electricity_map_endpoint` now goes through `net_guard`. 363 tests passed on the final head and 1361 on the tree merged with main, and 51 mutations were run on it, 42 caught ([#1547](https://github.com/MakazhanAlpamys/Soup/issues/1547), [#1646](https://github.com/MakazhanAlpamys/Soup/pull/1646))+ - Closed #1644: the automatic evaluation that `soup train` starts called `soup eval benchmark` and `soup eval custom` with `trust_remote_code=False` whatever the run was started with, so a base that needs the opt-in trained (the user had given it) and then could not load the adapter it had just saved: `Auto-eval custom failed: ... Please pass the argument trust_remote_code=True`, exit 0, no result. The rule had been decided on the issue (the run's flag reaches the evaluation, there is no `soup.yaml` key) and they **proposed that plan on the issue and delivered exactly it**: a keyword-only parameter defaulting to `False`, passed at the one call site, reaching the two evaluation loads and nothing else, with the field refused as an unknown key at the top level and under `eval:`. **What makes it worth keeping is the test set**: a CLI test that runs the real `soup train` with only the trainer and the two evaluation commands replaced (the one that catches a call site that forgets the flag), and, after review, a test pinning the omitted-keyword default and an AST test that counts the consumers of the flag and compares the expression each receives, so a later judge or scorer load cannot inherit it by accident. Both review-round mutations that had survived (the default flipped to `True`, a third consumer) are now killed, they took the optional value check too, and they resolved the merge with #1537 and #1658 by keeping both sides and rebased the docs onto #1659's `eval` extra section. 12 new tests; 9 of 9 source mutations killed by a named test ([#1644](https://github.com/MakazhanAlpamys/Soup/issues/1644), [#1662](https://github.com/MakazhanAlpamys/Soup/pull/1662))- **Harsh Raj Singhania** ([@HarshRajSinghania](https://github.com/HarshRajSinghania))- First contribution. With six of seven `[train]` packages installed, `soup doctor` announced `Training stack not installed` and recommended `pip install "soup-cli[train]"` — a command that is a no-op for the six already satisfied. `group_missing` flipped on the first absent member, so **the usual broken install, one missing wheel, was reported as no install at all**. A partial stack now names what is missing. The same patch gates the NVIDIA wheel-tag hint on torch actually being absent: with torch present on a CUDA box that hint explains how to obtain a CUDA build of a package you already have, and it was printing anyway. **What decided this over a competing patch was the test.** The wheel-tag gate had a mutation that survived on the earlier head — dropping `and torch_missing` changed nothing any test could see — and they added `test_doctor_nvidia_partial_stack_with_torch_present`, after which that mutation fails exactly one test and no others. The assertion is `"index-url" not in out` rather than a specific sentence, which catches the hint appearing in either `issues` or `fix_pre`; a sentence match would have missed the duplicate line. They also took a consolidation request seriously when arguing that the original patch already passed its own tests would have been easier ([#875](https://github.com/MakazhanAlpamys/Soup/issues/875), [#884](https://github.com/MakazhanAlpamys/Soup/pull/884))@@ -816,6 +820,9 @@ Listed by first contribution. PR numbers link the work.- Follow-up to their own judge-down fix: its "N of M not judged" counts had only ever been tested with a judge that was dead from the first request, so the subtraction of the work already done was never observed. They added a test for each caller that stops the judge part-way, and one sentence in the data guide saying what a judge that stops answering does to `soup data from-traces`. **The part worth copying is the plain report**: when review found that the pair test (taken from the reviewer's own snippet) used only ties, so one of the two subtracted terms was never seen, they said they had run only the whole-subtraction mutation, switched to a kept pair first, and reran all three variants themselves. 2 new tests, 5 of 5 mutations killed ([#1522](https://github.com/MakazhanAlpamys/Soup/issues/1522), [#1648](https://github.com/MakazhanAlpamys/Soup/pull/1648))- First contribution: the three Fast-LoRA patchers composed destructively. The single-projection unpatch left a bound method on every projection, the kernel a projection ended up with depended on patch order, and unpatching one kernel could silently disable another. They made the Q/K/V and MLP group kernels take their projections over in either order through one release helper that runs only after every refusal guard. The single-projection unpatch now restores exactly the forward it found, and they reversed the #838 first-patcher-wins test after agreeing it in the issue. **They re-measured each gap on `main` before writing code. When review showed the release could be moved above a refusal guard unnoticed, they added the tests and checked every move against them themselves.** 33 tests over all 12 patch/unpatch orders plus the renamed #838 test (18 of the 33 and the renamed test fail on main), 9 of 9 mutations of the fix killed ([#1165](https://github.com/MakazhanAlpamys/Soup/issues/1165), [#1617](https://github.com/MakazhanAlpamys/Soup/pull/1617))- The `soup train` VRAM pre-flight skipped `quantization: mxfp4` even though an MXFP4 base is dequantized on load and trains in bf16, so a GPT-OSS-20B run was let through on a 24 GB card that refuses the same config with `quantization: none`. They waited for #1558 to land as agreed on the issue, then added the one mapping entry, gave only the `mxfp4` refusal a sentence saying the estimate prices the bf16 model, and brought the docs row and #1558's fragment in line in the same PR. **The part worth copying is the controls**: every `mxfp4` gate test runs beside a `none` control, and after review they also pinned the warning panel and tried the neighbouring layout changes themselves. 22 tests (10 fail on `main`), 968 passing across 19 related files, 7 of 7 mutations killed ([#1631](https://github.com/MakazhanAlpamys/Soup/issues/1631), [#1655](https://github.com/MakazhanAlpamys/Soup/pull/1655))+ - Follow-up to their own `mxfp4` pre-flight fix: the same gate still let `gptq`, `awq`, `aqlm`, `eetq`, `fp8` and `hqq:*` start without a check and without a word, and the `fp8` row of the predictor's table said 1.0 byte per parameter for a base the loader dequantizes to bf16. They took the issue after the maintainers' decision, measured `fp8` on a tiny checkpoint quantized with transformers' own `Fp8Quantize` before asking, then moved the mapping into one table so the skip line and the gate ask the same question, priced the four packed formats at the table's figures budgeted like `8bit`, corrected `fp8` to 2.0 with the dequantized-on-load sentence shared with `mxfp4`, and made `hqq:*` print one line instead of staying silent. **The part worth copying is the pin:** the `fp8` figure is tied to a real `FineGrainedFP8Config(dequantize=True)` load asserting 2.0 bytes per parameter, and each mapping entry has its own test beside a `none` control, so a removed entry or a changed figure fails by name; they also reported that `quantization: fp8` on a dense base does not load on transformers 5.16.1, the declared floor, in the PR body when their new load test hit it ([#1652](https://github.com/MakazhanAlpamys/Soup/issues/1652), [#1729](https://github.com/MakazhanAlpamys/Soup/pull/1729))+ - A follow-up to their own #1555: review had found one surviving mutation, because no test loaded `use_dora: true` with a GPTQ, AWQ, AQLM or EETQ base on `backend: unsloth`, so the mlx-only early return could be widened to unsloth with every test still passing. They added the unsloth refusal case and a plain-LoRA control that asserts the backend really is unsloth, over all four formats. **The part worth copying is the reply to the ordering problem**: when review showed the refusal test would fail the moment the approved #1657 landed (its backend refusal fires first and names neither the format nor `use_dora: false`), they asserted only the text both refusals share, ran the file on `main` and on `main` plus #1657, and stated in the PR that the old mutation becomes unreachable once #1657 is in. 8 new tests (25 in the file), 5 of 6 mutations killed (the sixth, an unrelated refusal that still says DoRA, is accepted by design) ([#1466](https://github.com/MakazhanAlpamys/Soup/issues/1466), [#1661](https://github.com/MakazhanAlpamys/Soup/pull/1661))+ - `training.rope_scaling_type` loaded on all 23 tasks and every path, but only the transformers setups of `sft`, `tts` and `pretrain` read it, so on the other 20 tasks and on `sft` with `backend: mlx`, vision or audio modality, layer streaming or `backend: unsloth` the run trained on the checkpoint's own RoPE without a word; the shipped `longcontext` template even suggested the `backend: unsloth` line that dropped it. They claimed the issue, posted the plan first (refusal only, a named `ROPE_SCALING_APPLYING_TASKS`, one validator beside the freeze one), then refused the field at load with a message that names the field, the task or each setting that leaves the reading setup in dispatch order, any `yarn_*` key set beside it, and what to change. `pretrain` with a vision or audio modality was left loading because its `setup` branches on the backend only, and two combinations another validator already refuses are listed as such. Two ratchets tie the task split and the path order to the trainer source. 204 new tests (118 of 250 fail with the validator disabled), 24 of 26 reviewer mutations killed (the two survivors are unreachable combinations), all 17 inline templates, 21 template files and 170 recipes still load ([#1697](https://github.com/MakazhanAlpamys/Soup/issues/1697), [#1730](https://github.com/MakazhanAlpamys/Soup/pull/1730))- **Nariman Abdikarim** ([@Nari-Ab](https://github.com/Nari-Ab))- First contribution: `soup data generate --template preference` appended every preference row before the dedup check, so rows repeating a `--dedup-with` file and repeats within the same run were all written. They claimed that one item of the #1448 audit, routed preference rows through the shared dedup check, and built an order-independent key from the DPO and KTO fields. **Review found that nothing pinned which fields make up the key: a prompt-only key passed every test and would have dropped every later row for the same prompt. They added the proposed test and the exact duplicate count within minutes.** The new file is 4 failed on `main`, 11 of 11 mutations are caught, and 507 related tests pass ([#1448](https://github.com/MakazhanAlpamys/Soup/issues/1448), [#1605](https://github.com/MakazhanAlpamys/Soup/pull/1605))