Inference

Deploy a policy. Every robot calls it.

One command puts your policy on GPUs, billed by the second, a worker’s GPU for at least 60 seconds once it is up.

How it is written

A policy is one class

Decorators say what it needs and when it runs: the card it needs, how its answers play, and every act. Your robot connects, sends what it sees, and plays the answer.

policy.py
# everything ending in _user is yours
@seq.policy(
    name="pick_user", hz=15,
    gpu="L4", max_gpus=1,
    action_chunk_valid_len=15,
    action_chunk_replan_at=8,
    weights="hf://my_org_user/pick_user",
    init={"ckpt_user": "{weights}"},
)
class Pick_user(Model_user):
    @seq.infer
    def act_user(self, obs):
        return self.predict_user(obs)
robot.py
with sequence_ai.connect(model="pick_user") as policy_user:
    policy_user.observe(frame_user)
    actions_user = policy_user.act()

In production

Workers follow your robots

A deployment starts workers as robots connect, up to the cap you set, and ends them when they go idle. An update is a new policy beside it, and your robots move to it when you connect them to its name.

Scaling

Scales to zero, billed by the second

Each robot takes a seat on the least busy worker, and another worker starts when every seat is taken. A worker ends after its idle timeout without a request, 60 seconds unless set, and is billed only while it runs, its GPU for at least 60 seconds each time it comes up.

  • No bill for the wait for a GPU. A worker is billed from the moment its machine has its GPU, its start included; waiting for a GPU is not billed.
  • Warm when it matters. Keep workers running with min_workers, or only in the hours you name with schedule.hours, both changed with seq policy set.
  • Budgets and alerts. A monthly budget stops the deployment once it is spent, and alerts post to your webhook on error rate, p95 latency and spend.
seq policy status my_policy_user
now: 1 worker on L4
GPU: L4 (your policy's own)   ← 1 worker on it now
  a start waits for an available L4, which can take more than 10 min: its robot keeps waiting, nothing billed
  at most 4 GPU cards at once (this policy's max GPUs 4, your account's GPU limit 8)

Updates

Every update is a new policy

An update deploys under a new name and builds beside the policy your robots use, which goes on serving as it is. If its check fails, nothing changes for your robots.

  • Your robots move when you say. Connect them to the new name once it is ready; to try it on some robots first, connect only those.
  • One policy, one code. A policy runs the code it was deployed with and nothing else, so an episode never changes model halfway.
  • The exact code. Every policy keeps the files its deploy sent, and seq policy source downloads them, checked against their sha256.
shell
$seq deploy . --name my_policy_2_user
$seq policy rm my_policy_user

Questions

Before you deploy

What teams ask first. The docs answer the rest, down to every flag.

Read the deploy guide

Is the wait for a cold worker billed?

Its start is, its wait for a GPU is not: connect() starts a cold worker and waits for it, and the worker is billed from the moment its machine has its GPU. A policy worker on an L4 comes back from zero in about two minutes; keep one warm with seq policy set my_policy_user min_workers=1 where a robot must not wait.

Can I bring my own checkpoint?

Yes. weights= takes a volume you upload, a Hugging Face repo (hf://org/model, copied and billed at what it holds, which counts toward your storage limit) or an official template’s weights. Weights never travel with your code.

Which robots and action spaces does it support?

Any robot your code can drive, in any action space. A policy’s inputs and answers are its own: infer gets what the robot sent, unchanged, and what it returns goes back as it is. The platform converts nothing.

Is an action safe to send to the motors?

Treat it as model output, not a safe command. The platform checks none of it, so keep your own bounds check, watchdog and e-stop between it and the motors.

How many robots can one deployment serve?

As many as its max GPUs allow. Each robot gets a copy of the model by default, or shares one with @seq.concurrent. When every seat is taken, a robot waits in line before its control loop starts.

Which GPUs can I use?

Any of "A100", "A100-40GB", "H100", "L4" or "RTX-PRO-6000", named in gpu=, and CPU workers for a policy that needs no card. A deployment runs on the one card it names; the pricing page lists each card with its memory and price.

Your first deployment is one command away

Starter is $0 a month, with $5 of free credit every month once a card is on file.