Skip to content

Model Registry

v0.26.0 ships a local model registry at ~/.soup/registry.db. Every fine-tune can be pushed, tagged, searched, diffed, and walked as a lineage DAG — entirely offline, no server, no cloud.

Why a registry

Most people end up with 17 checkpoint directories called output-3-final and no idea which one won. The registry fixes that: one row per fine-tune, carrying config, eval baseline, and parent lineage.

Push a run

bash
# After training a model
soup registry push \
  --run-id run_20260420_143052_a1b2 \
  --name chat-llama \
  --tag v1 \
  --notes "Alpaca 15k, 2 epochs, lr=2e-4"

The registry derives lineage from the run's config (same base model, different run id); there is no --parent flag.

Only a completed run can be registered (since v0.77.2, #2248, by @Guts1005). A run whose status is failed or running (or any other status that is not completed) is refused with run <id> has status '<status>'; only a completed run can be registered, exit 1, and nothing is written. Through v0.77.1 the same push registered an entry and exited 0. An unknown run id is still Run not found: <id>, exit 1. Since v0.78.0 (#2470) a run id prefix that matches more than one run exits 1 with Run id prefix '<id>' matches 2 runs; give more characters instead; soup registry push --run-id and soup runs show were run on v0.78.0 with two runs sharing a prefix, and upstream's changelog lists the same lookup for soup runs (compare, delete, clean and the rest), soup eval compare, soup rewind and soup why.

Record the training data and make a push safe to retry (v0.77.0)

bash
# Record the training file's SHA-256 as the entry's data_hash
soup registry push --run-id <id> --name chat-llama --tag v1 --data data/train.jsonl

# Make a push safe to retry after a crash or a timeout
soup registry push --run-id <id> --name chat-llama --tag v1 --idempotency-key job-42

--data <file> stores the file's SHA-256 as the entry's data_hash. Upstream's help is exact about what that means: it is the file registered as the training input, not proof of what the run trained on. The file must exist and sit under the current directory, or the push exits 1 before the database is opened (--data file not found: ..., --data must be under the current working directory: ...). Without --data, the push copies the SHA-256 that soup train recorded at startup, when there is one (#2024).

What a run records about its data and its base (v0.77.0). soup train hashes a single local raw text-training file (data.train) before it loads or transforms it and records the SHA-256 of the whole file as training_data_sha256, in the experiment tracker and in soup_run.json beside the final artifact; soup registry push --run-id copies it without reopening today's file (#2024). It describes the source bytes at startup, not the examples that trained the model. Capture is bounded (256 MiB, 5 seconds checked between reads), and a larger, unreadable or changing file is recorded as unknown, never as the hash of a prefix. A Hub dataset, a URL, data.interleave, data.streaming, data.replay, forget and retain sets, pre-tokenized data, task: unlearn, task: tts and non-text modalities stay unknown, and so do runs from before v0.77.0. The push also copies the run's recorded base revision and how it was known; on the transformers backend, resident, layer-streamed and multi-GPU runs record the Hub commit of the base they loaded, while Unsloth loads, the non-Hugging-Face hubs, and local or cached-path bases are not bound (#1902, still open). Since v0.78.0 a single-process Hugging Face Transformers soup sweep arm and a single-process soup train on backend: mlx with a Hugging Face base are bound too (details on the experiments page). See Experiment tracking for how soup train resolves that commit. soup registry show prints base_revision, base_revision_source, training_data_sha256 and data_hash, with unknown or - when nothing was recorded. A cache_path source only reflects a local directory name and does not verify its bytes.

--idempotency-key <key> (1 to 128 characters from letters, digits, ., _, : and -) makes a retry write nothing and return the existing entry, printed as Already registered, provided the name, base model, task, run, config, data hash and recorded base identity match and the tag is one of the entry's tags. Anything else under the same key is refused, naming the entry and the fields that differ (idempotency key 'job-42' is already used by entry reg_..., which has a different config_hash), exit 1. Notes are not compared (#1964).

bash
# List everything
soup registry list

# Filter
soup registry list --name chat-llama
soup registry list --tag prod
soup registry list --base Qwen/Qwen3-8B --task sft

# Show details + lineage
soup registry show chat-llama:v1

# Search across name, base, task, notes
soup registry search "medical"

--limit (-l) caps the rows: soup registry list shows 100 by default and soup registry search 50. A value outside the allowed range is clamped, not rejected: 1 to 1000 for list, 1 to 500 for search.

Since v0.77.2 soup registry prints a name, tag or reference as you typed it: square brackets and :name: text are kept (:fire: is no longer turned into an emoji) and terminal control characters are removed from the display only; the stored values are unchanged (#2451, #2456, by @Nari-Ab). One limit remains, in upstream's words: soup registry show still drops a backslash that comes before a [ that is not a complete markup tag (#2533).

Referring to an entry

Every command that takes a reference accepts an entry id, a unique id prefix, name:tag (the form soup registry push prints, for example chat-llama:v1) or registry://<id>. The separator is a colon: chat-llama@v1 is read as an id prefix, matches nothing and exits 1 with "Registry entry not found". A name:tag must match exactly one entry. soup registry push never replaces an entry, so pushing the same name and tag twice keeps both, and since v0.77.0 a name:tag that matches several entries is refused with an error that names the candidates (reference 'chat-llama:v1' matches 2 entries (...) - use the full id). Each command maps that to its own exit code: soup registry show and soup card exit 1, soup eval gate --baseline registry://... and soup eval quant-check exit 3, and soup adapters branch --from-registry exits 2. Pass the entry id or a unique id prefix then, or use --idempotency-key on the push so a retry does not create the twin. Through v0.76.x the most recent entry was used silently (#1934).

Diff two versions

bash
soup registry diff chat-llama:v1 chat-llama:v2

soup registry diff prints a table of config differences between the two entries, and an eval-delta table when either entry has eval results attached:

text
     Config diff: reg_20261006_6a0a45ef1ac4 -> reg_20261006_10a81a6c72ae
┌─────────────────┬─────────┬────────┬────────┐
│ Path            │ Kind    │ Left   │ Right  │
├─────────────────┼─────────┼────────┼────────┤
│ training.lora.r │ changed │ 16     │ 32     │
│ training.lr     │ changed │ 0.0002 │ 0.0003 │
└─────────────────┴─────────┴────────┴────────┘

When a benchmark was measured more than once, the newest score is the one compared. Since v0.76.0 soup registry diff, soup eval compare and soup eval leaderboard pick one row per benchmark through a shared helper (newest created_at first, then insertion order for equal timestamps; a row with no score is skipped). Through v0.75.2 each of them let the oldest score win and ignored a re-measurement: upstream's example is run A logging 0.30 then 0.45 and run B logging 0.50 then 0.40, where the diff reported +0.20 and no regression instead of the real -0.05 regression. If you compared entries that had been measured more than once on an earlier release, re-run the comparison; nothing in the stored rows changed. The same rule now applies to soup card's scorecard and to a registry://<id> baseline in the eval gate.

Attach things to an entry

An entry can carry artifact files. Each attached file is stored as one record with its path (which must sit under the working directory), SHA-256 and size; a directory is refused, so a command that produces several files attaches each one. The kind is a closed list: adapter, merged, gguf, awq, gptq, onnx, tensorrt, torchao, dataset, config, eval_results, eval_suite, canaries, diagnose_report, steering_vector, judge_calibration, branch_ref, edited_model, grace_codebook, shrink_report, bom and attestation (awq and gptq stay in the list for entries recorded by v0.76.x and earlier; since v0.77.0 no soup export format produces them). There is no soup registry attach command; the attach happens through a flag on the command that produces the file:

Command and flagAttaches as
soup export --registry-id <id> (without the flag, since v0.78.0, the entry whose run wrote --model)gguf (also for gguf-ud, bitnet and tq1_0), onnx, tensorrt or torchao: every produced weight or engine file (on v0.76.x also awq and gptq, whose export was removed in v0.77.0). Through v0.75.2 only the plain gguf path recorded anything
soup diagnose --attach-to-registry <id> --output report.jsondiagnose_report
soup eval unlearning or soup eval custom --attach-to-registry <id>eval_results
soup steer train --registry-id <id>steering_vector (the steering_vector.safetensors file)
soup edit set --registry-id <id> --output <dir>edited_model (the weight files save_pretrained wrote) or grace_codebook
soup shrink --attach-to-registry <id>shrink_report
soup bom emit or soup attest emit --attach-to-registry <id>bom or attestation

What a failed attach does depends on the command. Since v0.76.0 soup diagnose, soup eval unlearning, soup steer train and soup edit set treat a requested attach as part of success: a failed attach (unknown or ambiguous entry, unreadable registry, no weight file) prints an error and exits 1 with the file left on disk, and, for soup diagnose, soup eval unlearning and soup edit set, the flag without --output is refused before anything runs (exit 3 for soup diagnose, 2 for the other two); soup steer train has no such refusal, because its --output is optional. Through v0.75.2 those four passed the registry helper arguments it does not take, or a directory, so they printed a warning, recorded nothing and exited 0. soup export --registry-id is the exception: a failed attach there is a yellow warning and the command still exits 0, because the export itself succeeded.

An export without --registry-id attaches on its own since v0.78.0 (#2726, by @abdumutalipabay0). It attaches to the registry entry of the run that wrote --model, as this page used to say it did. The entry is found through its run id and the experiment tracker's output directory for that run, compared by realpath. An entry with no run id, or whose run is gone from the tracker, never matches; when several match, the most recently registered wins and --registry-id overrides; only the newest 1000 entries are searched, and a ResourceWarning says older ones are missed. A registry or tracker database that cannot be read prints a warning and the export, which has already succeeded, still exits 0. (Since closed in v0.78.0: through v0.77.2 the lookup read a column registry entries do not have and matched nothing, so an export with no --registry-id recorded nothing and printed nothing.) This is a new implicit write: exports that attached nothing before now add artifact rows (path, SHA-256, size) to the matching entry. Runs recorded before v0.78.0 keep the relative output directory they were stored with, which is resolved against the current directory as before; the tracker stores a new run's directory as an absolute path (#2725).

Promote to prod

bash
soup registry promote chat-llama:v2 --tag prod

Tagging is how you mark stable versions. Any number of tags can point at the same entry.

Lineage DAG

bash
soup history chat-llama

soup history takes an entry name and prints one node per entry with that name: its id, its tags in parentheses and its creation time. Where they exist, ancestors, descendants and branches appear as child nodes. It prints no eval scores.

text
chat-llama
├── reg_20261006_6a0a45ef1ac4 (v1) 2026-10-06T01:14
└── reg_20261006_10a81a6c72ae (prod, v2) 2026-10-06T01:14

Cycle detection is enforced on every walk — forking a descendant back onto an ancestor raises an error. Since v0.78.0 the cycle check and the insert run in one serialized transaction, so two concurrent stores cannot commit opposite edges (#2593, #2604, by @harshitthek; from upstream's changelog, not run).

Delete

bash
soup registry delete chat-llama:v1 --yes

soup registry delete <ref> --yes deletes that one entry together with the database rows that hang off it (its tags, artifact records and lineage links). Entries that descended from it are not deleted; they lose the link. It removes registry records only, not the files they point at. Without --yes it only prints About to delete <id> (<name>). Pass --yes to confirm. and exits 0, so there is no interactive confirmation and no subtree preview.

Use as an eval-gate baseline

The eval gate accepts registry://<id> as the baseline, so quality regressions are diffed against any historical run rather than a static file.

Storage

  • SQLite at ~/.soup/registry.db — human-readable, portable
  • Single writer, no daemon
  • Name (up to 128 characters) and tag (up to 64) are validated: letters, digits, _, - and . only, starting with an alphanumeric, so neither can contain :, @ or a path separator
  • SQL LIKE-wildcard escaping on every search term

See also

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.