What's New
Every training task now uses every speed/memory feature — finishing what v0.28, v0.30, and v0.33 started.
- v0.28 features wired into 8 more trainers —
use_cut_ce,quantization_aware="fp8",kernel_auto_compose, andactivation_offloadingare now live across DPO, GRPO, KTO, ORPO, SimPO, IPO, PPO, Reward-Model, and Embedding (in addition to SFT and Pretrain). The schema-gate that previously rejected these flags on non-SFT trainers is lifted; only the Apple Silicon MLX backend still rejects them (no equivalent kernels). (closes #60) - Auto-quant actually swaps the model —
soup serve --auto-quantnow forwards the picked candidate's quantization (awq/gptq/fp8) to the vLLM engine via an explicitquantizationparameter, rather than printing the choice and serving the original fp16. Includes a fallback queue so a missing AWQ kernel automatically falls back to the next-highest-scored candidate instead of crashing the bind. (closes #61) - Kernel benchmark warm-up runs inside the trainer — when
kernel_auto_compose=True, Soup now runs a forward-only timing loop on the trainer's actual model to feed real measurements intopick_best_kernel. Forward-only undertorch.no_grad()so the live training model's gradients are NOT polluted (a critical-class bug caught and fixed pre-tag). (closes #45) - fp8 / int8 QAT guard — six trainer wrappers (GRPO / KTO / ORPO / SimPO / IPO / PPO) had
if tcfg.quantization_aware:without excluding"fp8", which would silently route the FP8 string into the legacy int8 QAT path. Fixed. - 40-case smoke matrix — every trainer × every v0.28 feature is exercised on every CI matrix job. No more "wired in theory, broken in practice" risk.
- Distinct error messages — schema-gate rejection now names the actual reason (MLX backend vs unknown task) so you don't waste time blaming MLX for a non-MLX failure.
Install / Upgrade
pip install --upgrade soup-cliOr via Docker:
docker pull ghcr.io/makazhanalpamys/soup:v0.35.0Security
quant_name_to_vllm_kwargsallowlist — vLLMquantizationis now an explicit named parameter oncreate_vllm_engine(not a**kwargssplat from_serve_vllm) and is validated against the closed allowlist{awq, gptq, fp8}. The earlier kwarg-splat path could have leaked arbitraryAsyncEngineArgsfields to the engine constructor.try_reload_with_fallbackerror redaction — when every candidate fails to load, theRuntimeErrormessage includes onlytype(last_error).__name__ + ": " + str(last_error)instead ofrepr(last_error)(which would embed$HOME-prefixed checkpoint paths).activation_offloading_contextreducesoutput_dirtoos.path.basenamein itsValueErrorso absolute paths don't leak (matches the v0.34.0crash.pypolicy).benchmark_kernel_combosrejectsboolin numeric kwargs (batch_size,seq_len,num_steps,vocab_size) and clamps the bounds (bs ≤ 32,sl ≤ 512,steps ≤ 50,vocab ≤ 200_000) so a misconfigured caller cannot OOM CI.
Known Limitations
- #23, #39, #40, #41 — still infra-blocked (paid
macos-14ARM runner /torch.distributed.pipeliningmaturity / 2-machine validation hardware / 4×A100 budget). Carry-overs from v0.33.0 / v0.34.0. - #46 — owned by external contributor on FP8 row-wise + delayed-scaling recipes; not in our queue.
- License — Apache-2.0 advisory for downstream redistributors (
NOTICEretention per §4(d)). Design choice, not a tracked issue. - Kernel benchmark is forward-only by design — relative ordering between kernel combos is preserved; full forward+backward timing would require model cloning to avoid gradient pollution. Future enhancement, not a tracked issue.
Net +187 tests (3928 → 4115). All four review-agent waves (python / code / security / tdd) clean with every CRITICAL→LOW finding fixed before tag.