Skip to main content
A call to get_action shares a model with everyone who calls it. A deployment is yours: one model, loaded on a GPU and held for your robot. Your episodes never wait for room on the model, and never wait for it to load. You pay for chunks, exactly as with get_action. The time it holds a GPU between chunks is not billed. Creating, starting or updating one needs a payment method on file or credit you bought; with sign-up credit alone it is refused with payment_required. Deployments need abstract-client 0.4.0 or later.

Create one and run on it

deploy.py
  • The id is made from the model and the robot. Pass name= to choose it.
  • Creating the same name again with the same model, checkpoint, robot and idle timeout returns the deployment that exists. Anything different is refused with deployment_exists.
  • wait=True returns once it is ready, or once its launch has failed.
  • predict() takes the same frames and state as any episode of that model, and returns the same chunk. One deployment runs one episode at a time; a second ends the first.

States

idle, stopped and failed hold no GPU, and keep the id, the settings and the history.

Idle timeout and budget

A deployment releases its GPU after its idle timeout with no chunk: 30m by default, from 1m to 24h, or never. idle_at is when that happens if no chunk runs first. Idle time is covered by the chunk rates, up to a daily budget: 4 hours a UTC day for each model, shared by all your deployments of it. Idle time is time spent ready; launching and running chunks do not count. When the budget is spent, idle deployments of that model are released (idle_timeout), running ones are released 2 minutes after their last chunk, and new ones are refused with idle_budget_spent until the next UTC day. An engine unreachable for 10 minutes is reclaimed under any timeout (unreachable). Fine-tuned models have no deployments.

Restart, swap, stop

  • Start launches a new attempt and a new episode. It never resumes the episode that ran before. A chunk sent to a deployment that holds no GPU raises abstract.DeploymentNotRunningError, with .state and .reason.
  • Update swaps the model, or the checkpoint, under the same id. A running chunk completes first; the old episode’s next predict() raises abstract.EpisodeEndedError with reason model_swapped. Call connect() again.
  • Stop releases the GPU and keeps the deployment and its history. Delete removes both. Chunks already run are billed as usual.

Your own checkpoint

A deployment can serve your own weights, from a public Hugging Face repository at one commit, on the lane of the model they fine-tune. Inspect first: it reads the repository’s file list, its config (config.json, or a Rho bundle’s policy.json) and normalization file, downloads no weights and starts no GPU.
Xiaomi-Robotics-1 trains to a pickled checkpoint and a Python config, and neither is ever loaded from a repository here. Push a fine-tune as two files: model.safetensors, the policy’s state_dict(), and config.json, the served model’s own with your statistics in normalization:
checkpoint_uri is pinned to a full commit, so a restart always loads the same weights. Its chunks are billed at the model’s rates and its idle time counts against the model’s budget. Only the top-level safetensors weights and normalization data are loaded; code in the repository is never downloaded or run. A checkpoint that cannot be served is answered with servable false and its problems: A deployment with its own checkpoint runs in a container of its own, on the model’s GPU. Every launch starts that container, which downloads the weights before it loads them, so a launch takes several minutes, and for the largest checkpoints (Isaac’s are 143 GB) about 25. A launch is given up to an hour. The container runs for at most 24 hours: a deployment held longer ends as unreachable, and start launches it again.

History and metrics

Every launch is one attempt. client.deployments.history(id) lists them, with the model and checkpoint each ran, its times, chunks and cost, and the reason it ended: logs(id) returns its events. metrics(id) returns its chunks, tokens, cost, GPU seconds and idle time today, and a digest of what your robots got: chunks answered, failed, superseded and replayed, episode resets, codecs, bytes, and the engine’s latency percentiles. Every read is answered from stored state and never starts a GPU. An account keeps at most 20 deployments, 4 of them holding a GPU at once. An id from another account answers 404 deployment_not_found.

HTTP

client.deployments has one method for each route, and abstract.AsyncClient the same, awaited. Send an Idempotency-Key with POST /v1/deployments when you pass no name: a retry under the same key returns the deployment the first request made.

Remote operator handoff

An attended YAM can use abstract_teleop.remote:Headset as its operator. Give the robot ABSTRACT_TELEOP_OPERATORS with the allowed public IDs from abstract-teleop --identity and set ABSTRACT_TELEOP_DEPLOYMENT to the deployment ID. The operator runs abstract-teleop --deployment ID --robot ROBOT_STATION_ID --headset HEADSET_LAN_IP on the computer beside their headset. A shared-model run can omit the deployment on both stations. The robot and operator renew their leases by posting to /v1/deployments/{id}/teleop/{robot_station_id}/robot and /operator respectively. The shared-model equivalents start at /v1/teleop/{robot_station_id}/. Both roles use regular API keys. The owner of the deployment registers the robot with its own station ID. The robot can authorize an operator on another account by their exact public station ID. An offline robot answers teleop_offline, an unlisted operator teleop_forbidden, and a competing live station teleop_busy. teleop_unavailable means the coordination service is unavailable. Cameras and controls travel over direct or relayed QUIC.