github MakazhanAlpamys/Soup v0.35.0
v0.35.0 — Trainer Coverage

latest releases: v0.78.1, v0.78.0, v0.77.2...
7 months ago

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, and activation_offloading are 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-quant now forwards the picked candidate's quantization (awq / gptq / fp8) to the vLLM engine via an explicit quantization parameter, 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 into pick_best_kernel. Forward-only under torch.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-cli

Or via Docker:

docker pull ghcr.io/makazhanalpamys/soup:v0.35.0

Security

  • quant_name_to_vllm_kwargs allowlist — vLLM quantization is now an explicit named parameter on create_vllm_engine (not a **kwargs splat from _serve_vllm) and is validated against the closed allowlist {awq, gptq, fp8}. The earlier kwarg-splat path could have leaked arbitrary AsyncEngineArgs fields to the engine constructor.
  • try_reload_with_fallback error redaction — when every candidate fails to load, the RuntimeError message includes only type(last_error).__name__ + ": " + str(last_error) instead of repr(last_error) (which would embed $HOME-prefixed checkpoint paths).
  • activation_offloading_context reduces output_dir to os.path.basename in its ValueError so absolute paths don't leak (matches the v0.34.0 crash.py policy).
  • benchmark_kernel_combos rejects bool in 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-14 ARM runner / torch.distributed.pipelining maturity / 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 (NOTICE retention 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.

Don't miss a new Soup release

NewReleases is sending notifications on new releases.