Skip to content

CLI Reference

This page covers the v0.78.0 binary: 80 top-level commands, 30 of them groups with subcommands, and the global flags at the end. v0.78.0 adds two top-level commands, soup docs (a group, with search) and soup prune-layer-cache, and four subcommands (soup data leakage, soup eval retention, soup loop set and soup loop rollback): 7 new help screens and 23 changed, 261 in all, and about seventy new options, collected under v0.78.0: new commands, new options and changed behaviour. Before it, v0.77.2 added no command. It adds soup profile --model, with six options that go with it, and --minillm-on-policy to soup plan and soup apply, and it rewrites the help text of soup serve --tool-auth-token, soup train --gpu, soup adapters bisect --eval-command, soup apply --dry-run, soup mcp serve --allow-mutating and --allow-execute, and the one-line description of soup ab: 9 of the 254 help screens changed, and the behaviour changes of the release are collected under v0.77.2: new options and changed behaviour. v0.77.1 added no command and two options, soup infer --backend and soup ship --progress; every other --help screen was the v0.77.0 one, and its behaviour changes are collected under v0.77.1: two new options and changed behaviour. v0.77.0 added no command either. It added options to eight (soup --version, soup compile-tools, soup export, soup loop init, soup loop watch, soup merge, soup registry push and soup ship), gives soup train --cloud a third provider, and removes AWQ and GPTQ export; those changes are collected under v0.77.0: new, changed and removed flags. Since v0.77.0 upstream also generates a complete reference of every command, option, type and default from the code, docs/cli-reference.md at v0.78.0: use it as the exhaustive list. This page is the curated index, with the behaviour notes and exit codes the generated page does not carry. The generated page renders the --help strings as they are. (Since closed in v0.77.2: the soup mcp serve --allow-mutating and --allow-execute help strings said through v0.77.1 that execution never happens, and both now describe the execution tools, see MCP server.) Six commands are new in v0.76.0 (soup rewind, soup bench train, soup data clean, soup recipes verify, soup adapters check and soup adapters audit), and soup bench became a group whose infer subcommand is the old inference benchmark; they and every other v0.76.0 change are collected under v0.76.0: new commands and flags, and Every top-level command is an index with the page that documents each one.

Exit codes are defined per command, not uniformly across Soup. Since v0.76.0 eleven gate and verdict commands share one taxonomy (v0.78.0 adds soup eval retention and soup data leakage, which read the same way; upstream's own list still names the eleven): 0 pass, 2 gate failure, regression or drift, 3 usage or input error, and a mistyped flag on one of them is 3 as well. Every other command keeps its own scheme (a few individual codes moved too, see what moved), and a mistyped flag on those is still 2. A CI step that tests for exit 1 as "the gate failed" now lets a failing gate through (what moved). Exit codes lists what each command returns.

Core Commands

soup init

Create a config file with interactive wizard or template.

bash
soup init [--template <template>] [--output <path>]

soup train

Start a training run.

bash
soup train [--config <path>] [--resume auto|<checkpoint>] [--wandb] [--tensorboard] \
           [--deepspeed zero2|zero3|zero2_offload|zero3_offload|zero++|zero_pp] [--fsdp full_shard|shard_grad|full_offload] \
           [--gpus auto|<N>] [--nodes <N> --node-rank <R> --master-addr <host> [--master-port <port>]] \
           [--no-reexec] [--gate <suite>] \
           [--push-as <user/repo> [--push-public]] [--hf-resume] [--yes]
  • --gpus (v0.27) — GPUs per node for distributed training (auto or an integer): Soup detects NVLink vs PCIe and re-launches under accelerate launch. Since v0.76.0 it exits with the launcher's exit code on every platform; on Windows it now waits for the launcher (through v0.75.2 the call returned 0 at once). --no-reexec prints the launch command instead of launching it and exits 1 (it does not exit 1 when --dry-run is also given).
  • --nodes, --node-rank, --master-addr, --master-port (v0.76.0) — multi-node Accelerate launch. --nodes above 1 requires --gpus (GPUs per node, the same on every node) and --master-addr; --master-port defaults to 29500. A launch-setting mistake exits 1 with Invalid distributed launch: .... See multi-node launch.
  • --deepspeed zero++ (v0.27) — ZeRO-3 with quantized weights & grads
  • --gate (v0.26) — run an eval suite at epoch boundaries and halt on regression. Since v0.78.0 it is refused with exit 1, before the model is built, on backend: mlx and on task: prm, unlearn and moe_lora_routing (those paths attach no gate callback and used to train without one, #2564), and a training.eval_gate.suite or --gate suite that cannot be loaded stops the run before any data is loaded (#2264); see Settings Soup refuses at load
  • --push-as (v0.29) — auto-push every save_steps checkpoint to HF Hub as a checkpoint-<N> branch. Since v0.78.0 (#2802) a repository that this flag creates is private, where v0.77.2 created it public; an existing repository is used as it is and its visibility is not changed. When the Hub refuses to create the private repository, the message tells you to pass --push-public
  • --push-public (v0.78.0) — create the --push-as repository public instead of private. It requires --push-as (without it the command exits 1, --dry-run included) and does not change the visibility of a repository that already exists
  • --hf-resume (v0.29) — pull the latest checkpoint branch from HF Hub and resume training
  • --resume and --hf-resume are refused on task: ppo since v0.78.0 (#2772): soup train --resume is not supported for task 'ppo': trl's PPOTrainer.train() takes no checkpoint, so the run would start over from step 0 and write over the files in the output directory ..., exit 1, before the data is read and under --dry-run too. Upstream's changelog says v0.77.2 warned, started from step 0 and wrote over the output. soup train --help still names only training.relora_steps for these two options
  • --cloud modal|lambda|runpod with --gpu <type> and --cloud-submit — plan-only unless you add --cloud-submit; see serverless cloud training. Each provider has its own --gpu list; for RunPod it is a100 (the default), h100, a40, rtx3090 and rtx4090. --cloud runpod is new in v0.77.0 (it was refused through v0.76.x): plan-only by default it writes a stub and contacts nothing, and --cloud-submit needs RUNPOD_API_KEY and RUNPOD_SSH_PRIVATE_KEY (a path to the private key, with its .pub beside it) and otherwise exits 1. It has not been run against a real RunPod account yet (tracked as #2098). Upstream states that it makes one attempt, copies the results back once with a 15-minute limit into a new directory next to the output path, deletes the Pod afterwards, and does not upload local input files, so the base and the data must be reachable from the Pod; see RunPod. Any other --cloud value exits 2 with Invalid --cloud. Since v0.78.0 the plan refuses what a cloud run cannot reach (exit 2): a config that names a local input (Cloud plan failed: --cloud ships only the config: data.train would leave local files behind ... Use a Hugging Face Hub dataset id instead, or run locally. See issue #1430.; run with a local data.train, and the code also covers the image, audio and video directories, a replay set, a reward .py, an eval-gate suite or baseline and a local model path), and --push-as or --gate together with --cloud (--push-as is not supported with --cloud: ...). The shipped stub now embeds the effective config, with every command-line override applied, so --reward-hack-detector, --minillm-on-policy, --replay and the like reach the remote run (code read, #2627). Upstream says RunPod jobs use REST API v2 since v0.78.0 because RunPod announced the retirement of REST API v1 for 2026-11-15 (#2877); that rests on the published reference, not on a real account (#2098).
  • --yes (-y) skips the Start training? confirmation. Since v0.77.0 a run whose standard input is a pipe or a redirected file exits 3 without it (stdin is not a TTY, so the start-training confirmation cannot be answered. Pass --yes to start without the confirmation.), and piping y into the prompt no longer answers it, so pass --yes in scripts and CI jobs. --dry-run does not ask.
  • Ctrl+C (v0.78.0, #2414) — on a Hugging Face Trainer run the first press saves a checkpoint after the next completed optimizer step and keeps training, the second saves and stops, the third interrupts at once; touching .checkpoint_now in the output directory saves and continues. Native MLX training and task: unlearn do not have it. Upstream says it was not exercised by hand (it needs a real console); see Exit codes and Observability

soup chat

Interactive chat with a trained model.

bash
soup chat --model <path> [--backend transformers|mlx] [--base <model>] [--temperature <float>] [--max-tokens <int, 1 or more>]

--backend mlx (v0.78.0, #2123) chats through the native MLX loader that soup infer --backend mlx uses, on Apple Silicon. It refuses one option at a time with exit 1: any --device (MLX selects its native device; omit --device), a --hub other than hf, a negative or non-finite --temperature, and a --max-tokens above 16384. A --max-tokens below 1 exits 2 at parse time on both backends. A native MLX adapter given to the default backend exits 1 (Native MLX adapter detected; select --backend mlx), and a backend other than transformers or mlx is a usage error, exit 2. Upstream covers the MLX path only with its hosted macOS MLX test job and fixtures; the option refusals were run here without MLX installed. See MLX backend.

soup serve

Start an OpenAI-compatible inference server.

bash
soup serve --model <path> [--backend transformers|vllm|sglang|mii] [--port <int>] [--host <host>] [--max-tokens <1..16384>] [--tensor-parallel <n>] [--gpu-memory <float>] [--speculative-decoding <draft-model>] [--num-speculative-tokens <n>] [--adapters <name>=<path>] [--adapter-dir <dir>] [--trace-log <file>] [--feedback-log <file>]

--adapters (several named LoRA adapters on one server) works with --backend transformers only; with vllm, sglang or mii it exits 1. To serve one adapter on vLLM or SGLang, pass the adapter directory itself as --model: the base model is read from its adapter_config.json (on SGLang the adapter is applied since v0.77.0; through v0.76.1 every answer came from the base model, see Serving).

--auto-quant exits 2 with --auto-quant is unavailable since v0.76.0: Soup cannot measure quantization candidates before an engine has loaded them, so it refuses instead of guessing a format. Any --host other than loopback needs --tool-auth-token, which gates the tool, thumbs, feedback and adapter routes only; generation, /v1/models, /health and /metrics take no token on any backend. Since v0.77.0 POST /v1/tools/python and POST /v1/tools/bash, and since v0.78.0 POST /v1/adapters/load, need the token on every bind, loopback included, and answer 401 without it (POST /v1/feedback takes one only when the server has one, and always on a non-loopback bind); the token can also come from SOUP_TOOL_AUTH_TOKEN. Since v0.77.2 (#2329) the value follows the rule soup ui and soup mcp serve use, 16 to 128 characters from A-Z, a-z, 0-9, _ and -: any other value, a trailing newline included, exits 2 before the model loads on every bind, loopback included, and the message names the rule and never the value (v0.77.1 accepted any non-empty value). python -c "import secrets; print(secrets.token_urlsafe(32))" makes a valid one; send the same value as Authorization: Bearer <token>. Both routes answer 501 without running anything unless the host provides OS-level isolation (transformers backend only). The isolation cuts the network; the code still runs as the server's user, and /v1/tools/python, where it runs, still runs inside the RLVR code sandbox's timeout and memory limit. See Serving.

--max-tokens (default 512) must be between 1 and 16384 since v0.78.0 (#2855, #2898): --max-tokens: must be between 1 and 16384 (got N)., exit 2, before any backend loads and after the check that the [serve] extra is installed, which a core install fails first with exit 1. The --help text does not show the range. --adapter-dir <dir> (v0.78.0) turns on POST /v1/adapters/load for adapters under that directory and needs --tool-auth-token; it exits 2 with a backend other than transformers, with --mole, or with a path that is not a directory or is a filesystem root. Those refusals come before the [serve] extra is checked, so a core install answers 2 as well (run on a core install). --feedback-log <file> (v0.78.0) turns on POST /v1/feedback and appends JSONL records under the working directory, and --trace-log now writes one version-1 conversation record per answer (see Serving). --trace-log, --record-thumbs and --feedback-log exit 2 with --backend vllm, sglang or mii (--trace-log requires --backend transformers (the vllm backend does not support it, so the flag would be silently ignored).; run with the server dependencies stubbed, behind the same missing-extra rider); through v0.77.2 the flag was accepted and ignored. On the transformers backend a stream: true reply is sent while it is generated, on /v1/chat/completions and on /v1/messages, except for a request served with --reasoning-parser, a draft model, n-gram lookup, MoLE routing or a model whose generation config sets beam search or several return sequences, which is generated in full and then sent. stop and stop_sequences are honoured (a bad value is a 400); generation ends at the stop string only on the plain path, and on the excepted paths the full reply is generated and then cut. This was read from the code at the tag and not run against a model, and no latency figure exists.

soup export

Export model to deployment format.

bash
soup export --model <path> --format gguf|gguf-ud|onnx|tensorrt|bitnet|tq1_0|torchao [--quant <type>] [--output <path>]
soup export --model <path> --format gguf [--verbose] [--no-install-deps] [--llama-cpp <dir>]   # v0.77.0: --verbose and --no-install-deps are gguf only
# awq and gptq were removed in v0.77.0: --format awq|gptq exits 1 and names the formats that remain,
# and --bits, --group-size and --calibration-samples were removed with them (exit 2, No such option).
# --calibration-data is now for --format gguf-ud only. Stay on v0.76.x if you still need AWQ or GPTQ export.
soup export --format onnx [--onnx-task text-generation|feature-extraction]              # feature-extraction for task: embedding
soup export --model <path> --format onnx --onnx-task text-generation --validate-onnx --prompts <file> [--atol <float>]   # v0.78.0: logits check of the exported graph
soup export --model <path> --format gguf --deploy ollama [--deploy-name <name>]          # export, then deploy; the Ollama name defaults to soup-<model-name>

--validate-onnx (v0.78.0, #2676) checks the exported ONNX graph's logits against the model on the prompts you give: it needs --format onnx with --onnx-task text-generation and a --prompts file (text or JSONL, at most 32 prompts); --atol defaults to 1e-4. Exit 0 is a pass, 2 a numerical failure (the ONNX Logits Validation panel prints FAIL), and 3 a usage problem or a validation that could not run (ONNX validation input error: ..., ONNX validation could not run: ...); the input refusals were run, the pass and fail were read from the code. In upstream's words it is an FP32 smoke check, not a quality threshold, and it makes no claim about cached generation. Upstream's supported ONNX path uses a separate export-only environment, with [train] and [onnx] not installed together: see Model export.

--deploy is validated before anything runs (v0.76.0): it accepts only ollama, and only with --format gguf, gguf-ud, bitnet or tq1_0. Any other combination exits 1 (--deploy is not supported for format 'onnx'. Supported formats for deploy: gguf, gguf-ud, bitnet, tq1_0).

soup merge

Merge LoRA adapter with base model.

bash
soup merge --adapter <path> [--base <model>] [--output <path>] [--dtype float16|bfloat16|float32] [--save-format fp16|4bit|4bit_forced] [--low-memory] [--backend transformers|mlx [--dequantize]]

--backend mlx (v0.78.0, #2124) fuses a native MLX adapter into a dense checkpoint; --dequantize is the explicit opt-in for a 4-bit MLX base and needs --backend mlx (--dequantize requires --backend mlx, exit 1). On that path --low-memory, a --save-format other than fp16 and an explicit --double-quant or --no-double-quant are refused with MLX merge failed: ... and exit 1, and a vocabulary-expanded adapter is refused by soup merge, soup chat and soup infer (Native MLX generation does not currently support artifacts with expanded vocabularies (#1986); that is the message on the MLX path, and soup merge on the default transformers path refuses such an adapter with soup merge does not support adapters with expanded vocabularies (#1988)., read from commands/merge.py). Covered upstream only by the hosted macOS MLX job and fixtures; the refusals were run here without MLX.

--low-memory (v0.77.0) merges tensor by tensor straight from the base model's safetensors files instead of loading the whole model into RAM. It needs the default --save-format fp16 and a plain LoRA adapter: DoRA, modules_to_save, rank or alpha patterns and adapters on the embeddings are refused, and since v0.78.0 (#2732) so are adapters whose init_lora_weights can rewrite the base weights at initialization (PiSSA and OLoRA from lora.init_strategy, CorDA, LoftQ, LoRA-GA, or an init_lora_weights of 1): the message says the low-memory merge does not support it, and the regular soup merge without --low-memory is the route. Upstream says v0.77.0 to v0.77.2 wrote wrong weights for those adapters without an error. Upstream states that the values are identical to the regular merge. With a Hub base it is one of the paths that consult the namespace pin (Supply chain security). See Model export.

soup push

Upload model to HuggingFace Hub.

bash
soup push --model <path> --repo <user/repo> [--hub hf|modelscope|modelers]
  [--private] [--collection <owner/slug-hash>] [--message <commit message>]
  • --collection (v0.29) — add the pushed repo to an existing HF Collection

Token resolution for --hub hf: env HF_TOKEN / HUGGINGFACE_HUB_TOKEN > ~/.cache/huggingface/token > ~/.huggingface/token. The legacy --token flag is deprecated and delegates to this chain.

Each other hub authenticates with its own credential, and that is new in v0.75.1. --hub modelscope reads MODELSCOPE_API_TOKEN, --hub modelers reads MODELERS_TOKEN, and neither reads HF_TOKEN any more. Before it, the chain above ran for every hub and the resolved Hugging Face token was handed to the third-party SDK, so pushing to ModelScope or Modelers disclosed a token that is often write-scoped (0.53.10 to 0.75.0). Rotate it if that was you.

soup eval

Comprehensive model evaluation platform.

bash
soup eval benchmark --model <path> [--benchmarks <list>] [--fewshot N] [--batch-size N] [--run-id <id>] [--device cuda|mps|cpu] [--trust-remote-code]
soup eval custom --model <path> --tasks <path> [--trust-remote-code]
soup eval judge --target <pairs.jsonl> [--model <judge-model>] [--provider openai|server|ollama] [--rubric <path>] [--api-base <url>] [--run-id <id>]
soup eval auto [--config <path>]
soup eval compare <run1> <run2>
soup eval leaderboard [--sort-by <benchmark>] [--format table|json|csv]
soup eval human --input <prompts.jsonl> --model-a <path> --model-b <path> [--output <results.json>]
soup eval gate --suite <suite.yaml> [--model <path>] [--baseline <registry://id|scores.json>] [--regression-threshold 0.05] [--write-baseline <file>]
soup eval citation <data.jsonl> [--style bracket|inline|footnote] [--shuffle-seed <n>] [--output <scores.json>]
soup eval against <baseline-run-id> --candidate <run-id> [--metric task_accuracy|refusal_rate|format_validity|p95_latency_ms|custom|aider_polyglot|judge:<model>|benchmark:<lm-eval-task>] [--suite <locked.json>] [--json-only]
soup eval quant-check --before <model|registry://id> --after <model|registry://id> --tasks <tasks.jsonl> [--format table|json|markdown] [--allow-stub]

Notes on the rows that have more to them than the form shows:

  • soup eval benchmark wraps lm-evaluation-harness, so it needs pip install "soup-cli[eval]". --benchmarks is a comma-separated list (default mmlu), --fewshot falls back to each benchmark's own default when you leave it out, --batch-size defaults to 8, --run-id links the results to an existing training run, and --model may be a LoRA adapter directory.
  • soup eval leaderboard reads the experiments database and exits 1 with No eval results found. until soup eval benchmark or soup eval custom has recorded something. --sort-by applies to the table only: --format json and --format csv print the whole leaderboard without sorting by it. A --format value other than json or csv is not rejected; you get the table. Since v0.77.2 soup eval compare and soup eval leaderboard refuse a stored score that is NaN or infinite (#2477): the message names the run (or the model) and the benchmark, and the exit is 1 before any table is printed.
  • soup eval human is interactive, so it needs a terminal. It generates both models' answers to each prompt (a JSONL file whose rows have a prompt field), shows them side by side and asks a, b, tie or q. q ends the session early and the judgments so far are still scored and saved. The result is an Elo table, written with the judgments to --output (default human_eval_results.json). Both model paths must exist locally.
  • soup eval gate exits 0 when the suite passes, 2 when a task fails or regresses against --baseline, and 3 for a setup you can fix: a suite that is missing, outside the working directory or fails its schema (since v0.76.1 also one over 1 MiB, nested deeper than 100 levels or expanding past its alias allowance), a --baseline that cannot be resolved, a --regression-threshold outside 0.0 to 1.0, --write-baseline without --model, or an unknown flag, and since v0.77.0 a suite with no tasks or a repeated task name and a baseline score that is not a finite number. Since v0.77.1 a suite that is not valid YAML, or whose top level is not a mapping, is also 3 (Cannot load suite: and the file name; malformed YAML and a non-empty list or scalar root exited 1 through v0.77.0). It exits 1 when --model cannot be loaded or on an unexpected exception. Through v0.75.2 a failed gate and a broken invocation were both 1, so a CI job could not tell them apart by the exit code. Everything else about it, including --write-baseline, is on the eval gate page.
  • soup eval against compares two recorded runs with a paired bootstrap and exits 0 for no regression, 2 for a regression, and 3 for a bad flag, a missing or invalid --suite, or no recorded metric series for either run. The pre-push hook from soup eval gate-install calls it.
  • soup eval quant-check exits 0 on OK or MINOR, 2 on MAJOR, 3 on a usage or input error such as an unknown --format, a path outside the working directory or a .gguf path, and 1 when a model fails to load, which since v0.76.0 stops the command. --allow-stub scores with deterministic stub generators instead; the output then carries a stub marker ("stub": true in the JSON) and an OK means nothing was measured. A --tasks file that cannot be loaded (invalid JSON, a row without prompt, a name that does not end in .jsonl, no tasks) exits 3 before either model is loaded, with Cannot load --tasks: ...; through v0.77.1 it exited 1 after both models had loaded. See quant-check.

Without --provider and --model the judge is OpenAI's gpt-4o-mini (key from OPENAI_API_KEY), so your prompts and responses leave the machine; for a local judge pass --provider ollama --model <name> or --provider server --api-base <url>.

On soup eval judge, --target is a JSONL file of prompt and response pairs you already generated (every line needs a prompt and a response field; soup infer writes exactly that shape), not a model, and --model names the judge. --api-base is the judge's endpoint: plain http is accepted only for localhost, 127.0.0.1 and ::1, and since v0.75.2 an IP literal that is private, link-local or reserved is refused on https as well, with loopback still allowed. A hostname is not resolved, so the check narrows what a URL can name directly; it does not make an internal host unreachable by name. See what v0.75.2 refuses.

soup deploy

Deploy models to inference runtimes.

bash
# Ollama
soup deploy ollama --model <gguf> --name <name> [--system <prompt>] [--template <tpl>] [--parameter <key=val>] [--yes]
soup deploy ollama --list                # only models whose name starts with soup-
soup deploy ollama --remove <name>       # any Ollama model, by name

# HuggingFace Spaces (new in v0.29)
soup deploy hf-space \
  --model <user/repo> \
  --space <user/space> \
  --template gradio-chat|streamlit-chat \
  [--hardware <slug>]

soup deploy hf-space validates model_repo via validate_repo_id before substituting into app.py / README.md — a crafted repo id cannot inject Python code into the deployed Space. Instead of --template it accepts --template-dir <dir> (custom app.py + README.md, optional requirements.txt, {MODEL_REPO} placeholder; details on Hugging Face Hub integration), plus --private and --yes. --hardware <slug> (v0.78.0, #2745) asks the Hub for that hardware tier when the Space is created: a lowercase slug of at most 32 letters, digits and single hyphens, such as cpu-basic or zero-a10g; anything else exits 1 (Invalid --hardware: expected a lowercase hardware slug ...) before any credential is read, and --hardware zero-a10g with --template streamlit-chat exits 1 (ZeroGPU does not support the built-in streamlit-chat template; use --template gradio-chat.). Both were run without a token, so nothing reached the Hub; the ZeroGPU-aware app (import spaces, a @spaces.GPU reply function) was read from the code. --template streamlit-chat prints a deprecation warning since v0.78.0 (Deprecation warning (v0.78.0): Hugging Face no longer creates new Streamlit Spaces. Use the built-in gradio-chat template or a custom Gradio template., run; it prints after the token check, so without a token the command exits 1 first) because Hugging Face no longer creates new Streamlit Spaces; upstream names no removal release.

soup infer

Batch inference on a list of prompts. With --task asr (v0.71.32) it transcribes a JSONL of audio clips through a Whisper model or adapter and reports per-row and corpus WER/CER when reference texts are present. See ASR fine-tuning. Since v0.77.1 --backend mlx generates text with a native MLX adapter or an MLX base model, without Torch or PEFT, and refuses --task, --batch-size, --cuda-graphs, --device and --hub values it cannot honour, each by name with exit 1; see native MLX text generation.

bash
soup infer --model <path> --input <path> --output <path> [--backend transformers|mlx] [--max-tokens <int>] [--temperature <float>] [--batch-size <n>] [--cuda-graphs]
soup infer --task asr --model <whisper|adapter> --input <jsonl> --output <jsonl> \
  [--audio-dir <dir>] [--asr-language <lang>] [--asr-task transcribe|translate]

soup migrate

Import config from competing tools.

bash
soup migrate --from llamafactory|axolotl|unsloth <input-file> [--output <path>] [--dry-run]

soup recipes

Browse and use ready-made training configs.

bash
soup recipes list                          # List all 181 recipes
soup recipes show <name>                   # Print recipe YAML
soup recipes use <name> [--output <path>]  # Copy to soup.yaml
soup recipes search <query>                # Search by model/task/size
soup recipes verify [--config <soup.yaml>] [--json] [--templates|--no-templates]   # v0.76.0: can the LoRA adapter attach? checked on the meta device, no weights downloaded

soup recipes verify is one of the eleven commands on the 0 / 2 / 3 taxonomy: 0 when everything that could be checked attaches, 2 when a config cannot attach, 3 for a missing or unparseable --config or a usage error, 1 for a crash. A gated repository or a base that needs trust_remote_code is reported as unverified and does not change the exit code, so an exit 0 can mean nothing was checked. It needs the [train] extra (torch, transformers, peft); without it the command exits 1, after it has checked --config (since v0.77.0 a missing, unparseable or refused --config exits 3 first, on any install). soup recipes use exits 3 for a recipe the catalog marks unavailable (kimi-k2-sft and kimi-k2-thinking-grpo at v0.77.0) and writes nothing. See Recipes.

Data Commands

bash
# v0.77.1: eighteen of these commands refuse an --output that is an input (exit 1; lint 3; augment and evolve 2); since v0.77.2 ingest, persona-mix, generate, canary check, mix --optimize, forge and recipe --execute do too (exit 1), see Exit codes
soup data inspect <path> [--rows <n>] [--image-dir <dir>]  # View dataset stats (--rows: sample rows to show, default 5; --image-dir is new in v0.76.0)
soup data validate <path> [--format <fmt>] [--min-valid-fraction <0.0-1.0>]  # Check format compliance; exit 3 input error (v0.78.0: `nan` is refused as a usage error, 3), 2 no usable rows or below the fraction
soup data clean <path> [-o <out>] [-f] [--dry-run] [--min-tokens <n>] [--prune-echo] [--strip-boilerplate] \
  [--repair-code] [--repair-json] [--drop-invalid-json] [--json]   # v0.76.0: sanitise a dataset, never modifies the input
soup data convert <path> --to <fmt> --output <f>  # Convert between formats
soup data merge <f1> <f2> --output <f> [--shuffle]  # Combine datasets
soup data dedup <path> [--threshold <float>]      # Remove duplicates
soup data stats <path>                            # Extended statistics
soup data generate --prompt "..." --count <n>     # Generate synthetic data; v0.78.0: asks the provider again until --count is reached, and after three requests in a row with no valid row saves what it has and exits 1
soup data generate --provider openai|local|server|ollama|anthropic|vllm  # Multi-provider support (openai is the default)
soup data generate --template code|conversation|qa|preference|reasoning  # Domain templates
soup data generate --quality-pipeline             # Validate + filter + dedup
soup data generate ... --batch-size <n>           # Examples per API call (default 5)
soup data filter <path> [--coherence <f>] [--perplexity <n>] [--ppl-model <id>] [--field <name>] [--score-only]  # Quality filter; perplexity is scored with gpt2 unless --ppl-model says otherwise
soup data sample <path> --strategy random|diverse|hard -n <n> [--pct <number above 0, at most 100>] [--seed <n>]  # Sample subset; v0.78.0: -n below 1 or --pct outside (0, 100] exits 1
soup data split <path> --val 10 --test 10 [--absolute] [--seed <n>]   # Split; --val/--test are integer percentages; v0.78.0: with --stratify the requested validation and test counts are met (int(n x pct / 100) for percentages), but the rows each stratum gives changed, so the same seed gives a different split than v0.77.2
soup data split <path> --val 10 --stratify <field>           # Stratify on a field
soup data split <path> --val 10 --stratify-semantic --num-clusters <n>  # TF-IDF + K-Means strata (v0.73.2, needs scikit-learn); not combinable with --stratify
soup data search <query> [--limit <n>] [--sort downloads|likes|lastModified|trending|createdAt]  # Search HuggingFace Hub
soup data preview <dataset_id>                               # Preview remote dataset
soup data download <dataset_id> [--output <path>] [--samples <n>] [--split <split>] [--format alpaca|sharegpt|chatml] [--hub hf|modelscope|modelers]  # Download (default split: train)
soup data register <name> --path <path> --format <fmt>       # Register local dataset
soup data unregister <name>                                  # Remove from registry
soup data registry                                           # List registered datasets
soup data push --input <jsonl> --hf-dataset <user/repo> [--private] [--message <text>] [--hub hf|modelscope|modelers]  # Publish JSONL as a dataset repo (v0.29)
soup data mix --optimize --datasets <a.jsonl,b.jsonl> [--budget 1h] [--num-probes <n>] [--seed <n>] [-o mix_recipe.yaml] [--overwrite]  # Mixture search; WITHOUT --live the proxy is synthetic
soup data mix --optimize --live --base-yaml <soup.yaml> --datasets ...   # --live REQUIRES --base-yaml (real short training runs)
soup data mix --apply <mix_recipe.yaml>                      # Prints the data: block to paste into soup.yaml; writes no dataset
soup data from-traces --logs <logs> --format langchain|openai|soup-serve  # Trace-to-preference (v0.26); for soup-serve --logs is the directory `soup serve --trace-log` writes, and a single file is refused
soup data review <pairs.jsonl>                                # Preview preference pairs (v0.26)
soup data augment --input <jsonl> --strategy rephrase|translate|style     # LLM augment (v0.25)

Experiment Commands

bash
soup runs                         # List all training runs
soup runs show <run_id> [--no-plot]   # Detailed run info + loss curve (--no-plot skips the curve)
soup runs replay <run_id> [--no-plot] # Re-render a finished run's summary and loss curve from its stored metrics
soup runs curriculum-curve <run_id> [--history <curriculum_history.jsonl>] [--width <4-200>]  # Dynamic-curriculum bucket weights (BETA)
soup runs compare <run1> <run2>   # Side-by-side comparison of two local runs; v0.78.0 adds the stored dataset hashes, the code commit and state, the config differences and the latest stored evaluation scores
soup runs delete <run_id>         # Remove from database
soup runs clean [<run_id> | --all] [--dry-run] [--force] [--keep-weights/--no-keep-weights]
                                  # Reclaim checkpoint space: by default drops optimizer and scheduler
                                  # states only; --no-keep-weights deletes whole non-best checkpoints (the one with the
                                  # lowest loss recorded at its step is kept whole; with no recorded loss, the latest)

Other Commands

bash
soup deploy ollama --model <p> --name <n>       # Deploy GGUF to Ollama (both required to deploy)
soup profile --config soup.yaml [--json]       # Estimate memory/speed/GPU (model + task come from the config); --json for scripting (stdout is only the JSON document, every refusal goes to stderr, since v0.77.2); exit 1 with `Cannot estimate this run` when batch_size, max_length or the model's size (over 1,000B parameters) is outside what the estimate can price (v0.77.1; since v0.78.0 the line names the field that stops it, for example `Cannot estimate this run: training.batch_size is outside 1 to <max>, the range the estimate prices.`, #2306; `soup profile --config` takes neither the `seq_len` nor the `shape` that the release notes name, only the Python function `profile_from_config` does; `soup profile --model` has `--seq`); a model outside the fitted range still gets a number
soup profile --model <id|dir> [--seq 2048] [--batch 4] [--method qlora] [--lora-r 64] [--optimizer adamw_torch] [--gradient-checkpointing off] [--gpu <name>] [--json]   # v0.77.2: will it fit? without a soup.yaml, from the model's config.json
soup adapters list [<dir>]                     # Scan for LoRA adapters (positional, defaults to .)
soup adapters info <path>                      # Adapter metadata
soup adapters compare <a> <b>                  # Side-by-side comparison
soup sweep --config <path> --param key=v1,v2   # Hyperparameter search
soup sweep --config <path> --sweep-config <sweep.yaml>   # v0.76.0: a standalone sweep file; it replaces --param (give one of the two, never both: either mistake exits 1)
soup diff --model-a <p> --model-b <p>          # Compare two models
soup doctor [--nccl] [--disk] [--config soup.yaml]                   # Check system + deps (+ NCCL bandwidth, + media type); --config loads a soup.yaml under the current rules and exits 2 if it cannot load (it stops at the first cross-field refusal, so fix that setting and run it again)
soup quickstart [--dry-run] [--yes]             # One-command demo
soup ui [--port <int>] [--no-browser] [--host <h>] [--public] [--auth-token <t>] [--show-token]
# --public binds 0.0.0.0 and prints a phone QR. Since v0.77.0 the URL it opens and prints in its panel for
# --public, --host 0.0.0.0 or --host :: is a loopback one (the server still binds every interface; the --public phone URL and QR keep the LAN address),
# and on a loopback bind the Host header is checked (403 Host not allowed). A non-loopback bind WITHOUT a valid
# token exits 2, a guard no option of this command reaches (a valid token is always
# generated and a malformed --auth-token exits 1 first). Every private endpoint needs
# Authorization: Bearer; SSE takes a short-lived single-use ticket instead.
# /docs and /openapi.json are loopback-only.
# The launch URL carries ?token= so the first tab authenticates; on a loopback bind the page then
# keeps the session in an HttpOnly cookie, not in sessionStorage or on window (v0.76.0).
# --auth-token must be 16-128 URL-safe characters (A-Z a-z 0-9 _ -); anything else exits 1.
soup tui                                        # Full-screen training dashboard
soup monitor [--refresh <0.25-30>] [--once]     # Live GPU monitor: util / temp / VRAM / power per GPU
soup fetch examples|deepspeed_configs [<name>]  # Fetch a ready-to-edit file from the bundled catalog (examples: llama-3.1-8b-lora, qwen2.5-7b-dpo; deepspeed_configs: zero3-cpu-offload; `configs` is accepted and empty)
soup quantize <model> --to gguf|onnx|tensorrt [--bits N] [-o <dir>]  # PRINTS the matching `soup export` command and runs nothing
soup plugins list|enable|disable|install        # lists plugins found under the soup_cli.plugins entry-point group, none on a stock install (their code is not imported until enabled);
                                                # enable persists an opt-in in ~/.soup/plugins.json and is where third-party code loads; install explains and exits 2
soup llama cli|mtmd-cli|gguf-split|server|quantize ...  # Proxy to the llama.cpp binaries
                                                        #   closed allowlist; the child env is FILTERED, so
                                                        #   HF_TOKEN / OPENAI_API_KEY / ANTHROPIC_API_KEY and
                                                        #   every other secret are dropped before exec. What
                                                        #   is forwarded: PATH / HOME / USER / USERPROFILE,
                                                        #   TMP / TEMP, TERM / COLORTERM, LANG / LC_ALL /
                                                        #   LC_CTYPE, SYSTEMROOT / PATHEXT /
                                                        #   NoDefaultCurrentDirectoryInExePath (v0.77.1;
                                                        #   matched without regard to case on Windows, where
                                                        #   the last is always set to 1 for the child),
                                                        #   plus LLAMA_CPP_HOME, GGML_CUDA, GGML_METAL and
                                                        #   OMP_NUM_THREADS.
soup bench infer <model> [--base <m>] [--backend auto|transformers|mlx]  # Inference speedometer; `soup bench <model>` still runs it
                         [--max-tokens <n>] [--num-prompts <n>] [--prompts-file <p>]
                         [--p50] [--p95] [--cuda-graphs]              # tail-latency percentiles; --cuda-graphs is experimental
soup bench train [--config soup.yaml] [--steps 20] [--warmup 3] [-o bench-train.json]   # v0.76.0: fails when the model was not actually training
soup rewind [RUN_ID] [--step <n>] [--top 10] [--json <path>] [--no-preview]              # v0.76.0: the dataset rows behind a loss spike
soup version [--full] [--json]                  # Show version info; --json prints one JSON object (version, python, platform, plus installed library versions with --full); soup --version prints the short form
soup ra-dit -r <retriever.yaml> -g <generator.yaml> [--retriever-model <m>] [--timeout <60-21600>] [--plan-only]
                                                # RA-DIT two-stage run. BOTH recipes are required and cwd-contained;
                                                # --timeout is per stage (default 21600 s); --retriever-model skips the registry auto-link
soup merge-sharded-fsdp-weights <shard_dir> -o <out.safetensors> [--plan-only]
                                                # consolidate pytorch_model_fsdp_*.bin shards into one file; -o is required and under the cwd
soup delinearize-llama4 <source_dir> -o <target_dir> [--num-experts <n>] [--model-id <id>] [--plan-only]
                                                # reshape fused expert weights to 3-D; -o is required and under the cwd;
                                                # --num-experts defaults to num_local_experts in config.json
soup deploy autopilot --target <profile> [--base <model>] [--recipe-out deploy_autopilot.yaml] [--script-out deploy_autopilot.sh] [--output-dir ./output]
soup deploy autopilot --target <profile> --measure --tasks <tasks.jsonl> [--measure-candidates 4bit,8bit,fp8]
soup deploy autopilot --list                    # --target is required unless you pass --list; both output paths must be under the cwd
soup local-rl train --model <hf-id|path> [--db local_rl.db] [--train-method dpo|kto|orpo] [--once] [--min-pairs 10] [-o local_rl_adapter]
soup local-rl train --model <hf-id|path> [--scheduler-dir local-rl-scheduler] [--hour 3] [--minute 0] [--backend ollama|mlx]
                                                # without --once it only writes a systemd/launchd scaffold; it never runs systemctl or launchctl
soup can pack --entry-id <registry-ref> -o <out.can> [--author <handle>] [--description <text>] [--attest <in-toto.json>]...
soup can fork <source.can> -o <out.can> --modify training.lr=5e-5 [--author <handle>]
soup can run <file.can> [--yes] [--deploy] [--extract-dir <dir>] [--env-capture <file>]
soup can publish <file.can> --hf-hub <user/repo> [--private] [--message <text>]

soup doctor --disk is opt-in because the probe costs roughly 9 seconds cold and 2.4 seconds warm on Windows, and with several physical disks it reports the worst one. Since v0.73.3, on Linux, it may also write a 64 MiB scratch file named .soup-diskprobe-* into the directory it is probing (the current directory for soup doctor --disk; a training run probes the shard directory instead), read it back with O_DIRECT to time a sequential read, and delete it, because on a disk whose rotational flag cannot be trusted the media type is settled by a measured read rather than by the flag. On Windows it only runs the disk query. It exists because the streaming disk tier requires NVMe and refuses a SATA SSD, a spinning disk or media it cannot identify, rather than guessing and thrashing for hours.

soup quantize quantizes nothing: it prints the soup export command to run. For --to gguf that command carries --quant q4_K_M (and q8_K_M for --bits 8), which soup export refuses, because its --quant is case-sensitive and accepts only q4_0, q4_k_m, q5_k_m, q8_0, f16 and f32: retype it in lower case, and use q8_0 for 8 bits. --to takes gguf, onnx or tensorrt; since v0.77.0 --to awq and --to gptq exit 2 (--to must be one of ['gguf', 'onnx', 'tensorrt']). Through v0.76.x they printed a --bits form with a Deprecated: line.

soup monitor reads nvidia-smi on NVIDIA systems. On Apple Silicon it reads /usr/bin/powermetrics through sudo -n, which never prompts for a password, so run sudo -v first or the command exits 1 and tells you to.

v0.54 — Pre-flight Decision

bash
soup advise run <data.jsonl> --goal "<task>"          # Classify task + rank PROMPT_ENG/RAG/SFT/DPO/GRPO
soup advise run <data.jsonl> --probe                  # ROI estimates, heuristic: derived from the shape of the data, no model loaded
soup advise run <data.jsonl> --probe-model <id> [--probe-device cpu|cuda]   # LIVE probe: loads the model, LoRA-trains on a held-out slice
soup advise run <data.jsonl> --record                # Append to ~/.soup/advise_history.jsonl
soup advise explain                               # Print full rubric
soup advise compare [--limit N]                   # Prior verdicts, newest first

v0.55 — Eval Design

bash
soup eval design <data.jsonl> --goal "..."        # Goal-conditioned suite (TF-IDF + dispatch)
soup eval discover <data.jsonl>                   # Greedy farthest-first canaries + memorization probes
soup eval lock <design.json>                      # SHA-256-pin the suite as an artifact
soup eval coverage <design.json> --task factual_lookup|style_shaping|format_conversion|reasoning|tool_use|summarization|classification  # Gap analysis vs v0.54 taxonomy (--task is required)
soup eval gate-install --baseline <run-id> [--suite <locked.json>] [--hook-path <file>] [--force]   # Install .git/hooks/pre-push regression gate (suite defaults to evals/locked.json)

v0.56 — Diagnose (Model Report Card)

bash
soup diagnose <run-id> [--output <report.json> [--attach-to-registry <id>]] [--allow-not-run] [--holdout <jsonl>]
                                                    # 7 failure-mode probes + OK/MINOR/MAJOR/NOT_RUN + SVG badge. Exit 2 on MAJOR, exit 3 on NOT_RUN
                                                    # (a requested probe did not run) unless --allow-not-run. --attach-to-registry needs --output and exits 1 if the attach fails
soup train --diagnose-gate <evidence> [--diagnose-gate-require-all-modes]               # After training: exit 2 if the evidence you supply has a MAJOR mode, exit 3 if a requested mode did not run (the adapter is already saved); v0.78.0: with --diagnose-gate-require-all-modes a mode missing from the evidence counts as NOT_RUN, exit 3 (it requires --diagnose-gate, else exit 1)

v0.57 + v0.67 — Adapter VCS

bash
# v0.57 — git for LoRA
soup adapters diff <a> <b>                            # Per-layer Frobenius + relative drift + SVD effective rank
soup adapters merge <a> <b> [c...] -o <out> [--strategy linear|ties|dare|svd|cmaes] [--weights 0.5,0.5] [--density 0.2] [--rank <n>]   # v0.78.0: a rank that differs on a shared module is refused for every strategy, --rank included (exit 2): use soup adapters arithmetic ... --rank N for mixed ranks; linear, dare and svd weight each input by its weight, not its square
soup adapters merge <a> <b> [c...] -o <out> --strategy cmaes --eval <suite> [--budget 1h] [--population 8] [--max-generations 20]
                                                       # v0.67 CMA-ES evolutionary search: --eval is required; --population is 2-256,
                                                       # --max-generations 1-10000, --budget 60s-24h; --density is for ties/dare, --rank for svd
soup adapters blame <adapter-dir> --dataset <d> --layer <l> --budget 5m --shards 4
soup adapters branch <name> -c <config.yaml> --base <model> [--dataset <data>] [--attach-to-registry <id>]
soup adapters branch <name> --from-registry <id>       # derive config, base model and dataset hash from a registry entry instead
soup adapters checkout <name> -o <out.yaml>
soup adapters branches

# v0.76.0 additions
soup adapters check <adapter-dir> [--json]            # is the adapter trained at all? exit 0 alive, 2 inactive, 1 unreadable (or NumPy missing: it says so since v0.77.1)
soup adapters audit <adapter-dir> --config <soup.yaml> [--json]   # did the run do what the config asked? exit 0 agree, 2 diverged (also a Click error), 1 adapter or config unreadable

# v0.67 additions
soup adapters pr <title> --base-sha <64hex> --adapter <path> \
  --eval <eval_delta.json> --samples <sample_diffs.json> \
  [--dataset-diff <diff.txt>] [--format markdown|json] --output <PR.md>   # GitHub-shaped PR markdown (--dataset-diff is a text file you supply)
soup adapters bisect <ckpt1> <ckpt2> ... \
  --eval-command "soup eval gate --suite <gate.yaml> --baseline <baseline.json> --model {ckpt}"
                                                       # Binary-search history for regression boundary (exit 2 on BROKEN_AT, and also since v0.77.1 before any probe when the eval command's program is not on PATH (since v0.77.2 also a program that cannot be started, and a `{ckpt}`-completed name at the first failing probe); the eval command must exit non-zero on a bad checkpoint, which soup eval custom never does; soup eval gate fails with 2, and a usage mistake in the command, which is 3, also reads as a failed checkpoint)

# Shared run lockfile (v0.67)
soup lock write --base-model <id> --base-sha <64hex> --dataset-sha <64hex> \
  [--env-hash <64hex> | --env-lock <soup-env.lock>] [--output soup.lock]    # env hash derived from soup-env.lock when omitted
soup lock show [soup.lock]
soup lock check --base-model <id> --base-sha <64hex> --dataset-sha <64hex> \
  --env-hash <64hex> [soup.lock]                       # Exit 2 on drift; 3 if the lock is missing or unparseable or a flag is wrong

v0.58 — Production Data Flywheel

bash
soup loop init <served-model> --eval <tasks.jsonl> --baseline registry://<id> \
  --monthly-budget 50usd --max-runs-per-day 3
soup loop init <served-model> --eval <tasks.jsonl> --baseline registry://<id> --pre-wired --thumbs-db <db>
soup loop watch                                   # Long-running daemon (SIGTERM-safe)
soup loop watch --pre-wired --tool-auth-token <token>   # v0.77.0: the deploy stage sends it as a Bearer token
soup loop status
soup loop pause / soup loop resume
soup loop canary <adapter> --traffic 5% --autoroll-on-regress
soup loop replay [<iter-id>]
soup loop set base_model|trace_dir|verify <value>   # v0.78.0
soup loop rollback                                  # v0.78.0

Since v0.78.0 --eval is a soup ship task-eval JSONL (one {"prompt", "expected"} object per line) by default, because a new loop's check is --verify ship; with --verify eval-gate it is an eval-gate suite YAML. With --pre-wired soup loop init refuses a file the chosen check cannot run (exit 2, --eval 'suite.yaml' is not a soup ship task-eval JSONL ...; run), and without --pre-wired the mismatch is a warning and exit 0. A loop whose loop.yaml has no verify keeps eval_gate. The loop's group description in --help still reads "Data flywheel" and names DPO, although a new loop trains sft by default (--train-method); see soup loop.

v0.59-v0.62 — Governance, Supply Chain, Unlearn, RAG

bash
# v0.59 — Governance & Provenance
soup bom emit --name <m> --version <v> --base-model <hf> --base-sha <64hex> \
  --config-sha <64hex> [--data-sha <64hex>] --task <t> --license <spdx> --format cyclonedx|spdx|both \
  --output <prefix> [--attach-to-registry <id>]   # v0.73.3; needs --output
soup attest emit --stage extract|train|eval|export|publish \
  --subject <artifact> --sha <sha> --builder <id> --invocation <cmd> \
  --sign unsigned|ed25519|sigstore [--key <priv.pem>] [--interactive-oidc] \
  --output <path> [--attach-to-registry <id>]     # ed25519 needs --key (or SOUP_SIGNING_KEY) and adds the .sig sidecar
# --sign sigstore (v0.76.0) is keyless signing through Fulcio and Rekor. It needs
# pip install "soup-cli[sigstore]" and --output, and it writes the Sigstore bundle into the
# .sig sidecar. It never falls back to an unsigned statement: if it cannot sign it exits
# non-zero (2 for a missing extra, a missing --output, or no ambient credential when the Sigstore
# trust root can be loaded; 1 for a failure at Fulcio or Rekor, or a trust root that cannot be
# loaded, for example offline) and writes nothing. CI uses an ambient OIDC credential;
# --interactive-oidc allows the browser flow instead.
soup attest verify <statement> --signature <statement.sig> \
  [--public-key <pem> | --cert-identity <san> --cert-oidc-issuer <url>]   # exit 0 valid, 1 verifier unavailable, 2 usage, 3 invalid or policy mismatch
soup audit-log tail / rotate
soup train --annex-xi <out.md> --repro-receipt <out.json>

# v0.60 — Supply Chain Security
soup adapters scan <dir>                          # Spectral LoRA backdoor scanner (exit 0/1/3)
soup adapters sign <dir> [--backend unsigned|ed25519|sigstore] [--key <k> | --generate-key <out.pem>] [--interactive-oidc]   # Merkle-root signing (--strict is on verify); sigstore is keyless and needs [sigstore]
soup adapters verify <dir> [--strict] [--public-key <pem>] [--cert-identity <san> --cert-oidc-issuer <url>]   # Merkle-root tamper detection; a Sigstore-signed adapter needs both cert options
soup adapters check-safetensors <dir> --strict    # Refuse pickle/.bin/.pt
soup adapters merge <a> <b> -o <out> --license <spdx-a> --license <spdx-b>   # SPDX-license gate: one --license per adapter, same order; omit them to auto-detect
soup airgap-bundle --model <dir> --output <bundle.tar> [--dataset <dir>]... [--wheel <dir>]... [--kernel <dir>]...   # --output is a tarball path, the others are directories; v0.78.0: a missing or non-directory path exits 1 before anything is written (through v0.77.2 it exited 0 and wrote a bundle whose manifest listed no files for it, #2453, fixed by #2568)

# v0.61 — Unlearning & Knowledge Edit
# (configured via task: unlearn in soup.yaml)
soup eval unlearning <run-id> --benchmark tofu|muse|wmdp --evidence <evidence.json>   # runs no benchmark itself; with no --evidence every metric is a neutral OK
soup edit set --base <m> --method rome|memit|alphaedit|grace --subject "..." --target "..." [--plan-only]
soup edit diff run_before run_after --probes probes.jsonl --top-k 10 \
  --before-model ./model-before --after-model ./model-after
# The two ids are labels for the report, not registry lookups. With --before-model and
# --after-model it generates the diff live and --probes is then required (exit 2 without it).
# With neither model it prints an empty validated table and exits 0.

# v0.62 — RAG & Activation Steering
soup steer train --base <m> --method caa|iti|repe --name <id> --pairs <jsonl>
soup steer apply --name <id> --strength <float>   # |strength| ≤ 10 enforced
soup steer list                                   # Registry entries: soup steer train --registry-id <id> (needs --output) records the vector there since v0.76.0

v0.63 — Production Trace Ecosystem

bash
soup ingest --source langfuse|langsmith|helicone|openpipe|otel|openai-stored \
  --logs <jsonl> --output <out.jsonl>
soup ingest --source langfuse --pull [--since 7d] [--max-pages 100] \
  [--allow-private-host] --output <out.jsonl>
# --pull fetches from the Langfuse API instead of --logs, and is langfuse-only.
# Credentials come from LANGFUSE_PUBLIC_KEY + LANGFUSE_SECRET_KEY, never a flag
# (LANGFUSE_BASE_URL or LANGFUSE_HOST for a region or self-hosted instance; it must be
# https://, and --allow-private-host is what lets it be a private or loopback address).
# --since max 365d; --max-pages max 10000, and hitting it exits 1 writing nothing.
soup prune-prompt --input <jsonl> --output <out.jsonl> --min-frequency 0.95
soup data active-sample --input <jsonl> --budget N
soup ab --input <jsonl> --metric latency|judge_score|retry_rate \
  [--alpha 0.05] [--effect-size 0.1] [--slack-url <url>] [--discord-url <url>]
# Two-sided, variance-robust sequential test (v0.76.0): it reports whether the treatment is better
# or worse, and can be re-run after every new row. --beta is refused since v0.77.0 (exit 2, before
# any row is read); lower --alpha for a stricter accept_h0. Exit 0 on every decision, so read the
# verdict, not the exit code.
soup drift-alarm --reference <ref.jsonl> --live <live.jsonl> --threshold 0.2 \
  [--slack-url ...] [--discord-url ...]                # Exit 3 on drift

v0.64 — Pre-flight & Tooling

bash
soup tunability --dataset <path> [--candidates <names>] \
  [--probe-steps 100] [--holdout-size 64] [--output <path>] [--plan-only] [--list]
soup plan --config <soup.yaml> [--state ./soup.tfstate]                  # since v0.77.1 exit 1 for a config soup train refuses
soup apply --config <soup.yaml> [--state ./soup.tfstate] [--dry-run]     # the same
soup env lock [--output ./soup-env.lock]
soup env status [--lock ./soup-env.lock]
soup env check [--lock ./soup-env.lock]                # Exit 3 on ABI drift or a violated declared bound
soup env fix [--lock <path>] [--format uv-pip|requirements] [--output <path>]   # print an install plan; never installs
soup completions bash|zsh|fish                          # v0.77.2: prints Typer's own script; re-run it and replace any script written earlier
soup license-advisor --target b2c|defense|embedded \
  [--license <spdx>] [--monthly-active-users <N>]      # Exit 3 on block

v0.65 — Eval Depth (Failure Modes 6 → 10)

bash
soup eval behavior <run-id> --battery xstest|harmbench|jailbreakbench|elephant|syceval \
  (--evidence <responses.json> | --base-model <id> [--adapter <path>] [--device cuda|cpu]) [--output <report.json>]
soup eval capability <run-id> --suite full|fast|math|code [--output <report.json>]
soup eval checklist <spec.yaml> --evidence <responses.json> [--output <report.json>]
# --evidence is required on both: without it (and, for behavior, without --base-model) the
# command exits 3. Through v0.75.2 it printed a neutral OK report and exited 0.
soup eval irt-subset <responses.jsonl> --size full|small|tiny [--model 1pl|2pl|3pl] [--output <plan.json>]   # --model defaults to 1pl (Rasch); 2pl adds discrimination, 3pl a guessing floor

v0.66 — Post-train X-rays

bash
soup probe sae-diff <sae.safetensors> <pre_acts.json> <post_acts.json> \
  [--top-k 20] [--output <report.json>]
soup probe sleeper <base> [--evidence <activations.json>] [--output <result.json>]
soup probe interference <losses.json> [--output <matrix.json>]   # Exit 2 if worst ≥20%
soup probe pack <base> [--list] [--output <manifest.json>]

v0.69: Data engineering

bash
soup build <manifest.yaml> [-o <dir>] [--dry-run]       # dbt-style DAG of dataset transforms; -o defaults to build_out
soup expect <data.jsonl> <suite.yaml> [--judge <url>]   # expectations suite over a JSONL dataset
# soup expect exits 0 when the suite passes, 2 when an expectation fails, 3 when the suite
# or the data is rejected or a flag is mistyped, and 1 when the judge cannot be reached.

Both are documented on Data engineering pro, including the judge expectation, which needs --judge or args.judge.

v0.71.27 — Fine-tune Doctor

bash
soup data doctor <data.jsonl> --model <id|path> \
  [--show-mask N] [--train-on-responses-only | --no-train-on-responses-only] \
  [--train-on-eot] [--train-on-messages-with-train-field] [--mask-history | --no-mask-history] \
  [--output <report.json>]
# 8 chat-template checks (eos_in_labels, bos_duplication, truncation_risk, …)
# OK/MINOR/MAJOR verdict · exit 0 OK/MINOR · exit 2 MAJOR

soup data lint <data.jsonl> [--model <id|path>] [--output <report.json>]
# Preference-data linter for dpo/orpo/simpo/ipo/bco/kto:
# length_bias (Cohen's d), label_imbalance, near_duplicates,
# identical_pairs, prompt_leak
# exit 0 OK/MINOR · 2 MAJOR · 3 a missing path, an empty file, data that is not preference
# data (use soup data doctor) or an unwritable --output · 1 a format that cannot be detected

v0.71.28 — MCP Server

bash
pip install "soup-cli[mcp]"
soup mcp serve                    # stdio · 14 read-only tools
soup mcp serve --allow-mutating   # also run train_start / export (planning only)
soup mcp serve --allow-execute    # + train_execute / export_execute, token-gated (v0.73.3)

v0.71.29 — Model shrink

See soup shrink.

bash
soup shrink --model <id|path> --calib calib.jsonl --drop-ratio 0.25 [--drop-layers N] \
    [--heal heal.jsonl --heal-steps 200] [--tolerance 0.10] [-o out/] [--device cpu] \
    [--attach-to-registry <id>] [--plan-only]   # exit 0 = SHIP, 2 = DON'T SHIP, 1 = error

v0.71.30 — PRM-guided GRPO + rollout envs

See PRM-guided GRPO.

bash
soup train --config grpo.yaml   # training.prm_reward: <path|id> · training.prm_aggregate: min|prod|last
soup recipes use grpo-env-calculator      # or grpo-env-retrieval-qa / grpo-env-guess-number

v0.71.31 — Judge in the loop

See Online DPO and best-of-N & Evolve.

bash
soup train --config online_dpo.yaml   # task: online_dpo; training.online_dpo_judge OR training.reward_model (exactly one)
soup data best-of-n --base <m> --prompts p.jsonl --n 8 --judge <url> -o sft.jsonl [--emit-pairs dpo.jsonl]
soup data evolve --input seeds.jsonl --provider ollama|vllm --model <m> --strategy depth|breadth --rounds N -o out.jsonl
soup ship --task-mode pairwise --judge-model <url>     # swap-debiased judge win-rate vs a 0.5 base

v0.71.32 — ASR (Whisper)

See ASR fine-tuning.

bash
pip install "soup-cli[train,audio]"
soup recipes use whisper-tiny-asr          # task: asr · format: asr · fits a 4 GB GPU
soup infer --task asr --model ./out --input eval.jsonl --output preds.jsonl \
    [--audio-dir ./data/audio] [--asr-language en] [--asr-task transcribe]

v0.71.33 — Speculative-decoding drafts

See soup draft.

bash
soup draft measure --target <m> --draft <d> --prompts p.jsonl   # acceptance + real tok/s
soup draft measure ... --min-acceptance 0.6 -o report.json      # exit 2 below the floor (CI); v0.78.0: a floor of nan is refused, exit 2
soup draft measure ... --sweep-k 1,2,3,5,8                      # v0.76.0: also time assisted generation at each draft length (at most 8 values, each 1 to 64)
soup draft distill --target <tuned> --draft-base <tiny> --data d.jsonl -o draft/
soup draft distill ... --steps N --device cpu --force --plan-only
soup draft list                                                 # what --auto-spec will pick up

v0.71.34 — Adapter algebra + LISA

See adapter algebra and LISA.

bash
soup adapters arithmetic "coder + 0.5*math - toxic" \
    --adapter coder=<p> --adapter math=<p> --adapter toxic=<p> -o <out> \
    [--allow-unscanned] [--allow-cross-base]

# LISA is config-side (sft or pretrain · transformers · text · quantization: none)
soup train --config sft.yaml   # training.lisa_enabled: true
                               # [lisa_num_layers] [lisa_interval_steps] [lisa_reset_optimizer] [lisa_train_embeddings]

v0.71.35 — Compliance pack

See compliance pack.

bash
soup init --template hipaa|soc2|eu-ai-act|sr-11-7   # regulation-shaped starting config
soup card <registry-id> -o MODELCARD.md            # provenance-carrying HF model card
soup push --model ./out --repo you/m --card <registry-id>   # upload it as the README (HF only)
soup ci init [--data d.jsonl --suite s.yaml --evidence ev.json] \
    [--branch main] [--python 3.11] [--force]      # writes .github/workflows/soup-gate.yml

Since v0.77.0 the data step of the generated workflow runs soup data validate ... --min-valid-fraction 1.0, so one row that does not convert fails the job. The job installs whatever soup-cli pip resolves for the --python you give. Since v0.77.2 soup ci init --python refuses a version outside 3.11 to 3.13 with exit 1 (python_version 3.10 is not supported by soup-cli 0.77.2 (needs Python 3.11 to 3.13), #2249); 03.11 and 3.011 were still accepted and written into the workflow as typed (tracked as #2534; since closed in v0.78.0: both exit 1 with python_version must look like '3.11', #2632, and the 3.10 message names soup-cli 0.78.0). Through v0.77.1 a workflow written for 3.10 was accepted, and on 3.10 pip resolves v0.76.x.

v0.72 — Layer streaming

Streaming is turned on by config keys, not CLI flags: there is deliberately no --stream-layers. See layer streaming, scaling a streaming run and preference losses over streaming.

bash
# The whole surface is in soup.yaml, under training:
#   stream_layers: true      # enable it (BETA)
#   stream_source: auto      # auto | ram | disk   (NVMe-class only; ram refuses rather than falling back)
#   stream_disk_kind: nvme   # v0.73.3: override the detected media type
#   stream_pin: false        # v0.74.0: force the pageable store (true refuses on a CUDA target if the
#                            #          box cannot page-lock it; since v0.76.0 that includes the disk tier's staging)
#   stream_read_ahead: 2     # v0.76.0: disk tier only, 1-8, the read-ahead depth of the background reader
#   stream_ngram_source: auto # v0.74.0: Qwen4-Exp external N-gram table, auto | ram | disk
#   stream_buffers: 2        # 2-8, VRAM buffers in the pool
#   quantization: 4bit       # or none; nothing else streams
# task: sft | dpo | orpo | simpo | kto             (kto needs batch_size >= 2, on every run since v0.76.0)
soup train --config soup.yaml
soup train --config soup.yaml --resume auto       # unblocked for streaming in v0.72.3 (load-side); the old
                                                  # torch < 2.6 resume block is gone since v0.75.0 raised the floor

soup doctor --disk    # report the media type behind the disk tier (NVMe / SATA SSD / HDD /
                      # Unknown). Opt-in: the probe costs about 9 s cold, 2.4 s warm

Since v0.76.0 the disk tier reads on a background thread through direct I/O and can stripe across several NVMe drives with the SOUP_LAYER_STREAM_STRIPE_DIRS environment variable. With it set, plain soup doctor lists each entry as a Stripe root row under System Resources and adds an issue when one is refused, and soup doctor --disk also applies the NVMe rule to them. The disk tier has the rules and what was measured.

v0.74.0 — the frozen base, the stack, and a listener

See v0.74.0: loaded in fp32.

bash
# MCP over the network. Both transports serve the same 18-tool registry as stdio.
soup mcp serve --transport sse --host 127.0.0.1 --port 8765 --auth-token "$TOKEN"
soup mcp serve --transport http --host 127.0.0.1 --port 8765 --auth-token "$TOKEN"
# --allow-execute is REFUSED with either network transport; --host/--port/--auth-token are
# refused under --transport stdio rather than silently ignored.
soup mcp runs reconcile --expunge-launching [--older-than-seconds N]   # recover capacity from stale launching rows; N defaults to 300 (min 1)

soup eval aider --model <aider-model-id> --output <results-dir> [--run-id <id>]   # Aider Polyglot ([aider])
# --model and --output are required. --model is an Aider/LiteLLM id such as
# openai/gpt-4.1, not a local checkpoint. --output is a DIRECTORY under the cwd: it
# receives Aider's own result files and Soup's soup_result.json (a name like report.json
# would just become a directory, and an existing file at that path is refused).
# Docker must be running; the model's generated code executes inside the container.
# Also: --exercises-dir, --image, --threads, --num-tests, --timeout, --allow-host-services.
# The [aider] extra is NOT enough to run it: you also need the official Aider
# benchmark image, source-built from an Aider checkout (./benchmark/docker_build.sh),
# and a clone of polyglot-benchmark. --allow-host-services lets untrusted
# model-generated code reach other services listening on the host.
soup train --config soup.yaml --cloud lambda   # plan-only by default, like --cloud modal
# soup export --format gptq needed --calibration-data from v0.74.0 until the format was removed in v0.77.0
soup serve --model ./output --host 0.0.0.0 --tool-auth-token "$TOKEN"     # exit 2 without the token, or with one outside 16-128 chars of A-Za-z0-9_-
soup sweep --config soup.yaml --param lora_rank=8,16   # not a config key (the rank is lora_r): exits 1
                                                       # before the first arm, instead of running a grid

Two scope notes on those lines. --tool-auth-token is the bearer token for the tool, /v1/thumbs, /v1/feedback and /v1/adapters routes of the transformers backend (since v0.77.0 the Python and Bash tool routes need it on every bind, loopback included, and since v0.78.0 so does POST /v1/adapters/load); generation, /v1/models, /health and /metrics carry no token on any backend, so a non-loopback bind publishes the model to whoever can reach the port, and an authenticating reverse proxy belongs in front of it. The vLLM, SGLang and MII backends do not read the token at all and check no Host header; since v0.77.2 their generation routes answer a request whose Origin names another site with 403, as the transformers server does (#2329; covered by tests, not exercised by hand before the release). Serving has the route-by-route table. And --param takes a shortcut name (lora_r, lr, epochs, batch_size and so on) or the full path (training.lora.r); a bare lora.r is not either: since v0.77.0 --dry-run refuses it before printing a grid ('lora' found at both root and training level, exit 1), and a sweep in which every arm fails exits 1 (one completed arm still exits 0). Through v0.76.1 every arm of such a sweep failed when its config was built, while the command still exited 0 with failed rows.

v0.78.0: new commands, new options and changed behaviour

v0.78.0 has 80 top-level commands (30 of them groups) and 261 help screens, counted on the v0.78.0 binary: seven screens are new and 23 changed. The new top-level commands are soup docs and soup prune-layer-cache; the new subcommands are soup data leakage, soup eval retention, soup loop set and soup loop rollback. The forms below are what --help prints; the 22 new options of soup loop init are listed on the loop page and the rest on the pages in the last column.

bash
soup docs search "<query>" [--top-k|-k <int>] [--format|-f table|json]
soup prune-layer-cache --model <id> [--cache-dir <dir>] [--yes]
soup data leakage --train <train.jsonl> --eval <eval.jsonl> [--samples 0..20] [--json]
soup eval retention --model <id|dir> --label <name> [--ledger retention.json] [--adapter <dir>] \
    [--add-task NAME=PATH ...] [--record] [--threshold 0.05] [--output <json>] [--device <d>] \
    [--config soup.yaml] [--chat-template-kwargs <json>] [--require-history]
soup loop set base_model|trace_dir|verify <value>
soup loop rollback
soup loop canary <adapter> --allow-dont-ship
soup ship --adapter <dir> --base-adapter <dir> ...
soup ship --task-mode reward --reward-fn accuracy|format|verifiable:math|verifiable:json_schema|path/to/file.py ...
soup ship --gate loop-v2 --corrections <jsonl> --held-out <jsonl> ...
soup train --push-as <user/repo> [--push-public] [--diagnose-gate <evidence> --diagnose-gate-require-all-modes]
soup chat --backend transformers|mlx ...
soup merge --backend transformers|mlx [--dequantize] ...
soup serve --adapter-dir <dir> --feedback-log <file> --max-tokens <1..16384> ...
soup export --model <path> --format onnx --onnx-task text-generation --validate-onnx --prompts <file> [--atol <float>]
soup eval quant-check ... --performance [--performance-warmup <n>] [--performance-repeats <n>] [--device auto|cpu|cuda|cuda:<i>|mps]
soup diagnose <run-id> --evidence <file> --require-all-modes
soup deploy hf-space ... --hardware <slug>
CommandWhat changed in v0.78.0Exit codesPage
soup docs searchNew. A pure-Python BM25 search over the guides bundled in the installed package, with no network; it prints a table (document, section, score, excerpt) or, with --format json, a JSON array. The index is built on the first search and cached at ~/.soup/cache/docs/docs_index.json. A search for text that is nowhere in the guides prints No matching documentation found for: .... It is a text search, not an answer engine0 including no match; 2 for --top-k below 1 or a --format other than table or jsonthis page
soup prune-layer-cacheNew. Lists the stale layer-streaming cache slots of a base (<model>@<commit> folders), and removes them only with --yes; it never removes the newest complete slot, a slot being written or re-sharded, or a slot without a readable index.json, and a stripe folder is listed and never deleted (stripe folder kept, delete manually: ...). Run by hand it has no run to name a slot, so on a base with two complete slots that both matter it can list the older one as removable. Training never calls it0 (a dry run, --yes, Nothing to prune.); 1 when a removal failed; 2 without --modelStreaming disk tier
soup data leakageNew. Reports exact input-text overlap between a training and an evaluation JSONL (outer whitespace stripped, case and inner whitespace exact; each eval record counts once) and writes no dataset; both files must be JSONL under the working directory. Upstream's own scope sentence is the one to keep: a clean result describes this exact check on these two files only0 clean; 2 overlap (--json too); 3 unusable input or a Click errorData tools
soup eval retentionNew. Measures accumulated forgetting across a series of versions against a ledger of pinned control tasks (retention.json by default): a task regresses when it falls more than --threshold below the best score any recorded version had; --require-history exits 3 unless the ledger already holds a recorded version, for CI (a lost or reset ledger would otherwise make every task new)0 / 2 / 3 / 1soup ship
soup loopNew set (change one of base_model, trace_dir or verify without --force), rollback, canary --allow-dont-ship, 22 new init options, resume also clears a failed-train hold, watch --detach writes .soup/loop.pid and .soup/loop.log (rotated at 10 MiB, one old file kept)2 for each refusal; see Exit codessoup loop
soup shipNew --base-adapter (before side = base plus that adapter, live run with --adapter only), --task-mode reward with --reward-fn (a .py file is executed with your permissions, only when you name it, and its hash is recorded; the hash says which file scored a verdict and is not a defence against a hostile one), --gate loop-v2 with --corrections and --held-out. --output and --emit-evidence may not be an input; a pickle adapter is refused3 for every refusal, before a model loadssoup ship
soup trainNew --push-public (--push-as now creates a private repository), --diagnose-gate-require-all-modes (needs --diagnose-gate, else exit 1); --resume and --hf-resume refused on task: ppo; --cloud refuses local inputs, --push-as and --gatesee the soup train bullets abovethis page
soup chat, soup mergeNew --backend transformers|mlx; soup merge --backend mlx also takes --dequantize. --max-tokens is an integer of 1 or more on soup chat and soup bench infer1 for each MLX refusal; 2 for a backend other than the two, and for --max-tokens below 1MLX backend
soup serveNew --adapter-dir and --feedback-log; --max-tokens is 1 to 16384; --trace-log, --record-thumbs and --feedback-log are refused with a backend other than transformers; --tool-auth-token also covers POST /v1/feedback and POST /v1/adapters/load2Serving
soup exportNew --validate-onnx, --prompts and --atol; the llama.cpp pin for GGUF export moved from b5270 to b12423 (an existing ~/.soup/llama.cpp is reused as it is: delete it to have the next export clone the pinned tag)3 for an unusable validation; see Exit codesModel export
soup eval quant-checkNew --performance (generation latency, tokens per second and CUDA memory, measured sequentially), --performance-warmup, --performance-repeats and --device; quality alone decides the exit 23 for a refused combination or a Click range error; 1 for a runtime failureQuant check
soup diagnose, soup train --diagnose-gateNew --require-all-modes and --diagnose-gate-require-all-modes: with --evidence, a mode missing from the file is NOT_RUN, not a neutral OK3 unless --allow-not-runDiagnose
soup deploy hf-spaceNew --hardware <slug>; streamlit-chat prints a deprecation warning1 for a refused slug or for ZeroGPU with streamlit-chatthis page
soup data sample-n must be a positive integer and --pct a number in (0, 100]1 (it was 0)Data tools
soup data validate, toxicity, decontaminate, score, forge; soup draft measureA nan for --min-valid-fraction, --threshold, --uncertainty-threshold or --min-acceptance is refused before any input is read3 for soup data validate, 2 for the othersExit codes
soup data generate--count is now "the number of examples requested": the command asks the provider again for rows it did not deliver or that failed validation until --count is reached1 after three requests in a row with no valid row (upstream's changelog; not run here)Data tools
soup data mix --applyYAML that does not parse, or a weight that is not a number, exits 2 (negative, zero, NaN and infinite weights are still accepted)2 (it was 1)Data mix
soup airgap-bundleA missing --model, --dataset, --wheel or --kernel folder, or a file where a folder is expected, is refused before anything is written1 (it was 0)Supply chain security
soup adapters mergeInputs it cannot merge (a rank that differs on a shared module, no shared tensor name, a shared tensor with two shapes) are refused; linear, dare and svd merges of two or more inputs now weight each input's own contribution by its weight, where v0.77.2 weighted it by the square of its weight (#2927; upstream's instruction: re-run merges whose output you compare or ship)2 (it was 0)Adapters
soup merge --low-memoryRefuses an adapter whose initialization rewrites the base (PiSSA, OLoRA, CorDA, LoftQ, LoRA-GA)1Model export
soup ci init--python takes 3.11 to 3.13; a leading zero in either part is refused1Compliance pack
soup recipes search--size matches the size a recipe declares, as a whole token: --size 17B no longer finds a recipe whose model id merely contains 17B, and --size 109B finds the Llama 4 Scout recipes0Recipes
soup runs compareCompares two local runs and also shows the stored dataset hashes, the code commit and code state observations, the full config differences and the latest stored evaluation scores, without a registry push (#2706); a run with no stored config is named and the config table skipped0 / 1Experiment tracking
soup migrate --from axolotlA custom prompt-format datasets[].type mapping no longer crashes: the config is written with data.format: auto and one warning that the template was not carried over0 (it was 1)Migration
soup version --json --fullAn optional import that writes to standard output no longer breaks the JSON: the noise goes to standard error (run with a stand-in module)0this page
soup profile, MCP profileThe Cannot estimate this run line names the field that stops the estimate. soup profile --config and the MCP profile tool do not take the seq_len and shape that the release notes name (only the Python function profile_from_config does); soup profile --model has --seq1Pre-flight tooling

Notes on the table.

  • soup docs search and the other docs. The search reads the guides that ship inside the installed package, so it answers for the version you have, not for main. It was run from an installed, non-editable wheel; upstream did not run that case before the release.
  • --hardware and Spaces. soup deploy hf-space was run without a token, so nothing reached the Hub: the hardware request and the ZeroGPU app on a real Space were read from the code, and which tiers exist and who may request them are the Hub's rules.
  • A .py file named in --reward-fn executes. It runs as Python on your machine with your permissions, must sit under the working directory and not be a symlink, and is called once per row; verifiable:code and judge_rank stay refused for this mode.
  • Two help strings are stale at the tag (upstream's --help, not this page): soup train --help names only training.relora_steps for --resume and --hf-resume although task: ppo and task: unlearn are refused too, and soup serve --help does not show the --max-tokens range.

v0.77.2: new options and changed behaviour

v0.77.2 adds no command. It adds soup profile --model with six options that go with it, and --minillm-on-policy to soup plan and soup apply, as the v0.77.2 binary prints them. 9 of the 254 help screens changed (the root screen, ab, adapters bisect, apply, mcp serve, plan, profile, serve and train); every other screen is the v0.77.1 one.

bash
soup profile --model Qwen/Qwen2.5-7B --method qlora --seq 2048 --batch 4 --gpu rtx3090
soup plan --config soup.yaml --minillm-on-policy
soup apply --config soup.yaml --minillm-on-policy
CommandWhat changed in v0.77.2Exit codesPage
soup profileNew --model (a Hugging Face id or a local directory) with --seq (64 to 1,048,576, default 2048), --batch (1 to 1024, default 4), --method (lora, qlora by default, full), --lora-r (1 to 4096, default 64), --optimizer (default adamw_torch) and --gradient-checkpointing (off by default, full, medium, selective, auto). It prices the run without a soup.yaml from the model's own config.json, read from a local directory, the Hugging Face cache or the Hub, with the same estimate a soup.yaml describing that run gets; it never guesses a size from the name (#2285, by @abdulwaarith0). With --json, stdout is only the JSON document, every refusal goes to stderr, and the document carries a lora_r field (the stdout rule is #2398; soup cost --json keeps its diagnostics on stderr the same way, #2345). On Apple Silicon the estimate is compared with Metal's recommended working-set size, not the whole unified memory (from the release notes; not run here, and not measured against an MLX run)1 with the reason when no config.json can be read, for --model together with --config, and for --seq and the other companions without --modelExperiment tracking
soup plan, soup applyNew --minillm-on-policy, as on soup train, so an on-policy MiniLLM distill config validates and is hashed like any other; soup apply keeps the flag in the soup train command it prints and still only records the plan. A YAML syntax error or an unreadable config is reported in one line that names the config (#2315, #2323, by @Nari-Ab). The soup apply --dry-run help now reads "Verify drift and exit without marking the plan as applied"2 for a syntax error or an unreadable config (it was 1)Pre-flight and tooling
soup serve--tool-auth-token and SOUP_TOOL_AUTH_TOKEN follow the rule soup ui and soup mcp serve use: 16 to 128 characters from A-Z, a-z, 0-9, _ and -, the whole value, on every bind (#2329). The vLLM, SGLang and MII generation routes refuse a request whose Origin names another site (403), covered by tests and not exercised by hand2 for a token outside the rule, before the model loadsInference server
soup mcp serveThe --allow-mutating and --allow-execute help strings describe the plan-only tools and the execution tools; through v0.77.1 they said execution never happens (#2268, by @TejasS1233, who also corrected the soup ab, soup train --gpu and soup serve --tool-auth-token help)unchangedMCP server
soup train--gpu lists each provider's types (modal: t4, l4, a10g, a100, a100-80gb, l40s, h100; lambda: a10, a100, a6000, h100; runpod: a100, a40, h100, rtx3090, rtx4090); a type another provider lists was refused before and still is. --gpus N asks the start confirmation once, in the launching process, and passes --yes to the child ranks (#2250, by @CG-5228; read from the code)2 for an unlisted --gpuMulti-GPU
soup train --cloud runpod, soup train --cloud lambdaRunPod: the remote script builds a virtual environment at /workspace/venv that sees the image's installed packages, installs soup-cli[train] of the version you run into it and trains with that environment's soup; when the remote command exits non-zero the controller prints a bounded, redacted tail of the remote stderr, and the SSH readiness probe (30 seconds) and the remote command (25 hours) time out with messages that name the step (#2352, #2256). Lambda: the instance's setup log also holds the apt-get and pip install output (#2282). The RunPod bootstrap has not been validated on a live Pod (#2192, #2098)unchangedBackends
soup abThe one-line description now reads "Two-sided sequential A/B harness ... (Bayes factor with a confidence-sequence accept rule)" instead of "mSPRT". When too few rows are usable, the Not enough rows yet panel is followed by Skipped rows: ..., a count of the rows it could not use by reason (invalid JSON, not an object, arm missing or not control/treatment, metric missing or non-numeric), so a misspelled --metric or arm is no longer silent (#2281, by @EtherealMelon)unchanged (0)Production trace ecosystem
soup data cleanWhen format detection refuses the file, it prints Warning: rows are not in a recognised format; nothing was cleaned beyond character sanitising. and the detection error before it cleans, on stderr under --json (#2281)unchangedData clean
soup data topics, soup data dedup --semantic, soup data canary checkThe default --device auto resolves to cuda when CUDA is available and cpu otherwise (MPS is not chosen). Through v0.77.1 it was handed to PyTorch as a device name and the command stopped with a RuntimeError, so pass --device cpu or --device cuda there (#2279, #2396, by @harshitthek; from the code, not run: the site's soup has no PyTorch)unchangedData moat II
soup eval quant-checkA --tasks file that cannot be loaded is refused before either model loads (#2185, by @Faisal-Fayaz)3 (it was 1, after both models had loaded)Quant-check
soup eval compare, soup eval leaderboardA stored score that is NaN or infinite is refused instead of printed (#2477, by @taljeon)1Exit codes
soup ship--adapter <local adapter directory> returns DON'T SHIP with the rule adapter_noop, before either model loads, when every lora_B tensor in it is zero and every other saved tensor is zero too; a Hub adapter id is not checked this way, and if the weights cannot be read (NumPy missing, say) it prints a warning and goes on to the live evaluation (#2434, by @ShryukGrandhi); --progress jsonl reports live items after each generation chunk (#2421) and ends in 130 on Ctrl+C (#2417)2 for adapter_noop; 130 for Ctrl+C in JSONL mode (it was 1)soup ship
soup dataingest, persona-mix, generate, canary check, mix --optimize, forge and recipe --execute refuse an --output that names one of their inputs, before any output is written (recipe --execute checks its seed files after the recipe has validated; ingest refuses an output that names its source document before reading it); the shared message no longer starts with Error: or Plan failed: (#2274, #2349, by @kok-o)1Exit codes
soup distill-prompt, soup data evolve, soup data gen-magpie, soup data filter --perplexity, soup data dedup --fieldStop instead of writing an empty, unfiltered or partial result (#2209, #2348, #2377, #2336)3 for distill-prompt (output untouched); 1 for the othersExit codes
soup adapters arithmetic, soup adapters mergeRefuse an --output that is an input adapter, with Output path refused: ... (#2274, #2349, #2379)1Exit codes
soup adapters bisectA program that cannot be started exits 2 with no verdict: one named in full in the template is refused before the first probe, and when {ckpt} completes the name the refusal comes at the first probe that fails, which can follow probes that ran. On Windows the template is split without POSIX quoting: double quotes around a whole word group it and are removed, single quotes stay in the argument and a quote inside a word groups nothing, so write "{ckpt}" in double quotes (#2314, tracked as #2488; since closed in v0.78.0, #2603: the template is split with Microsoft C runtime rules plus one addition, so a word that starts with a single quote, such as '{ckpt}', is grouped and loses its quotes; read from the code)2Exit codes
soup mergeBoth paths (the regular one and --low-memory) load the base at the Hub commit recorded in the adapter's training provenance, not the latest one; with HF_HUB_OFFLINE set and that commit not cached, the merge fails where v0.77.1 merged whatever was cached (#2485, by @vaputa; not exercised by hand, and #1902 stays open for the paths not yet bound: Unsloth and MLX loads, other hubs and local or cached-path hints)1 on that failureExport
soup registry push--run-id refuses a run whose status is not completed (#2248, by @Guts1005)1 (it was 0)Experiment registry
soup quantizeA --to value Rich read as markup, such as "[/]", is shown as typed and refused with the allowed values (#2217)2 (it was 1)Exit codes
soup loop watch, soup loop statusThe monthly spend restarts at 0 when the UTC month changes; status shows the spend and run count the next iteration would see, and refuses a stored spend that is not a finite, non-negative number (#2387, #2424, by @abdulwaarith0)2 for an invalid stored spend (it was 0)soup loop
soup rewind--json writes strict JSON: a non-finite value is null and its record carries "non_finite": true (through v0.77.1 it wrote bare NaN and Infinity)unchangedsoup rewind
soup completionsPrints Typer's own script for bash, zsh and fish. A script written by an earlier version does not complete; run the command again and replace it (#2283)unchangedPre-flight and tooling
soup ci init--python outside 3.11 to 3.13 is refused; 03.11 and 3.011 were accepted and written as typed (#2249, tracked as #2534; since closed in v0.78.0, exit 1, #2632)1Compliance pack
soup doctorWhen CUDA_VISIBLE_DEVICES hides every card nvidia-smi lists, it says so and prints the setting instead of advising a PyTorch reinstall (#2206)unchanged (advisory)Pre-flight and tooling

More than 50 pull requests make soup runs, soup registry, soup deploy, soup migrate, soup push, soup init, soup data and many more commands print paths, names and messages as typed: brackets and :name: text are kept, and terminal control characters are removed from the display only. The release does not claim it for every command: a backslash before a [ that is not a complete markup tag is still dropped when soup env lock, soup init, soup shrink, soup data mix --apply, soup draft distill and soup registry show print a path or name (#2533), the :name: codes still expand in the messages that soup eval compare and soup eval leaderboard print for a non-finite score and in many other modules (tracked as #2489), and soup export --format "[/x]" ends in a markup error with exit 1. (Since closed in v0.78.0, run on the v0.78.0 binary: soup export --format "[/x]" prints Unsupported format: [/x] and exits 1, and soup eval compare and soup eval leaderboard keep :name: text and a backslash before [ as typed. Upstream counts more than 30 pull requests in the v0.78.0 pass, among them soup env lock, soup lock, soup ingest, soup prune-prompt, soup data mix --apply, soup advise, soup agent, soup steer, soup quantize, soup data clean, soup tunability, soup ui, soup can, soup rewind, soup diagnose and soup edit; it is still a display-only change, so values written to files, --json documents and generated configs keep the original text, and unescaped exception text in some commands is still open, tracked as #2489.)

The Python API lost six estimate functions of soup_cli.utils.profiler (estimate_model_memory, estimate_trainable_params, estimate_lora_memory, estimate_optimizer_memory, estimate_activation_memory and estimate_total); they had no caller since v0.77.1, so their numbers were not what soup profile printed (#2369). soup profile --json returns the estimate, and the estimate itself is soup_cli.utils.vram_estimate.estimate_vram.

v0.77.1: two new options and changed behaviour

v0.77.1 adds no command and two options, as the v0.77.1 binary prints them. Every other help screen is the v0.77.0 one.

bash
soup infer --model <path> --input <path> --output <path> --backend mlx
soup ship --evidence <ev.json> --progress jsonl
CommandWhat changed in v0.77.1Exit codesPage
soup inferNew --backend transformers|mlx (default transformers). With mlx, a native text LoRA adapter or an MLX base model generates without Torch or PEFT; --task other than text, --batch-size above 1, --cuda-graphs, --device and a --hub other than hf are refused by name. soup chat on MLX is still open (Since closed in v0.78.0: soup chat --backend mlx and soup merge --backend mlx exist, #2123, #2124)1 for a refused option or a missing [mlx] extra; 2 for any other --backend valueMLX backend
soup shipNew --progress jsonl: opt-in versioned JSONL events on stderr; stdout and the exit codes are unchanged3 for another --progress value; 1 for an unexpected exception in that mode (Ctrl+C in that mode is 130 since v0.77.2)soup ship
soup plan, soup applyRun the validation soup train runs and print the same Config validation error: lines; no plan is written and an existing state file is not changed. soup apply no longer reads the model1 for a config soup train refuses (it was 0)Pre-flight and tooling
soup eval gateA suite that is not valid YAML, or whose top level is not a mapping, is refused with Cannot load suite: and the file name3 (it was 1)Eval gate
soup data (eighteen commands)An --output that is the same file as an input is refused before the data is read. persona-mix was not among them (Since closed in v0.77.2: persona-mix, ingest, generate, canary check, mix --optimize, forge and recipe --execute refuse it too)1; lint 3; augment and evolve 2Exit codes
soup adapters bisectA fixed --eval-command program that is not on PATH is refused before the first probe, with no verdict (Since extended in v0.77.2: a program that cannot be started is refused too, and when {ckpt} completes the name the refusal comes at the first probe that fails)2Exit codes
soup adapters check, diff, scan, merge, arithmeticA missing NumPy (and, for merge and arithmetic, safetensors) is named instead of reported as a corrupt file or a traceback1Exit codes
soup profileThe panel and --json carry the shared peak-VRAM estimate's terms; a batch_size, max_length or model size (over 1,000B parameters) the estimate cannot price is refused with Cannot estimate this run; a model outside the 3B fitted range still gets an estimate1 (it was 0)Experiment tracking
soup train --cloud lambdaAn output directory with a path part that starts with - is refused in the plan2 (it was 0)Backends

In upstream's list, nvidia-smi, sysctl, the disk-probe tools, git, ollama, the llama.cpp binaries, trtllm-build, docker, the Modal CLI, gh, ssh and scp (the RunPod and Lambda controllers), the code-sandbox tools, accelerate for soup train --gpus and the soup adapters bisect --eval-command program now run by the absolute path found in an absolute PATH directory, and the current directory is not searched (#2205, #2213); a tool that is only in the current directory or in a relative PATH entry is no longer found. Environment variables has what that reads and sets.

v0.77.0: new, changed and removed flags

v0.77.0 adds no command. It adds options to eight, gives soup train --cloud a third provider, and removes AWQ and GPTQ export, as the v0.77.0 binary prints them:

bash
soup --version                                             # print the version and the project URL, then exit 0
soup train --config soup.yaml --cloud runpod [--gpu a100|h100|a40|rtx3090|rtx4090] [--cloud-submit]
soup train --config soup.yaml --yes                        # required when standard input is a pipe or a file
soup merge --adapter <dir> [--base <model>] [--output <dir>] --low-memory
soup export --model <path> --format gguf [--verbose] [--no-install-deps]
soup registry push --run-id <id> --name <n> [--tag v1] [--data <file>] [--idempotency-key <key>]
soup ship --evidence <ev.json> --config soup.yaml --adapter <dir> --task-eval <tasks.jsonl> --require-provenance [--data-sha256 <64hex>]
soup ship --base <m> --adapter <dir> --task-eval <tasks.jsonl> --chat-template-kwargs '{"enable_thinking":false}'
soup loop init <served-model> --eval <tasks.jsonl> --baseline registry://<id> --pre-wired [--thumbs-db <db>]
soup loop watch --pre-wired [--tool-auth-token <token>]
soup compile-tools <spec> --eval <tasks.jsonl> --optimizer textgrad --engine <model>
soup compile-tools <spec> --eval <tasks.jsonl> --optimizer gepa --task-lm <model> [--reflection-lm <model>]
CommandWhat changed in v0.77.0Exit codesPage
soup --versionNew root option; prints soup v0.77.0 and the project URL, the same short form as soup version0this page
soup train--cloud runpod: plan-only unless --cloud-submit, and not yet run against a real RunPod account (tracked as #2098); one attempt, one copy-back with a 15-minute limit, the Pod deleted afterwards, and local input files not uploaded. Without --yes, a run whose standard input is a pipe or a file is refused before any data loads3 without --yes on such a standard input; 1 when a RunPod submit is not configured; 2 for a refused cloud planBackends
soup export--format awq and --format gptq removed, and with them --bits, --group-size, --calibration-samples and the [awq] and [gptq] extras; --verbose and --no-install-deps (GGUF only); an architecture the pinned converter cannot convert is refused before llama.cpp is cloned1 for awq or gptq, a missing conversion package under --no-install-deps or an unsupported architecture; 2 for a removed flag or a GGUF-only flag on another formatModel export
soup quantize--to takes gguf, onnx or tensorrt2 for awq or gptqModel export
soup merge--low-memory: merge tensor by tensor from the base safetensors, plain LoRA and --save-format fp16 only2 with another save format; 1 for an adapter it cannot reproduce exactlyModel export
soup registry push--data <file> records its SHA-256 as data_hash (the file registered as the training input, not proof of what the run trained on); --idempotency-key makes a retry return the existing entry1 for a refused file or a key reused for a different registrationModel registry
soup registry (any command taking a reference)A name:tag that matches several entries is refused instead of picking the newest1Model registry
soup ship--require-provenance (an offline drift check against the adapter, task and source bytes, suite version and verdict policy; not an attestation), --data-sha256 (caller-asserted), --chat-template-kwargs3 for a misuse or a drifted bindingsoup ship
soup loop init, soup loop watch--thumbs-db (or SOUP_LOOP_THUMBS_DB) feeds soup serve --record-thumbs into the pre-wired harvest; --tool-auth-token (or SOUP_TOOL_AUTH_TOKEN) lets the deploy stage activate an adapter on a protected server2 for a refused database, or an invalid watch setting with --detachsoup loop
soup compile-tools--engine (TextGrad), --task-lm and --reflection-lm (GEPA)2 when a live run lacks its engine or task modelAnti-trend insurance
soup serve/v1/tools/python and /v1/tools/bash need --tool-auth-token on every bind (401 without it) and answer 501 without OS-level isolation; the token can come from SOUP_TOOL_AUTH_TOKENunchangedInference server
soup ab--beta is refused2Trace ecosystem
soup data pii, toxicity, langdetect, educational, score, decontaminateRead alpaca, preference, KTO and ShareGPT rows; count rows with no readable text1 when no row has text they can readCompliance pack
soup recipes verify, soup recipes useverify reads --config before it checks the training stack; use refuses a recipe marked unavailable3 for a missing --config on any install; 3 for an unavailable recipeRecipes
soup sweep, soup eval auto, soup drift-alarm, soup adapters merge --strategy cmaesFail when nothing succeeded or nothing was compared1, 1, 1, 2Exit codes
soup ci initA workflow generated by v0.77.0 passes --min-valid-fraction 1.0 to its data-validate step; an existing workflow keeps its old step until you regenerate it (soup ci init --force)unchangedCompliance pack
soup deploy autopilot--target rtx-4090-24gb plans 4-bit QLoRA with vLLM instead of AWQunchangedAgent Forge
soup data ingestPDF and DOCX readers come from pip install "soup-cli[documents]"unchangedData pipeline pro

v0.76.0: new commands and flags

The six commands that are new in v0.76.0, plus soup bench infer (the old soup bench <model>, now a subcommand of the new bench group), as the v0.76.0 binary prints them:

bash
soup rewind [RUN_ID] [--step <n>] [--top 10] [--json <path>] [--no-preview]
soup bench infer <model> [--base <m>] [--backend auto|transformers|mlx] [--max-tokens <int, 1 or more>] [--num-prompts <n>] [--prompts-file <p>] [--p50] [--p95] [--cuda-graphs]
soup bench train [--config soup.yaml] [--steps 20] [--warmup 3] [-o bench-train.json]
soup data clean <path> [-o <out>] [-f] [--dry-run] [--min-tokens <n>] [--prune-echo] [--strip-boilerplate] \
  [--repair-code] [--repair-json] [--drop-invalid-json] [--json]
soup recipes verify [--config <soup.yaml>] [--json] [--templates|--no-templates]
soup adapters check <adapter-dir> [--json]
soup adapters audit <adapter-dir> --config <soup.yaml> [--json]
CommandWhat it answersExit codesPage
soup rewindWhich dataset rows were in the batch behind a loss spike0 a report printed, including No loss spikes recorded.; 1 nothing to read; 2 a refused --json pathsoup rewind
soup bench inferThe old soup bench <model> inference benchmark; soup bench <model> still routes hereunchangedsoup bench
soup bench trainWhether the model actually trained for a fixed number of steps; it fails when it did not0 valid; 1 not training, a config outside its scope or the [train] extra missing; 2 a refused -o path or a Click errorsoup bench
soup data cleanSanitise a dataset (control characters, zero-width spaces, BOMs by default; heuristic repairs are opt-in) and never modify the input0 done, including dropped rows and --dry-run; 1 an input or output refused; 2 a mistyped optionClean a dataset
soup recipes verifyCan this recipe's LoRA adapter attach, checked on the meta device with no weights downloaded0 everything checkable attaches; 2 a config cannot attach; 3 a missing or unparseable --config, or a usage error; 1 a crash, or torch, transformers or peft failing to importRecipes
soup adapters checkIs this adapter trained at all0 alive; 2 inactive; 1 the adapter could not be readAdapter check
soup adapters auditDid the run use the settings in this soup.yaml0 no divergence (unknown rows do not fail); 2 diverged, and also a forgotten --config or a mistyped flag; 1 the adapter, the config or the recorded settings cannot be readAdapter check

Limits worth knowing before you script them, each stated as upstream behaves at v0.76.0:

  • soup rewind --json writes no file when the run had no spike (it prints No loss spikes recorded. and exits 0), and, through v0.77.1, wrote NaN or Infinity, which is not strict JSON, for a non-finite loss. (Since closed in v0.77.2: the file is strict JSON, a non-finite loss, baseline or ratio is written as null and the record that held it carries "non_finite": true.)
  • soup adapters check needs NumPy although it does not need PyTorch (through v0.76.1 it also needed the safetensors package and exited 1 on a bfloat16 weights file; since v0.77.0 it reads the file itself and widens bf16; without NumPy it exits 1 and names the package since v0.77.1, where v0.77.0 reported a corrupt weights file), exits 1 on an MLX adapter (the MLX trainer names its file adapters.safetensors), and reports inactive for a non-LoRA PEFT adapter such as VeRA. Its scope is LoRA adapters saved by the transformers path.
  • soup recipes verify exits 0 when everything it could check attaches, which can mean everything was unverified (a gated repository, or a base that needs trust_remote_code).
  • soup data clean ignores --strip-boilerplate and --prune-echo on dpo and kto rows without saying so.

Existing commands that changed

CommandWhat changed in v0.76.0Page
soup train--nodes, --node-rank, --master-addr, --master-port for multi-node launches; --gpus returns the launcher's exit code on Windows too; --diagnose-gate exits 3 on a NOT_RUN probe; --dry-run on a config whose data loads zero train rows exits 1Multi-GPU
soup infer--batch-size N (opt-in, default 1) and --cuda-graphs (experimental, needs PyTorch 2.14 or newer)soup bench
soup serve--auto-quant refuses with exit 2Inference server
soup export, soup quantizeAWQ and GPTQ are deprecated, removal tracked for v0.77 (since closed in v0.77.0: removed); --deploy is validated before anything runsModel export
soup expect--judge <url>; exit 2 means the suite failed, exit 3 means the suite or data was rejected, exit 1 means the judge was unreachableData engineering pro
soup eval gate, soup eval against, soup lock check, soup data validate, soup data lint, soup shipExit codes moved to 0 pass, 2 gate failure or drift, 3 usage or input errorExit codes
soup eval behavior, soup eval checklist--evidence is required (on behavior, unless --base-model is given); without it they exit 3Eval depth
soup eval quant-check--allow-stub; a model that fails to load stops the command instead of silently scoring a stubQuant check
soup eval benchmark, soup eval custom--trust-remote-code (default deny); soup eval benchmark exits 1 with Nothing measured; nothing saved to experiment tracker. when no benchmark produced a score (it used to exit 0)Experiment tracking
soup diagnose--allow-not-run, --holdout; the NOT_RUN verdict exits 3soup diagnose
soup abTwo-sided, variance-robust sequential test that reports better or worse; --beta retired (ignored with a warning that named v0.77 as the version that would refuse it; since closed in v0.77.0: refused, exit 2)Trace ecosystem
soup draft measure--sweep-k; reports the break-even acceptance rate and the best draft lengthsoup draft
soup sweep--sweep-config; --param is no longer required (give one of the two)Experiment tracking
soup adapters sign, soup adapters verify, soup attest emit, soup attest verifySigstore keyless signing (--backend sigstore, --sign sigstore, --interactive-oidc, --cert-identity, --cert-oidc-issuer); needs pip install "soup-cli[sigstore]"Supply chain security
soup autopilot--model, --data and --goal are asked for on a terminal (the goal defaults to chat); when standard input is not a terminal a missing one exits 2Autopilot
soup data inspect, soup data doctor, soup data score, soup data canary insert, soup data recipe--image-dir; --mask-history; --benchmark-file; --format alpaca|sharegpt|chatml; --provider ollama|anthropic|vllm with --model, --base-url and --offlineData tools
soup edit set, soup steer train, soup eval unlearning, soup diagnose--registry-id and --attach-to-registry record the result (they need --output) and exit 1 when the attach failsUnlearning and editing
soup pluginsPlugins are discovered from the soup_cli.plugins entry-point group, enable persists an opt-in, install exits 2 and installs nothingPlugins
soup uiThe launch URL carries ?token=; on a loopback bind the page keeps its session in an HttpOnly cookieWeb UI
soup doctorGPU architecture and precision block, MLX panel, --configInstallation
soup reward stress--attacks default adds wrapped_junk and answer_sprayReward Forge
soup local-rl train--backend is accepted for compatibility and has no effectAnti-trend insurance

Every top-level command

The 80 top-level commands of the v0.78.0 binary (the 78 of v0.77.2 and v0.76.0, plus soup docs and soup prune-layer-cache), with the page that documents each. A command marked "this page" has its forms above; the rest are documented in depth elsewhere and are not repeated here.

CommandWhat it doesDocumented on
soup initCreate a soup.yaml from a wizard or a templateConfiguration
soup trainStart a training run from a soup.yamlTraining methods
soup chatChat with a trained model in the terminalthis page
soup costEstimate training cost in USD across cloud providersObservability
soup pushPush a model to Hugging Face Hub or another hubHub integration
soup exportExport to GGUF, GGUF-UD, ONNX, TensorRT-LLM, BitNet, tq1_0 or TorchAOModel export
soup docsSearch the documentation bundled in the installed package (soup docs search)this page
soup prune-layer-cacheRemove stale layer-streaming cache slots of a base (a dry run unless --yes)Streaming disk tier
soup mergeMerge a LoRA adapter into its base modelthis page
soup cardGenerate a model card from a registry entryCompliance pack
soup migrateImport a LLaMA-Factory, Axolotl or Unsloth configMigration
soup serveOpenAI-compatible inference serverInference server
soup sweepGrid or random hyperparameter searchExperiment tracking
soup diffCompare two models' outputs on the same promptsExperiment tracking
soup inferBatch inference over a JSONL of prompts, or Whisper transcription; --backend mlx for native MLX text generationthis page; soup bench for --batch-size and --cuda-graphs; MLX backend for --backend
soup profileEstimate memory, speed and GPU needs before trainingthis page
soup doctorCheck dependencies, GPU and a configInstallation
soup quickstartCreate sample data and a config, then train a small demoInstallation
soup uiLaunch the Web UIWeb UI
soup autopilotPick hyperparameters from a model, a dataset and a goalAutopilot
soup historyLineage tree of the registry entries that share a nameModel registry
soup whyExplain a run's training anomalies in plain EnglishObservability
soup rewindName the dataset rows behind a loss spike (new in v0.76.0)soup rewind
soup tuiFull-screen terminal dashboard of runs, metrics and logsObservability
soup monitorLive GPU monitor: utilisation, temperature, VRAM, powerthis page
soup fetchFetch a ready-to-edit file from the bundled catalogthis page
soup quantizePrint the matching soup export command; quantizes nothingthis page
soup merge-sharded-fsdp-weightsConsolidate FSDP shard files into one safetensors filethis page
soup delinearize-llama4Reshape Llama 4 fused expert weights to 3-Dthis page
soup diagnosePost-training report card over the failure-mode probessoup diagnose
soup airgap-bundleTarball of a model, datasets, wheels and kernels for an air-gapped hostSupply chain security
soup ingestImport traces from Langfuse, LangSmith, Helicone, OpenPipe, OTel or OpenAI stored completionsTrace ecosystem
soup prune-promptStrip a system-prompt prefix shared across training rowsTrace ecosystem
soup abTwo-sided sequential A/B test on latency, judge score or retry rateTrace ecosystem
soup drift-alarmRolling-KL drift alarm with optional Slack or Discord webhookTrace ecosystem
soup tunabilityProbe-train small bases and rank them by eval delta, cost and licensePre-flight and tooling
soup planRender a pre-flight plan and write soup.tfstate; refuses a config soup train refuses (exit 1, no plan written, since v0.77.1)Pre-flight and tooling
soup applyCheck soup.yaml against soup.tfstate (exit 3 on drift), mark the plan applied and print the soup train command to run; it does not start training; refuses a config soup train refuses (exit 1, state file unchanged, since v0.77.1)Pre-flight and tooling
soup completionsEmit a bash, zsh or fish completion scriptPre-flight and tooling
soup license-advisorRecommend a license-clean base for a deploy targetPre-flight and tooling
soup compileCompile a DSPy or GEPA prompt program against an eval suiteAnti-trend insurance
soup distill-promptDistill prompt-heavy traces into a small fine-tune planAnti-trend insurance
soup compile-toolsOptimise tool schemas and descriptionsAnti-trend insurance
soup apple-adapterConvert HF, MLX and Apple FoundationModels adaptersAnti-trend insurance
soup builddbt-style DAG of dataset transformsData engineering pro
soup expectRun an expectations suite against a JSONL datasetData engineering pro
soup shrinkDepth-prune a model, with an optional distill-healsoup shrink
soup versionShow the Soup versionthis page
soup ciWrite a fine-tuning CI gate workflowCompliance pack
soup dataDataset tools: inspect, convert, merge, dedup, validate, clean and moreData tools
soup deployDeploy to Ollama or Hugging Face Spaces, or plan a deployModel export
soup runsExperiment tracking: list, show, compare, clean runsExperiment tracking
soup evalBenchmarks, custom evals, LLM judge, gates and eval-depth commandsExperiment tracking, Eval gate
soup adaptersAdapter management: list, diff, merge, sign, verify, check, audit and moresoup adapters
soup recipesReady-made configs: list, show, use, search, verifyRecipes
soup benchBenchmark a model: inference speed or a fixed-step training runsoup bench
soup registryModel registry: push, list, show, diff, search, promote, deleteModel registry
soup spectrumSpectrum SNR scan for targeted trainingSpectrum
soup canPack, inspect, verify, fork and run shareable .can artifactsSoup Cans
soup llamaProxy to the llama.cpp binariesGGUF and Ollama
soup pluginsDiscover, list, enable and disable pluginsPlugins
soup agentAgent Forge: spec to tool-calling dataset, train, eval (soup agent eval --spec <spec> --predictions <jsonl> [--sandbox])Agent Forge
soup tokenizerTrain a BPE tokenizer from a JSONLv0.53.9 notes
soup advisePre-flight decision: prompt engineering, RAG, SFT, DPO or GRPOsoup advise
soup shipSHIP or DON'T SHIP verdict: task win and no catastrophic forgetting; --progress jsonl for JSONL events on stderrsoup ship
soup loopContinual-learning loop: serve, collect feedback, train, verdict, canary, then promote or roll back (the --help line still says "Data flywheel")soup loop
soup bomCycloneDX and SPDX bill of materialsGovernance
soup attestIn-toto and SLSA-3 attestations, ed25519 or Sigstore signedGovernance, Supply chain security
soup audit-logTail and rotate the local JSONL audit logGovernance
soup editKnowledge editing with ROME, MEMIT or AlphaEditUnlearning and editing
soup steerActivation steering with CAA, ITI or RepERAG and steering
soup envEnvironment lockfile and ABI drift detectionPre-flight and tooling
soup probeActivation probes: sleeper, truth, harm, interference, SAE diff, probe packPost-train x-rays
soup lockShared run lockfile: write, show, checkAdapter lifecycle
soup local-rlPersonal-LLM feedback flywheel: init, status, record, harvest, trainAnti-trend insurance
soup iterative-dpoSample, score, pair and retrain loopLoop hardening
soup ra-ditRA-DIT two-stage retriever-then-generator runRAG and steering
soup mcpModel Context Protocol server for coding agentsMCP server
soup draftTrain and measure a speculative-decoding draft modelsoup draft
soup rewardSynthesise and stress-test a deterministic reward verifierReward Forge

Global Flags

bash
soup --version                      # print the version and the project URL, then exit (v0.77.0; soup version also works)
soup --verbose <command>            # Full tracebacks instead of friendly errors (short form -V)
soup --log-level debug <command>    # quiet | normal | verbose | debug (default: normal)
soup --no-audit-log <command>       # skip ~/.soup/audit.jsonl for this invocation (or SOUP_NO_AUDIT_LOG=1)
soup --no-telemetry <command>       # opt out for this invocation (telemetry is off unless SOUP_TELEMETRY=1 anyway)

Note: all five are root options: they must go before the command name, not after (soup train --no-telemetry is refused with No such option). soup --install-completion and soup --show-completion are the two shell-completion options.

Soup is free and Apache-2.0. If it saved you a training run, starring the repo costs nothing and helps most. You can also fund the GPU time behind the work a 4 GB laptop cannot reach.