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): #1782, #1780, #1749, #1785, #1797, #1767 [skip ci]
Alpamysb43c82a077f6
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.mdindex 203f0054..c8137ddb 100644--- a/CONTRIBUTORS.md+++ b/CONTRIBUTORS.md@@ -224,6 +224,7 @@ Listed by first contribution. PR numbers link the work.- `training.lora.use_dora: true` loaded on `backend: unsloth` and `backend: mlx`, where no DoRA adapter is ever built, so the run quietly trained plain LoRA. It is now refused at config load, through the same variant gate as `use_vera`, while mlx with a Quant Menu format keeps its own refusal. Review asked for one docs sentence and suggested a stricter test `match`, and the stricter match proved load-bearing: rewording the refusal message now fails the test, where the original pattern let it through. When the comment they added turned out to break a source-splitting test elsewhere, they reworded it in one push. 1977 related tests passed on the merged tree, and 7 of 8 mutations were killed (the eighth is an equivalent mutant) ([#1651](https://github.com/MakazhanAlpamys/Soup/issues/1651), [#1657](https://github.com/MakazhanAlpamys/Soup/pull/1657))- Closed #814: `soup reward stress` tried only four classic junk strings (`empty`, `length`, `repetition`, `sentinel`), none carrying the structure that structure-checking verifiers look for, so the built-in `format` verifier was reported `robust (not gameable)` with exit 0 while `<think></think>a` scores 1.0, and `accuracy`, which scores 0.5 when the expected text appears anywhere in the completion, missed an answer-spray with distractor options. They added structure-preserving families, `wrapped_junk` (think, boxed, JSON and heading scaffolds around padding), `answer_spray` (the gold target among distractors and trailing numbers) and `structure_without_content` (empty schema and tool dictionaries), seven families in all, and made every family produce several distinct variant attempts instead of one string (or one identical string per gold), with `answer_spray` substituting sampled gold answers. **The part worth copying is that the PR shows both directions**: `soup reward stress format` now reports `GAMEABLE` and exits 2, `accuracy --references` flags the spray at 100% acceptance and exits 2, and `verifiable --verifiable-domain math` still reports `robust (not gameable)` and exits 0. The `--attacks` help and `docs/training.md` / `docs/commands.md` name all seven families; the new `tests/test_issue814_reward_stress.py` covers the five acceptance criteria, and `test_v07141.py` and `test_cli_startup_is_light.py` stay green ([#814](https://github.com/MakazhanAlpamys/Soup/issues/814), [#918](https://github.com/MakazhanAlpamys/Soup/pull/918))- Closed #1744: `deploy measure` kept its own copy of the OK / MINOR / MAJOR ladder and compared the raw float drop with the thresholds, so a drop computed from exact task counts could land a hair under its boundary - 19/20 -> 18/20 (`-0.04999999999999993`) was MINOR instead of MAJOR, 47/50 -> 46/50 (`-0.019999999999999907`) was OK instead of MINOR. They deleted the second ladder and made `measure_candidate` call the shared `classify_delta`, which rounds the drop with `round(-delta, 9)` before either comparison (the same rounding change #1743 makes for `soup eval quant-check`), and said in the PR why they chose the shared call over patching the copy. **The part worth copying is that the tests carry the float noise themselves**: they are built from counts, check each case through both the `before_gen` and the `before_score` route, assert the raw delta values, and run the end-to-end `soup deploy autopilot --measure` path with the cache isolated through `SOUP_DEPLOY_AUTOPILOT_CACHE`, so removing the fix fails that test on every run. The fragment states the one limit: caches written before the fix keep their stored verdict until cleared. 17 tests in the new file, 259 passed and 1 skipped across seven related files, and dropping the rounding fails 7 tests; the four cases 1e-7 from a threshold only document where it sits and pass either way ([#1744](https://github.com/MakazhanAlpamys/Soup/issues/1744), [#1748](https://github.com/MakazhanAlpamys/Soup/pull/1748))+ - Closed #1412, reported by @maximilianfeix, which asked that a non-default `training.moe_aux_loss_coeff` is not accepted where nothing applies it: `backend: unsloth` (sft, pretrain) and `training.stream_layers: true`. They made `_validate_moe_flags_reach_a_trainer` refuse it at config load on both, next to the #1394 check, with a message that names the way out, the default 0.01 still loading and `backend: transformers` keeping a non-default value, and put the two cases into the `moe_aux_loss_coeff` row of the docs. **The part worth copying is the default-only carve-out in the tests**: the non-default value is refused, the default written or omitted still loads on both paths, and `backend: transformers` keeps 0.05, so the refusal cannot grow into a blanket ban. They took the review's requests (the credit form `(#1412 by @kok-o in #1749)`, a repaired PR description, the default read once) and the PR acknowledged the claim history on the issue and offered to defer. 11 new tests; 121 related tests pass, and 562 with the existing `moe_aux_loss_coeff` files; dropping the unsloth check fails 2 of the new tests; `moe_aux_loss_coeff: 0` and a `tts` case are not pinned ([#1412](https://github.com/MakazhanAlpamys/Soup/issues/1412), [#1749](https://github.com/MakazhanAlpamys/Soup/pull/1749))- **AmixDigital** ([@Amix29](https://github.com/Amix29))- Gave `soup monitor` a real Apple Silicon path, where it had reported nothing but an NVIDIA-shaped blank since v0.44.1. The security work is the part worth naming: fixed absolute executable paths so `PATH` cannot influence what runs, `sudo -n` that never prompts and never reads a password, stderr pattern-matched for permission markers but never printed, and a parser that returns `[]` against a billion-laughs entity bomb, an XXE `file:///` reference, 5,000-deep nesting and embedded NUL bytes. **Three guards had no test holding them up and they closed all three in twenty minutes** — most importantly the call site that decides which implementation every Linux and Windows user gets, where `if True or detect_apple_silicon()` had left 126 tests passing. Their oversize-payload test had also been asserting on `b"x" * (CAP + 1)`, which is not a valid plist and returns `[]` whether the cap exists or not; they rebuilt it around a valid oversized document. The test file shrank by 18 lines and **every deletion was an upgrade** — membership assertions became adjacency assertions. Asked to confirm the live plist schema, they said plainly that the Mac is not theirs and they cannot authenticate `sudo`, rather than guessing — while confirming the two things they could check against the real binary ([#481](https://github.com/MakazhanAlpamys/Soup/pull/481))@@ -412,6 +413,7 @@ Listed by first contribution. PR numbers link the work.- Closed the abbreviated-IPv4 SSRF bypass one layer out from the `localhost` hole #598 had just fixed — `ipaddress.ip_address()` raises on `127.1`, `2130706433`, `0x7f000001` and `0177.0.0.1`, so the guard returned `False` and treated them as public hostnames. **They answered the question the issue could not**: I had filed it saying I could not tell from a Windows box whether glibc actually resolves those forms, and declined to claim a live bypass. They measured it — glibc 2.39 resolves every one, `2852039166` reaching `169.254.169.254`, while Windows returns `gaierror` for all of them. Using `socket.inet_aton` rather than a hand-rolled parser is the load-bearing choice: across 26 exotic forms the guard and the resolver diverge only *together*, because both track the platform's own parser. They also found and fixed a second bypass nobody had reported (`--slack-url https://2852039166/` reaching cloud metadata through `webhooks.py`) and closed the trailing-dot FQDN form raised as non-blocking. Review found three changelog defects — a direct `CHANGELOG.md` edit that would have published #577 **twice** and added a duplicate `### Fixed` heading, and a fragment filed under **another contributor's** PR number — and all three were gone in one push ([#600](https://github.com/MakazhanAlpamys/Soup/issues/600), [#604](https://github.com/MakazhanAlpamys/Soup/pull/604))- Closed the hostname-indirection bypass in the telemetry SSRF guard: a host that was not a literal IP passed regardless of what it resolved to, so `10.0.0.1.nip.io` (real DNS -> `10.0.0.1`) and `localtest.me` (-> `127.0.0.1`) were both accepted while the literal `10.0.0.1` was refused. **They pushed back on the design before building it, and were right to.** Handed a sketch that resolved every custom endpoint, they pointed out that `socket.getaddrinfo` takes no timeout in Python and that `send_telemetry` calls `httpx.post` synchronously, so an unbounded resolver call would block air-gapped runs — and proposed a tiered design where a trusted allowlist short-circuits before any lookup. Verified by measurement rather than by reading: with `getaddrinfo` patched to raise, the default endpoint still validates with **zero** DNS calls. They also took the one correction handed back — **no `lru_cache`**, because caching a *permissive* verdict for the life of a process means a rebinding attacker need only win once — and they documented the DNS layer as defence in depth rather than as SSRF prevention, which it cannot be across two separate lookups. Each of the three tiers is killed by a named test, and the one place that margin is a single test wide is stated in the merge commit rather than glossed. The self-hosted-PostHog test was **adapted, not deleted** — mocked to a public IP, still asserting `True`, so the self-hoster path stays covered ([#599](https://github.com/MakazhanAlpamys/Soup/issues/599), [#624](https://github.com/MakazhanAlpamys/Soup/pull/624))- Filed #1543 with both causes already diagnosed, each of which checks out against the hub release notes and `refuse_if_data_parallel`, and took it themselves: the proof notebook's install cell pulled `huggingface_hub` 1.32, whose shared blob store soup-cli 0.75.0 refuses (#1509), and the notebook left two CUDA devices visible, so layer streaming refused to start under `nn.DataParallel`. They capped the hub below 1.32 with a comment that says when to drop it and set one visible device before torch is imported. **In the second round they took the guarded `setdefault`, so a caller who chose their own card keeps it, and added the fragment and the two tests the first review asked for.** Only cell 3 changes (outputs identical in all 19 cells); the two new tests are 2 failed / 7 passed on `main`, and 4 of 4 targeted mutations are caught ([#1543](https://github.com/MakazhanAlpamys/Soup/issues/1543), [#1545](https://github.com/MakazhanAlpamys/Soup/pull/1545))+ - Closed #1772 (reported by @taljeon): `eval.calibrate.kl_divergence` floored the candidate probability at `1e-12`, which caps the log ratio near 27.6, so `run_calibration` returned `MINOR` (0.129108187945) for candidate gaps of 60, 115 and 1000 whose true KL is 0.3233, 0.6533 and 5.9633, all above the 0.20 MAJOR boundary. They replaced the floor with a log-sum-exp log-softmax and a direct `P_i * (log P_i - log Q_i)` sum, and the new values match a 120-digit Decimal reference to 3.4e-16 relative. **The part worth copying is what the first review made them close**: two saturated prompts overflowed `sum(per_prompt)` to `inf` and made `classify_kl_delta` raise `ValueError`, and they answered with a clamped mean plus exact-value tests for 2-, 3- and mixed-prompt batches rather than a weaker claim. Restoring the old floor fails 12 of their 34 tests. Two things the tests do not pin are left as known: the `max(0.0, ...)` lower clamp, and three redundant guards ([#1772](https://github.com/MakazhanAlpamys/Soup/issues/1772), [#1780](https://github.com/MakazhanAlpamys/Soup/pull/1780))- **Samarth Mukhija** ([@Samearth17](https://github.com/Samearth17))- First contribution, and it answers the awkward half of #379: the repo could not reproduce its own benchmark records, because most of those harnesses only ever existed in a scratchpad on a machine that is gone. They published the upstream bitsandbytes #2034 NF4 reproducer as a standalone, download-free script and left the methodology and the existing table row untouched — a reproducibility slice that reproduces, rather than a rewrite. **Review blocked on the one thing that matters for a harness: it exited `0` whether or not the defect was present**, so it could not distinguish the mechanism it claims to demonstrate from a machine where nothing is wrong. They fixed it in both directions — an explicit `--bypass-pool` negative control, *and* an ordinary invocation that now requires the NF4 mismatch, so a removed `pool.acquire()` fails instead of passing quietly. Verified on real CUDA at merge: normal run reproduces on 6/8 layers with the bf16 control clean on 8/8; cutting `pool.acquire()` exits 1 on the merged head and exited **0** on the pre-fix commit. They also said plainly that they could not run it themselves — no GPU — instead of implying they had ([#589](https://github.com/MakazhanAlpamys/Soup/pull/589))@@ -636,6 +638,7 @@ Listed by first contribution. PR numbers link the work.- `task: distill` with `backend: unsloth` validated, loaded and trained on plain transformers, because nothing in the distill path reads the backend. `soup train --dry-run` even printed `Backend: unsloth (fast mode)` for a run that never touched it. It is now refused at config load, next to the `mlx` refusal, with a message that names the reason and points at `backend: transformers`. That one check covers `soup train`, `soup doctor --config` and `soup sweep`. **They checked the shipped configs before refusing anything**, which is the step #1186 asked for and the easiest one to skip. On the second round they ran the review's exact mutation before saying it was fixed. All 207 shipped configs still load, and 6 of 7 mutations fail tests ([#1186](https://github.com/MakazhanAlpamys/Soup/issues/1186), [#1193](https://github.com/MakazhanAlpamys/Soup/pull/1193))- The error handler printed exception text as Rich markup, so install hints lost their `[extra]`, control bytes reached the terminal, and an error containing `[/]` crashed the handler; every print site, including both `--verbose` traceback panels, now goes through `for_terminal` ([#1200](https://github.com/MakazhanAlpamys/Soup/issues/1200), [#1202](https://github.com/MakazhanAlpamys/Soup/pull/1202))- `training.expand_layers` (LLaMA Pro block expansion) was accepted on a quantized base, where the appended blocks start as `-absmax` instead of zeros under NF4 and a positive `freeze_trainable_layers` crashes on integer weights. They refused it at config load in a `SoupConfig` validator. **When a reviewer showed their first placement ran before the #795 quantization resolver and refused configs that load unquantized on eight tasks, they moved the check behind it and took the test patch as written.** After #1390 and #1399 landed they rebased onto one commit with the scope refusal first, so a config that is out of scope and quantized gets the scope reason. Verified: 247 passed on the three files (1616 across 22 related files), and all 10 mutations of the check fail a test ([#1237](https://github.com/MakazhanAlpamys/Soup/issues/1237), [#1308](https://github.com/MakazhanAlpamys/Soup/pull/1308))+ - Took back item 3 of #1186 (the issue stays open for items 1 and 2): `soup train` printed "unsloth is installed. Add backend: unsloth" for tasks where that line is refused at config load. #1746 fixed the behaviour first (by asking the schema whether the config would still load on unsloth), so they rebased onto main, dropped their `train.py`, docs and changelog-fragment changes, and kept the tests. **The part worth copying is the order inside each test**: it asserts that the "Training Setup" panel was printed before it looks at the tip, so a config that failed to load cannot pass for "no tip". Three `soup train --dry-run` tests (the tip is printed for `sft`, not for `distill` or `classifier`) with the check stubbed; replacing the gate by `cfg.backend == "transformers"` fails the `distill` and `classifier` cases, and five more mutations of `_unsloth_tip_applies` and `_loads_on_unsloth` are each caught. The dry runs end in a "no training rows" exit 1 after the tip, so the exit code is not asserted, and the same three scenarios are also covered by #1746's tests ([#1186](https://github.com/MakazhanAlpamys/Soup/issues/1186), [#1782](https://github.com/MakazhanAlpamys/Soup/pull/1782))- **00200200** ([@00200200](https://github.com/00200200))- First contribution. The backend-support guard harvested field names with `re.findall(r"\b(?:training|data)\.[a-z_]+", ...)`, which **stops at the first digit** — so `training.use_fsdp2_compile` was harvested as `training.use_fsdp` and `training.bnb_4bit_use_double_quant` as `training.bnb_` ([#964](https://github.com/MakazhanAlpamys/Soup/issues/964)). The guard then compared an **invented** name against the registry, so for any field with a digit in it it could neither confirm a real entry nor catch a missing one. Widening the character class is the obvious half; the half that matters is what they added beside it — every harvested name is cross-checked against the real `TrainingConfig` / `DataConfig` `model_fields`, failing with *warning list names fields that do not exist*. **A widened regex that starts inventing a different wrong name is no better than the narrow one it replaced**, and that check is the whole difference. A competing patch carried the widening without it. Unblocks #961 and #965. ([#966](https://github.com/MakazhanAlpamys/Soup/pull/966))@@ -842,6 +845,8 @@ Listed by first contribution. PR numbers link the work.- `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))- Closed #1731, their own report: `training.quantization: fp8` on transformers 5.16.1, Soup's declared floor, died inside transformers (`AttributeError: 'NoneType' object has no attribute 'get'` in the FP8 quantizer's `update_tp_plan`) for any base without MegaMoE experts. They reproduced it on real 5.16.1, 5.17.0 and 5.18.0, took the ruling (refuse at loader-build time, no floor change inside a bug fix), waited for #1729 to land as agreed, then made the `fp8` branch refuse below 5.17.0 with a message naming the installed version, the required one, the upstream reason and the upgrade command, and put the same minimum into the `>= 4.45` ImportError text and the Quant Menu row. **The part worth copying is the stated limits**: the version is compared as a version (5.9.0 and 5.16.10 are older, a pre-release of 5.17.0 is refused), and the PR says it did not check which pre-release first carried the fix and has not shown that an fp8 base with MegaMoE experts fails on 5.16.1 although it now refuses it. They also moved the two FP8 load tests of #1652 onto the same constant so the two changes cannot disagree. 22 tests (12 fail on `main`), 117 passing with the #1652 file, 2237 across 38 related files, and every comparison mutation including the exact-5.17.0 boundary killed ([#1731](https://github.com/MakazhanAlpamys/Soup/issues/1731), [#1745](https://github.com/MakazhanAlpamys/Soup/pull/1745))- Closed #1736, their own report: with unsloth installed, `soup train` told every run on `backend: transformers` to add `backend: unsloth`, including configs the loader refuses as soon as that line is added, so 38 of the 184 shipped templates and recipes on transformers (30 `moe_lora`, 3 `asr`, the 2 that set `rope_scaling_type`, 3 more) got a tip they would be refused with. They sized the problem on the issue by loading and re-validating every shipped config, then made the tip depend on re-validating the dumped config with `backend: unsloth`, so a new backend refusal needs no list in `train.py`; only the second pass's `ValidationError` means no, the availability check comes first, and the config it is given is not changed. **The part worth copying is how the tests close the loopholes**: the second validation is checked on every shipped config for stdout, warnings, DEBUG logs and eight filesystem calls with spies that call through (a raising trap had broken pytest's own reporting), and the dry-run tests assert the run reached its last line, because a crashed run also prints no tip. They report that two of their 11 mutations survived the first version of the tests and were fixed. 47 tests fail with the helper always answering yes, and a recount over the shipped configs gives 184 on transformers, 146 keeping the tip and 38 not ([#1736](https://github.com/MakazhanAlpamys/Soup/issues/1736), [#1746](https://github.com/MakazhanAlpamys/Soup/pull/1746))+ - Took the `dpo` / `ipo` half of #1425 (the issue stays open): a `preference_loss_weights` blend naming either loss stopped at step 0, because both build trl's `DPOTrainer`, which computes its log-probs inline and keeps only their means. They measured trl's own losses on the issue's tiny Llama first (5.8290 for `ipo` against 6.8886 from the summed kernel), then wrapped the trainer's `compute_loss` so the policy sums come from its own forward pass and the reference sums from `compute_ref_log_probs`, and made the blend's `ipo` term divide by response length as trl does. **The part worth copying is the test design**: every term is rebuilt in the test from a separate forward pass with a plain `log_softmax`, so no test reads the capture to check the capture, and the blend's `ipo` term is compared with trl's own IPO loss. They reported 38 mutations of the first version, three of which survived and each got a test, and after review added the missing `_truncate_inputs` probe with a test per method name, so a trl that renames one gets the refusal instead of an `AttributeError`. 60 tests; 212 passed with the neighbouring preference files on the final head, and 19 mutations rerun on that head each fail a named test. Item 3 follows as its own PR ([#1425](https://github.com/MakazhanAlpamys/Soup/issues/1425), [#1785](https://github.com/MakazhanAlpamys/Soup/pull/1785))+ - Closed #1768, reported by @bobbonauta: a resumed `dpo`, `ipo` or `grpo` run restored the optimizer and the step counter but trained a freshly initialised adapter, because TRL adds a frozen `ref` adapter beside the trained `default` one and `Trainer._load_from_checkpoint`, finding an adapter subfolder (`ref/`), never reads the adapter at the checkpoint root. They claimed the issue with a CPU reproduction on a tiny Llama, measured every task that hands a `PeftModel` to TRL (dpo, ipo, `preference` with either loss and grpo are affected; `grpo_beta: 0`, orpo, simpo, bco, kto, sft and reward_model are not), and added `reload_root_adapter_on_resume`, installed in the three wrappers before the dtype restore of #1660. **The part worth copying is the premise test**: one test runs PEFT and the real `Trainer._load_from_checkpoint` without TRL and asserts that the Trainer alone leaves `default` new, with a failure message that says to remove the helper when transformers starts reading the root itself. They report 27 mutations that all fail a test, two surviving conditions removed from the code, and what they could not run (any GPU, `online_dpo`, unsloth, `stream_layers`). A review round on `718e5aed` got 11 of 11 mutations failing a named test and 176 passed with 1 skipped over the four related files ([#1768](https://github.com/MakazhanAlpamys/Soup/issues/1768), [#1797](https://github.com/MakazhanAlpamys/Soup/pull/1797))- **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))@@ -851,6 +856,7 @@ Listed by first contribution. PR numbers link the work.- `validate_stripe_root` refused a file given as a stripe entry, but no test named a file as an entry, so changing `isdir` to `exists` left the whole stripe suite green. They claimed #1674 with the file and the behaviour named, then added the one test that passes an existing file and asserts `StripeRootError` matching "existing directory"; the `isdir` -> `exists` mutation fails only that test (1 failed, 154 passed) and survives without it (154 passed, 6 skipped) ([#1674](https://github.com/MakazhanAlpamys/Soup/issues/1674), [#1676](https://github.com/MakazhanAlpamys/Soup/pull/1676))- First contribution: `soup merge --save-format 4bit_forced` passed `bnb_4bit_skip_modules=[]`, which `BitsAndBytesConfig` does not accept, so transformers kept skipping `lm_head` and the forced format wrote the same checkpoint as plain `4bit`. They pass `llm_int8_skip_modules=[]` instead and drop the dead kwarg. Models with tied embeddings, whose 4-bit `lm_head` would break on the first forward pass, are now refused by name before the 4-bit reload and before any output is written. Plain `4bit` still merges them. 270 passed, 12 skipped; 4 new or edited tests fail on `main`; 5 of 6 mutations fail a test ([#1448](https://github.com/MakazhanAlpamys/Soup/issues/1448), [#1606](https://github.com/MakazhanAlpamys/Soup/pull/1606))- The striped layer-streaming disk pre-flight split the shard estimate evenly across the roots, so the primary drive, which also holds the embedding, head and extras, was under-charged. They charged each root the bytes it will receive, read from the source safetensors headers with no tensor loads, put the non-decoder bytes on root 0 at the streaming dtype, and kept the even split, marked approximate, for an unreadable header and for `qwen4_exp`. **Over three review rounds they turned a red end-to-end test green, excluded tables the sharder never writes, and added the tests for every mutation that survived**; twelve mutations now each fail a named test, and on disk the charged shares are 1.003x the bytes that land ([#1612](https://github.com/MakazhanAlpamys/Soup/issues/1612), [#1726](https://github.com/MakazhanAlpamys/Soup/pull/1726))+ - Closed #1762: `utils.demo_bundles.copy_bundle_to` refused any `output_path` outside the process working directory, so an app with its own workspace (Soup Zero) had to call the private `_bundle_source_path` and lost the per-line JSON check, the size cap and the staged write. They took option 1 of the issue, a keyword-only `root` that defaults to the working directory, and reused the shared `is_under` helper (realpath + commonpath) for it. **The part worth copying is what they did when the review replaced `is_under` with a lexical `startswith` and all 41 tests still passed**: they added three boundary tests (a `..` traversal, a sibling directory `root2` next to `root`, and a directory symlink inside `root` that leads outside, asserting the target file was not created) and documented that `root=""` is refused while `root=Path("")` means the working directory, with a test. Ten mutants of the function each fail named tests and none survive; 146 passed across the touched and related files ([#1762](https://github.com/MakazhanAlpamys/Soup/issues/1762), [#1767](https://github.com/MakazhanAlpamys/Soup/pull/1767))- **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))