Skip to content

Model Serving

Model Serving is how you get a model running on your own GPUs and keep it reproducible. You pick a pinned recipe, preview exactly what will start, start it, and watch it — without the serve changing what any caller is routed to.

Discover, pin, start, inspect, switch, and stop local model serves.

Boundary

Owns model artifacts, recipes, serve lifecycle, and reservations; it does not choose a capability for callers or promote a candidate automatically.

The journey

Each step is a supported command. Run anvil-serving product journey model-serving to print the same journey from the CLI.

Initialize

Create the private operator scaffold, then export ANVIL_SERVING_HOME= so every later command reads it.

anvil-serving init --out-dir <OPERATOR_HOME>

Result A reviewable host-local configuration scaffold exists outside the public repo.

Select

Inspect pinned, reproducible model recipes.

anvil-serving models recipes list

Result Candidate identities and activation roles are visible before lifecycle work.

Preview

Validate a declared serve group without starting it.

anvil-serving serves up --group <GROUP> --dry-run

Result The exact lifecycle and reservation plan is available for review.

Apply

Start only the reviewed serve group.

anvil-serving serves up --group <GROUP> --confirm

Result Managed services start under the declared manifest and ownership contract.

Observe

Inspect managed serve state.

anvil-serving serves status

Result Readiness and ownership are visible without changing routing or promotion state.

When to use it

  • You want to run a local model with a known-good engine, image, and flags.
  • You are trying a candidate model next to the one you already serve.
  • You need to see which serves own which GPUs before you change anything.

Go deeper