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(changelog): drop the retired --alpha + --beta check from the #1419 fragment (#1635)
Abdulwaarith Zakariyya60d07c924c35
diff --git a/changelog.d/0.75.1/1378.fixed.md b/changelog.d/0.75.1/1378.fixed.mdindex 04747c9d..1d19c08e 100644--- a/changelog.d/0.75.1/1378.fixed.md+++ b/changelog.d/0.75.1/1378.fixed.md@@ -1,2 +1,2 @@-- **`soup ab` now refuses `--alpha` + `--beta` at or above 1, where two identical arms could "reject" H0 (#1339 by @qwist1233-cpu in #1378).** Each rate was checked in (0, 1) on its own, but the reject boundary `log((1 - beta) / alpha)` stays above the accept boundary `log(beta / (1 - alpha))` only while their sum is below 1. Past that there is no `continue` band left, and because reject is tested first, every verdict in the gap rejected: `--alpha 0.6 --beta 0.5` reported `reject_h0` with `direction worse` on two byte-identical arms, and `--beta 0.95` (a power of 0.95 typed as beta) rejected a true H0 in a quarter of single looks. The command now exits 2 naming both values, and the `--beta` help plus the evaluation guide state the bound and that beta is the Type-II error rate, not the power.+- **`soup ab` no longer rejects H0 on two identical arms when `--alpha` + `--beta` is 1 or more (#1339 by @qwist1233-cpu in #1378).** Each rate was checked in (0, 1) on its own, but the reject boundary `log((1 - beta) / alpha)` stays above the accept boundary `log(beta / (1 - alpha))` only while their sum is below 1. Past that there is no `continue` band left, and because reject is tested first, every verdict in the gap rejected: `--alpha 0.6 --beta 0.5` reported `reject_h0` with `direction worse` on two byte-identical arms, and `--beta 0.95` (a power of 0.95 typed as beta) rejected a true H0 in a quarter of single looks. #1378 refused those pairs, but that refusal does not ship: #1575 retires `--beta` in the same release. The reject boundary is now `log(1 / alpha)` and the accept rule no longer uses `beta`, so there are no boundaries left to cross: two identical arms never reject, and a passed `--beta` is ignored with a warning.- **`soup ab` names `--effect-size` instead of exiting on a bare `OverflowError` (#1339 by @qwist1233-cpu in #1378).** The drift term squares the standardised effect `--effect-size / pooled standard error`, and `**` raises `OverflowError` where `*` would return infinity, so a huge `--effect-size` ended the run on `Error: OverflowError: (34, 'Result too large')` with no flag named. The ratio is now bounded before it is squared, and the message carries the flag, the ratio and the standard error measured. Because it is the ratio that overflows, a near-constant metric column reached this at the default `--effect-size` too, and is named as well.diff --git a/changelog.d/0.75.1/1419.changed.md b/changelog.d/0.75.1/1419.changed.mdindex 59b3c812..eb8ff776 100644--- a/changelog.d/0.75.1/1419.changed.md+++ b/changelog.d/0.75.1/1419.changed.md@@ -1 +1 @@-- **`soup ab` now decides with a variance-robust statistic, with no burn-in, and `accept_h0` can take longer to reach when there is no difference (#1265 by @abdulwaarith0 in #1419).** The two-sided mSPRT from #1227 estimated the variance from the rows, so it needed a burn-in of 30 or 40 rows per arm, was calibrated only up to 1000 rows and down to `--alpha 0.01`, and still sat near 0.011 at 0.01. The normal-inverse-gamma Bayes factor that replaces it depends on the rows only through the t statistic, so its false-positive rate stays at most `--alpha` however often you re-run it, from 7 rows per arm and at any number of rows: the worst simulated rate is 0.033 at `--alpha 0.05` and 0.0066 at 0.01. The first 5 rows per arm set the scale for `--effect-size` and show in the table as `prior_scale`; the burn-in table, the 1000-row limit and both calibration warnings are gone. This is not a pure speed-up. When the arms are the same, `accept_h0` takes several times as many rows as before (about 281 pairs against 43 at an `--effect-size` of 0.5 standard deviations), and at small effect sizes it may not arrive within 1000; `docs/evaluation.md` has the full table, and a faster accept rule is #1418. Part of the old speed was wrong answers: under a real difference of 0.3 standard deviations, the old test ended about 18% of runs in `accept_h0`, against under 0.4% now on simulated Gaussian rows. When the first rows barely vary (a warm cache, or a judge that gives 1.0 early), `accept_h0` waits as `continue` while the tested rows spread more than 3 times as much as the held-out ones, since that start made nearly every run accept H0 with or without a difference; a `reject_h0` is never held back, so the false-positive bound is unchanged. The `--alpha` + `--beta` < 1 check from #1339 stays, with its reason restated for the new accept boundary, and the #1339 and #1384 refusals of values a float cannot carry cover the new statistic too: it is never compared with the boundaries unless it is finite.+- **`soup ab` now decides with a variance-robust statistic, with no burn-in, and `accept_h0` can take longer to reach when there is no difference (#1265 by @abdulwaarith0 in #1419).** The two-sided mSPRT from #1227 estimated the variance from the rows, so it needed a burn-in of 30 or 40 rows per arm, was calibrated only up to 1000 rows and down to `--alpha 0.01`, and still sat near 0.011 at 0.01. The normal-inverse-gamma Bayes factor that replaces it depends on the rows only through the t statistic, so its false-positive rate stays at most `--alpha` however often you re-run it, from 7 rows per arm and at any number of rows: the worst simulated rate is 0.033 at `--alpha 0.05` and 0.0066 at 0.01. The first 5 rows per arm set the scale for `--effect-size` and show in the table as `prior_scale`; the burn-in table, the 1000-row limit and both calibration warnings are gone. This is not a pure speed-up. When the arms are the same, `accept_h0` takes several times as many rows as before (about 281 pairs against 43 at an `--effect-size` of 0.5 standard deviations), and at small effect sizes it may not arrive within 1000; `docs/evaluation.md` has the full table, and #1575 in this release replaces the accept rule, which brings that down to 117 pairs. Part of the old speed was wrong answers: under a real difference of 0.3 standard deviations, the old test ended about 18% of runs in `accept_h0`, against under 0.4% now on simulated Gaussian rows. When the first rows barely vary (a warm cache, or a judge that gives 1.0 early), `accept_h0` waits as `continue` while the tested rows spread more than 3 times as much as the held-out ones, since that start made nearly every run accept H0 with or without a difference; a `reject_h0` is never held back, so the false-positive bound is unchanged. The `--alpha` + `--beta` < 1 check from #1339 does not ship: #1575 retires `--beta` in the same release. The #1339 and #1384 refusals of values a float cannot carry cover the new statistic too: it is never compared with the boundaries unless it is finite.