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): credit and wording fixes in five 0.76.0 fragments [skip ci]
Alpamys8d5b409893c3
diff --git a/changelog.d/0.76.0/1778.fixed.md b/changelog.d/0.76.0/1778.fixed.mdindex f19ab5fd..52d84ea3 100644--- a/changelog.d/0.76.0/1778.fixed.md+++ b/changelog.d/0.76.0/1778.fixed.md@@ -1 +1 @@-- Honor `training.gradient_checkpointing` in the TRL/HF arguments for GRPO, IPO, BCO, reward-model, online-DPO, pretrain and embedding, including unquantized runs. Preserve the full-checkpointing fallback for enabled tiers. (#797 by @Amix29 in #1778)+- Honor `training.gradient_checkpointing` in the TRL/HF arguments for GRPO, IPO, BCO, reward-model, online-DPO, pretrain and embedding, including unquantized runs. Preserve the full-checkpointing fallback for enabled tiers. Behaviour change: with the default `gradient_checkpointing: false`, GRPO, IPO, BCO, reward-model and online-DPO now train with checkpointing off, where TRL's own default (`true`) used to apply; set `gradient_checkpointing: true` to keep it. (#797 by @Amix29 in #1778)diff --git a/changelog.d/0.76.0/1779.fixed.md b/changelog.d/0.76.0/1779.fixed.mdindex bf38885f..98e0836c 100644--- a/changelog.d/0.76.0/1779.fixed.md+++ b/changelog.d/0.76.0/1779.fixed.md@@ -1 +1 @@-- **Non-finite eval-gate baselines are now refused at read, write, and gate boundaries instead of silently passing (#1773 in #1779).** `resolve_baseline`, `stamp_baseline_scores`, `write_baseline_file`, and `run_gate` now require scores to be finite numbers; `NaN`, `+inf`, and `-inf` (including JSON numeric overflows such as `1e999` and `-1e999`) raise a `ValueError` naming the offending task. In `soup eval gate`, invalid baselines exit with code 3 (`EXIT_USAGE_ERROR`) before evaluating tasks or reporting a verdict, rather than printing `GATE PASSED` or misdiagnosing positive overflow as a regression.+- **Non-finite eval-gate baselines are now refused at read, write, and gate boundaries instead of silently passing (#1773 by @here-2007 in #1779).** `resolve_baseline`, `stamp_baseline_scores`, `write_baseline_file`, and `run_gate` now require scores to be finite numbers; `NaN`, `+inf`, and `-inf` (including JSON numeric overflows such as `1e999` and `-1e999`) raise a `ValueError` naming the offending task. In `soup eval gate`, invalid baselines exit with code 3 (`EXIT_USAGE_ERROR`) before evaluating tasks or reporting a verdict, rather than printing `GATE PASSED` or misdiagnosing positive overflow as a regression.diff --git a/changelog.d/0.76.0/1780.fixed.md b/changelog.d/0.76.0/1780.fixed.mdindex 4e5647da..9833e2e8 100644--- a/changelog.d/0.76.0/1780.fixed.md+++ b/changelog.d/0.76.0/1780.fixed.md@@ -1 +1 @@-- **KL calibration probability calculation now uses numerically stable log-softmax without artificial flooring (#1772 in #1780).** `eval.calibrate.kl_divergence` previously floored candidate probabilities at `1e-12` before taking logarithms, which truncated large logit divergences (gaps > ~27.6) and caused `run_calibration` to return `MINOR` when the actual divergence exceeded the documented `MAJOR` threshold (>= 0.20). KL divergence is now evaluated directly using stable log-probabilities via `_log_softmax`, preserving monotonic scaling for large divergence gaps without underestimating quant-calibration deltas.+- **KL calibration probability calculation now uses numerically stable log-softmax without artificial flooring (#1772 by @here-2007 in #1780).** `eval.calibrate.kl_divergence` previously floored candidate probabilities at `1e-12` before taking logarithms, which truncated large logit divergences (gaps > ~27.6) and caused `run_calibration` to return `MINOR` when the actual divergence exceeded the documented `MAJOR` threshold (>= 0.20). KL divergence is now evaluated directly using stable log-probabilities via `_log_softmax`, preserving monotonic scaling for large divergence gaps without underestimating quant-calibration deltas.diff --git a/changelog.d/0.76.0/1828.added.md b/changelog.d/0.76.0/1828.added.mdindex 0eb23fba..50d6ba99 100644--- a/changelog.d/0.76.0/1828.added.md+++ b/changelog.d/0.76.0/1828.added.md@@ -1,5 +1,5 @@- **A `dpo` or `ipo` term in a `preference_loss_weights` blend now also trains when the largest- weight is `simpo` or `orpo` (#1425 by @ybai08 in #1828).** Those primaries build trl's CPO and+ weight is `simpo` or `orpo`.** Those primaries build trl's CPO andORPO trainers, which run no frozen reference, so a blend such as `{simpo: 0.6, dpo: 0.4}`stopped at the first step. The blend now makes the reference itself: the trainer's own forwardonce more per step, without gradients and with the LoRA adapter switched off, which is the base@@ -10,4 +10,4 @@with the BOS token where the `DPOTrainer`'s need not, so the same `dpo` term differs a littlebetween a `simpo` and a `dpo` primary; `docs/training.md` says which reference and which tokenseach primary uses. Try: `soup train --config soup.yaml` with `task: preference` and- `training.preference_loss_weights: {simpo: 0.6, dpo: 0.4}`.+ `training.preference_loss_weights: {simpo: 0.6, dpo: 0.4}`. (#1425 by @ybai08 in #1828)diff --git a/changelog.d/0.76.0/1836.changed.md b/changelog.d/0.76.0/1836.changed.mdindex 2988de7a..274d2bc4 100644--- a/changelog.d/0.76.0/1836.changed.md+++ b/changelog.d/0.76.0/1836.changed.md@@ -1 +1 @@-- **Polished the Simplified Chinese wording for the post-#331 8B NF4 README figures (#1207 by @Momoyeyu in #1836).** `README.zh.md` now uses clearer wording for the clock-adjusted comparison and the two measurement rows; all numbers, links and code spans are unchanged.+- **Polished the Simplified Chinese wording for the post-#331 8B NF4 README figures.** `README.zh.md` now uses clearer wording for the clock-adjusted comparison and the two measurement rows; all numbers, links and code spans are unchanged. (#1836 by @Momoyeyu)