Model versions
Every saved model has a history of configuration changes. Use a branch to test changes and a tag or commit SHA to run a specific version.
| Revision | What it identifies |
|---|---|
| Branch | A name that moves as changes are committed. Inference uses the default branch when you omit revision. |
| Tag | An immutable name for a commit, such as v1. |
| Commit SHA | The exact version of a model configuration. |
Pin a decision to a version
After evaluating a version, pass its tag or commit SHA as revision. This keeps decisions on the evaluated version when the default branch moves.
result = client.decisions.create(
model="acme/support-priority",
revision="v1",
state="Checkout is unavailable.",
)
If you need to restore an earlier configuration, a rollback writes that version's files as a new commit on the target branch.