Model lifecycle and revisions¶
The model plane is control-plane owned. Model revisions, their deployments and their lifecycle are recorded the same way every other versioned resource is, and they reach nodes on the same assignment path. No additional runtime layer exists for models.
A model is applied, then deployed from a build¶
flowchart LR
subgraph CP["CONTROL PLANE RECORDS"]
direction TB
REV[("Revision<br/>applied intent")]
BLD[("Build<br/>reported digest")]
DEP[("Deployment<br/>names the build")]
REV -->|"built as"| BLD
BLD -->|"deployed from"| DEP
end
subgraph YI["YOUR INFRASTRUCTURE"]
direction TB
REG[("Registry<br/>image@digest")]
SR["Serve runtime"]
REG --> SR
end
BLD -.->|"names"| REG
DEP -->|"reconciled onto nodes"| SR
The three records point at each other, and only the build points at bytes. A deployment reaches an image through the build it names, so the digest a runtime serves is always one a node reported.
Applying records intent. Deploying binds that intent to a build result, which is why a deployment names a build rather than a tag: the digest the node reported is what the revision runs.
The operations¶
| Operation | Does |
|---|---|
| Apply | Records a model revision |
| List and get revisions | Reads what has been recorded |
| Deploy from build | Pins a revision to an accepted build result |
| Stop a version | Takes a deployed version out of service |
| Resume a version | Returns a stopped version to service |
| List and get models | Reads the model catalog |
| Project deployment detail | Reports the deployment's resolved state |
Stop and resume are the pair worth noting: a version is stopped rather than deleted, so the revision and its lineage remain readable after it stops serving.
Revisions are immutable¶
A model revision follows the same rule as every other version in the platform. Writing over one with different content is refused:
An identical write is accepted, so a retried apply is safe. See Admission gates.
Deployment is an async operation¶
Model deployment is one of the ten families on the operation event stream,
under model.deployment. A deploy returns an operation reference and the
caller follows the events rather than holding the request open.
Model builds use their own family, model.build_request, so a build and the
deployment that consumes it are followed separately. See
Async operations.
Controllers move deployments forward¶
Two controller loops own model state between requests, and each cycle reports what it did:
model_deployment_scanned_count
model_deployment_base_updates_count
model_deployment_replace_updates_count
model_deployment_rollback_updates_count
model_deployment_desired_state_writes_count
Base, replace and rollback are counted separately, so a deployment that is rolling back is distinguishable from one that is rolling forward without reading individual records.
The second loop is autoscale to zero, covered in Serve runtime, scaling, and scale to zero.
What a model revision carries¶
A revision resolves to a closed set of declared choices, each validated when it is applied:
source type api, hf, ollama
engine type vllm, tgi, proxy, custom
interface normalized, native
strategy standard, airgapped
Each of these selects a different path through build, engine resolution and serving. See Build strategy, composition, and orchestration.