A benchmark is the env you already have, as it is: a decorated class, like a policy, whose two methods the
platform calls (one starts an episode, one steps it). act() serves a deployed policy;
eval() scores it on a benchmark.
| the platform calls | when |
|---|---|
__init__, with what init= says | after each restore, before any episode: the env, its worlds and its cameras |
@seq.reset(self, task, seed) | an episode’s start: returns its first observation |
@seq.step(self, action) | each step: returns the observation, whether it is done, whether it succeeded |
Author a benchmark
Subclass the env your repository already has and mark two methods; the class you subclass does not change.
There is no loop to write, and the platform reads none of your observations or actions: each observation goes
to the policy as a robot’s own code would send it, and each action the policy answers comes back to your
step. In the examples, everything ending in _user is yours, and so are the strings: the
benchmark’s name, its task names, and the names of your volumes and secrets.
# everything ending in _user is yours import seq from my_env_user import ReachEnv_user # the env your repository already has TASKS_user = {"reach_left": "move the arm to the target on the left", # {name: description} "reach_right": "move the arm to the target on the right"} @seq.benchmark( name="reach_user", image=seq.Image.debian_slim().uv_pip_install("numpy").add_local_python_source("my_env_user"), gpu="cpu", cpu=4, memory=8, # numpy steps on CPU machines; a sim on a card names it tasks=TASKS_user, seeds=range(5), # trial k of a task starts at seeds[k % 5] max_seconds=5.0, # an episode's time on the robot's clock, or {task: s} ) class Reach_user(ReachEnv_user): @seq.reset def start_user(self, task, seed): return super().reset(task=task, seed=seed) # the first observation @seq.step def step_user(self, action): obs_user, done_user, info_user = super().step(action) return obs_user, done_user, info_user["success"] # observation, done, success
- What runs when. Your file is imported before a machine’s snapshot, and nothing of your
class runs then. After each restore, before any episode, the platform builds your class as it builds a
policy, with what
init=says: a class that needs nothing, asReach_user, takes noinit=and is built with no arguments. So the constructor your env already has is where it starts: its scenes, its worlds, its renderer and its cameras (a benchmark that declaressecrets=takes no snapshot: each of its machines imports your file and builds your class as it starts, its secrets in its environment). The kernels it compiles are kept in the benchmark’s compile cache, which its registration’s check fills and every eval of it shares, and are read back in seconds rather than compiled again. - Reset and step.
@seq.reset(self, task, seed)starts an episode and returns its first observation: anything, as your env gives it; a camera frame markedsequence_ai.Video(frame)is sent as a robot’s camera is (Adapters).@seq.step(self, action)plays one action, the row the robot would play this step, and returns(observation, done, success), or(observation, done, success, metrics)with a dict of numbers of your own. The step runs on the benchmark machine, beside your env; the policy is never in it. - Tasks and seeds. A task is a name to the platform: it hands it to your reset as it is, lets
an eval choose by it (
--tasks), and groups the report’s success rates by it;seq benchmark tasksand the console’s Tasks table show its description beside it. What a name means (its scene, its goal, the instruction the policy reads in your observation) is your env’s, and so is any variation. An eval asking more trials than a task has seeds runs its seeds again, in order: each run after the first a repeated start, marked so in the report, with the policy’s randomness its own. Registration resets each task at its first seed, so a name your env does not know fails there.seq benchmark tasks <name>[@vN]lists every task with its seeds and its description. - Time, not steps. An episode ends when its step says
done, or when itsmax_secondshave run out on the robot’s clock; the success of its last step is the episode’s. An eval may change the limit (eval.max_seconds). - The control rate is the policy’s. How often the robot steps and how many rows of each
answer it plays are what the policy declares on
@seq.policy(hz,action_chunk_valid_len,action_chunk_replan_at); a benchmark declares none. An env that needs one names it ininit=(init={"control_hz_user": "{policy.hz}"}) and is built with the evaluated policy’s value; one that names none is handed none. Registration evaluates no policy, so there such an argument is left out: give it a default. Only your env knows its physics step, so it sets that from the rate; the platform converts nothing. So is the robot, where your env takes the one it is played with:init={"robot_user": "{policy.robot}"}builds it with the robot the evaluated policy was made for (@seq.policy(robot=...)), and an eval may play another (Parameters in an eval). - Success and metrics are yours. The report gives each task’s success rate (the
share of its episodes whose last step said success) overall and per task with its
n, and beside it the mean of each metric your step returned. The platform names one metric of its own,success, the rate--gatereads: a metric your step returns under that name is left out. Units are not declared. - Assets. Upload meshes, scenes or a dataset once with
seq volume put scenes ./scenes --kind dataset, then declareassets=seq.Volume.from_name("scenes"): it is mounted read-only at/assets(several at/assets/<name>) before your class is built, each run reading its current version, so no eval can change what the next one sees. - Secrets.
seq secret set bench-token --env BENCH_TOKEN, then declaresecrets=[seq.Secret.from_name("bench-token")]. Only your sim gets it, as environment variables; the policy under test never does, and error text in the report shows***in place of its value. Only secrets your account owns can be declared. - No adapter, no recording. A benchmark names no adapter (
default_adapter=is refused): the eval names one (Adapters). It declares no recording either. - Register it.
seq deploy ., in its folder, registers it and builds its image on the platform; the folder goes up whole, less version control and caches, a virtualenv or build output at its root,.envfiles and what its.seqignorefiles list, and no manifest or Dockerfile is written into your repository.seq benchmark status <name>says building, ready or failed;seq benchmark cancel <name>stops a registration in flight, what its machines ran until then billed;seq benchmark rm <name>deletes it for good, which nothing can undo: what it stores goes and its name is free, the evals that ran it keeping their reports and recordings (the recordings billed as storage until you delete those evals). - Every version is kept. Each version that passed its check is kept until you delete it, as a
policy’s is:
seq benchmark versions <name>lists them,--benchmark <name>@vNruns an eval on one, andseq benchmark rm <name>@vN(or Delete on a version in the console) deletes one for good once no eval runs it.seq deploy --overridedeletes the version evals run once the new one has passed its check; if the new one fails, nothing is deleted. - Its image is built where it first runs. Registering builds the image on a machine of the card
you declare and checks it there; the version is ready as soon as its check passes, and no other machine opens.
That machine is billed at its card from the moment it starts (its boot, the build on it and the check),
as a policy’s check machine is. A machine that prepares its build’s files is billed by the
second from its start at the CPU and memory price, a line of its own on the bill. Its evals run on that kind of
machine while one is free. The first time an eval moves to another kind of machine because none is free, or the
first time you run
seq benchmark shell, that machine builds the image and saves it in your storage (depsinseq volume ls) before anything runs: 20 to 35 minutes for a large image, about whatseq eval run --dry-runsays. It is billed as a build, at its card and its check’s size, from its start until the image is saved; the wait for its card is not billed, the eval’s time limit waits for it, and the eval’s policy machine is billed at its own card throughout. Every other machine of that version opens nothing until then, unbilled, and then loads what was saved and never builds it again. A version that never leaves its first kind of machine keeps none, and one that names adriver=, checked on the other kind, saves its image behind its check. The copy is billed as a policy version’s is: $0.12 per GB a month, and, once, what leaves the machine saving it (Pricing). Deleting your version dependencies deletes it too, and the next machine that needs it builds it again.
On the CPU, or on a GPU
A benchmark simulates on the card it names
("L4" or "RTX-PRO-6000",
"L4" when it names none), one card a benchmark
machine, billed for the time it runs, beside the policy’s. An L4 and an RTX-PRO-6000 have RT cores, which
Isaac Sim draws with: name one of them for it (see
Using Isaac Lab). Beside the card, driver="580" names
the NVIDIA driver it must have, by its major version, for a simulator validated against one (Isaac Sim 5.1 on
580): its machines run where the card has it, and one the card is not offered with is refused at registration,
naming the drivers it is; left out, the benchmark takes whichever driver its card has, and a
gpu="cpu" benchmark names none. Registration builds its worlds on that card and,
over a sampling window, resets them again and again to see the simulation runs there, refusing one that does
not; it plays no action. A benchmark of one world an instance may use its card for what its own simulator uses
one for, drawing its cameras, with its physics on the CPU: it passes when the card worked in that window. Its
cameras are drawn on the card too: a machine whose GPU cannot draw
them is not used; registration checks again on another machine, and an eval’s benchmark machine moves
to another before its first episode, three times at most, four machines in all; and when none of them can,
the registration fails or the eval stops (no_gpu_render), naming the renderer it got. None of those
machines is billed. Your own benchmark says so from its constructor, before any episode, rather than drawing in
software:
raise seq.GpuRenderError(gl=gl_user, backend="egl", egl=renderer_error_user) # backend="vulkan" for a Vulkan renderer
To run a CPU simulator as it is, declare gpu="cpu": its physics runs on CPU machines, as the
original simulator does, with no porting. cpu=N is the cores one benchmark machine holds (16 when
left out) and memory= is for all of them (2 GB a core when left out), billed by the core-hour
and the GiB-hour and holding none of your GPUs. The official LIBERO and RoboCasa365 templates run this way, as
their own evals do, and RoboTwin 2.0’s keeps its physics on the CPU and ray-traces its cameras on an L4, as
its eval does. At the same number of worlds it costs more per world step than a GPU port on an L4, and the more
so the more worlds run (about 1 to 3 times at 16 and 5 to 11 times at 64), because every world holds
a core while it waits for the policy. seq eval run --dry-run shows the cost of both.
A benchmark written for classic MuJoCo (robosuite, dm_control, a gymnasium MuJoCo environment or your own
MjModel) moves to MuJoCo Warp with seq port, and one written for SAPIEN’s
CPU PhysX to its GPU PhysX with export, check-model and scaffold. They
read the CPU version through its own @seq.reset, so the GPU version starts every episode where the
CPU version does; a MuJoCo port ends with compare, a check that the two move the same way from the
same starts, and a SAPIEN port is compared by its evals. export runs where your benchmark runs,
on its own simulator; check-model, scaffold and compare run the GPU engine:
pip install "sequence-cloud[port]" --extra-index-url "https://$SEQUENCES_API_KEY@api.generalsequences.com/simple" installs the versions they are tested with.
seq port export lift_user.py:Lift_user --trials 2 # a MuJoCo benchmark of yours: each task's scene and starts, through your reset seq port check-model scene/ # what the GPU engine would compute differently seq port scaffold scene/ --worlds 64 # a vectorized GPU benchmark, with TODOs for you seq port compare scene/ --episodes 10 # the same controls on both engines, step by step seq port convert reach_user.py:Reach_user # export, check-model and scaffold in one go
exportbuilds your class as registration’s check does, runs your reset for each task and seed, and writes the compiled scene, every start’s state and what reset changes from one seed to the next.check-modelcompiles the scene with the GPU engine and lists every compiled field and default that differs, by body and geom name, and any feature the engine does not support.scaffoldwrites a vectorized benchmark: its constructor builds as many worlds as"{num_worlds}"hands it for each eval, at most--worlds(64 when left out, its step’s@seq.concurrent(sizes=[N])), with the options your version changed pinned to its values. Yours to write, marked TODO: the controller that turns an action into actuator inputs, the observation, and the success of a step.compareplays the same controls on the CPU scene and the port, step by step, for the scene’s first--episodes, and names the first step and the joint or body that drift apart.
Your own engine
The platform runs a benchmark through its reset and step, without looking inside the simulator, so any engine
runs: MuJoCo, SAPIEN, Isaac, one of your own, or a few lines of Python. The console draws the benchmark’s
tile by the engine its seq.Replay(engine=...) names (the one the 3D replay
reads) and a lettered tile for one that names none, never read from what the image installs. The smallest
whole one, a point on a rail stepped in plain Python:
import seq TARGETS_user = {"reach_left": -0.5, "reach_right": 0.5} @seq.benchmark(name="rail_user", image=seq.Image.debian_slim(), gpu="cpu", cpu=2, memory=2, tasks={"reach_left": "", "reach_right": ""}, seeds=[0, 1, 2], max_seconds=5.0) class Rail_user: @seq.reset def start_user(self, task, seed): self.x_user, self.target_user = float(seed % 3) - 1.0, TARGETS_user[task] return {"arm_x": [self.x_user], "target": [self.target_user]} @seq.step def step_user(self, action): self.x_user += max(-0.1, min(0.1, float(action[0]))) reached_user = abs(self.x_user - self.target_user) < 0.05 return {"arm_x": [self.x_user], "target": [self.target_user]}, reached_user, reached_user # $ seq deploy . # in the folder rail_user.py is in # $ seq eval run toy-policy --benchmark rail_user --adapter toy-adapter # with ("rail_user", "template:toy-policy") in its pairs
Another engine hands its 3D replay over itself: declare
replay=seq.Replay(engine="own"), ship your scene with the image, and call
seq.replay.scene(slot, glb) once an episode (a glTF binary, its nodes flat children of a root
seq_root that turns Z-up into Y-up) and
seq.replay.frame(slot, t, nodes, pos, quat, step=None, looks=None) after the reset and after every
step: slot the world (0 for a benchmark that is not vectorized), t seconds since the
reset, metres in the world with Z up, quaternions w x y z. Both do nothing outside an eval.
Step a batch at once
A vectorized env (Isaac Lab, MuJoCo Warp, MJX, ManiSkill, stepping many worlds in one call) puts
@seq.concurrent(sizes=[N]) on its step: N, one number, is the most worlds one call takes. Its
constructor is handed how many worlds to build where its init= says "{num_worlds}".
Its reset is handed world_ids, the worlds to restart, and each one’s task and seed; its step
world_ids and one action for each, returning one tuple a world, in that order:
@seq.benchmark(name="warp_reach_user", gpu="L4", tasks=TASKS_user, seeds=range(50), max_seconds=15.0, init={"n_worlds_user": "{num_worlds}", "control_hz_user": "{policy.hz}"}) class WarpReach_user(WarpReachEnv_user): # its constructor is your env's own @seq.reset def start_user(self, world_ids, tasks, seeds): return super().reset(world_ids, tasks, seeds) # one first observation a world @seq.step @seq.concurrent(sizes=[64]) # 64 worlds a call at most def step_user(self, world_ids, actions): return super().step(world_ids, actions) # [(observation, done, success), ...]
- One number, the most. The platform works out how many worlds each eval opens and fills
"{num_worlds}"with it: the fewest of N, the eval’s episodes and what the policy takes at once (its machines times the most its own@seq.concurrenttakes). A world more would only wait. Whoever runs the eval says how many episodes, never how many worlds. A vectorized env whoseinit=has no"{num_worlds}"is refused at registration. - By position.
world_idsis handed to your reset and step by position, so a name of your own (env_ids) works the same. - Too many fails at registration. Registration builds N worlds and resets each task at its first seed, so a size that does not fit the card fails there, not halfway through an eval. It plays no action: the actions are your benchmark’s own. An eval does not change N.
- Without it, each world runs in a process of its own: a GPU benchmark machine runs one, a CPU
one runs one a core, no more than the eval’s episodes and what the policy takes at once (its machines times
the most its
@seq.concurrenttakes); more at once take more--benchmark-machines. Such an env has no"{num_worlds}"and noworld_ids: its reset takes a task and a seed, its step an action.
A 3D replay of every episode
Declare replay=seq.Replay(...) and, each step, the platform records the world transform of everything
in the scene (nothing is rendered for it), and you turn, zoom and scrub it in the console after the
eval. It is on by default: every eval of such a benchmark records it unless it says --replay none (the
console’s Run eval has the same switch); seq eval report <eval_id> --replays DIR saves the
files. seq eval replay <eval_id> plays them on your own machine in the console’s own
player, on a page only you can open; seq eval replay FILE plays a saved one offline; and
seq.read_replay(path) reads one into numpy arrays. For MuJoCo (MuJoCo Warp too), SAPIEN and Isaac
the platform reads the simulation itself and exports the scene once, so the declaration is one line:
engine=, which simulation it reads,"mujoco","sapien"or"isaac", and the tile the console draws the benchmark with; left out, the benchmark hands its frames itself ("own").state=, the name of your method that gives the engine’s state of what runs,state="replay_state_user": for a benchmark that is not vectorizedreplay_state_user(self)with no argument, for a vectorized onereplay_state_user(self, world_ids), one per world. MuJoCo:(MjModel, MjData), or with MuJoCo Warp(mjModel, mjw.Model, mjw.Data, world); SAPIEN: thesapien.Scenethe world runs in; Isaac:(stage, scene, env_index).looks=(optional), the name of your method that says what the model does not carry and an episode changes, such as a world’s colour:{node: {"rgba": [r, g, b, a]}}or{node: {"visible": False}}.
The replay reads the poses your simulation has computed, as they are: a reset that only writes positions leaves
the old poses until the next step, so end your reset with the engine’s own update,
mujoco.mj_forward(m, d), or with MuJoCo Warp mjw.kinematics(m, d). Isaac only: set
scene.step_dt = env.step_dt on the scene your state returns, or a task with
decimation > 1 plays back that much too fast. A replay is kept with the eval, billed as the
eval’s stored files are, and the dry run says about how much an eval’s replays keep.
Using Isaac Lab
nvcr.io) holds NVIDIA software under
NVIDIA’s own terms: for Isaac Sim, the
Isaac
Sim Additional Software and Materials License, which lets your organization’s own employees and
contractors install and use it on systems with NVIDIA GPUs. Before you use it here, make sure your use is
within those terms, and get NVIDIA’s written permission for anything beyond them. The platform keeps the
image it builds from it in your own account’s storage, for your own versions alone, and never shares it
with anyone else.
Isaac Lab is a batched engine, and the platform does not ship it; you bring your own. You install and use NVIDIA’s Isaac under its license, and the platform may not hand it to anyone else, so name NVIDIA’s official container as your base, pinned by digest, and accept NVIDIA’s EULA yourself. Isaac Sim draws with RT cores, which the L4 and the RTX-PRO-6000 have, so name one of them as its card. Because you bring a fully-provisioned image, a short Dockerfile makes it run as the unprivileged user the platform runs your code as:
FROM nvcr.io/nvidia/isaac-lab:2.3.2@sha256:f07c37e3f0c9f58f7febd0aa9a425523d282be623c0db81ac61006d0e24be07f ENV ACCEPT_EULA=Y # A `python` on PATH that sources Isaac's env and execs Kit's own interpreter. (A symlink to python.sh fails the # build: it looks for setup_python_env.sh beside the path it is called by, and turns every non-zero exit into 1.) # LD_PRELOAD / LD_LIBRARY_PATH # are exported INSIDE the wrapper because the platform strips LD_* from the environment it runs your code in. RUN printf '%s\n' '#!/bin/bash' \ 'export CARB_APP_PATH=/isaac-sim/kit ISAAC_PATH=/isaac-sim EXP_PATH=/isaac-sim/apps RESOURCE_NAME=IsaacSim' \ 'source /isaac-sim/setup_python_env.sh' \ 'export LD_PRELOAD=/isaac-sim/kit/libcarb.so' \ 'exec /isaac-sim/kit/python/bin/python3 "$@"' > /usr/local/bin/python \ && chmod +x /usr/local/bin/python && ln -sf /usr/local/bin/python /usr/local/bin/python3 # Let the unprivileged user read Isaac and write Kit's cache/data/log dirs, and put Isaac's libraries on the # loader path (ldconfig) so they are found without LD_LIBRARY_PATH. RUN chmod o+rx /isaac-sim \ && mkdir -p /isaac-sim/kit/data /isaac-sim/kit/logs \ && chmod 1777 /isaac-sim/kit/cache /isaac-sim/kit/data /isaac-sim/kit/logs \ && bash -c 'source /isaac-sim/setup_python_env.sh && tr ":" "\n" <<< "$LD_LIBRARY_PATH" | grep -v "^$"' > /etc/ld.so.conf.d/isaac-sim.conf \ && ldconfig
Point the image at that Dockerfile and drop the base’s entry point. The platform keeps its packages for you, so that is the one option to set:
image_user = seq.Image.from_dockerfile("Dockerfile", clear_entrypoint=True)
- Pin by digest. The
@sha256:…fixes the exact image, so every build of your version (in any account, at any time) starts from the same bytes. - The EULA is yours.
ENV ACCEPT_EULA=Yaccepts NVIDIA’s license as you, baked into the image you build. clear_entrypoint=True. Isaac’s own entry point (runheadless.sh) would wrap the platform’s start command; Kit then reads the-mas its own argument and crashes in a restart loop. This drops the base’s entry point so the command runs directly.- Your packages are kept. The platform installs its own runtime packages over your base, but
keeps the base’s own version of each where it meets the platform’s minimum, installing its own only
where the base has none, has an older one, or the platform sets no minimum, so Isaac’s
numpystays below 2.0 instead of being forced past it. This is automatic; you write nothing for it. - CUDA headers are on hand. The platform lays the CUDA runtime and NVRTC headers
(
cudartandnvrtc), matched to your image’s CUDA, wherecuda.pathfinderlooks for them, so a library that compiles kernels at run time (CuRobo, Triton, anything that calls NVRTC) finds them with nothing to configure. Isaac bundles its own copy that satisfiespipbut sits off that search path, so a plainpip installadds nothing; the platform places the headers on the path for you, next to your image’s own libraries, which it leaves untouched. - Built for you, not on your machine.
isaac-lab:2.3.2is 8.4 GB compressed (Isaac Sim 5.1);3.0.0is 16.7 GB (Isaac Sim 6.x), and larger unpacked: the sim alone is about 23 GB. The platform pulls and builds it, so those tens of GB never land on your own disk. - First start. Isaac’s first launch on a fresh machine is slow when its tasks open cameras: about 111 s on an L4, cold, and 20 s for its first reset, while it compiles its shader and CUDA caches; without cameras it starts in about 24 s. The platform warms the engine so a machine after the first starts far faster; you write nothing for it.
- Cameras. Isaac Lab 2.3 (Isaac Sim 5.1) draws cameras only on the driver NVIDIA
validated it on: name
driver="580"beside its card. On another driver a 2.3 camera task does not run, though a 2.3 task that opens no camera runs normally. Isaac Lab 3.0 runs camera tasks on the card’s own driver; deploy a 3.0 image the same way. A camera task also needs Isaac’s sensor extensions turned on: after you build theAppLauncher, enableisaacsim.sensors.camera,isaacsim.sensors.physicsandomni.replicator.corethrough the extension manager (addisaacsim.replicator.behaviorif you use Replicator behaviours), or start Kit with an experience file that already lists them. Without them, importing a camera raisesModuleNotFoundError: No module named 'isaacsim.sensors'.
Isaac Lab steps a whole batch of worlds in one call, so write it as a vectorized benchmark, its env built by its constructor, after the snapshot. A skeleton, with the engine’s own calls left for you:
import seq ISAAC_user = seq.Image.from_dockerfile("Dockerfile", clear_entrypoint=True) @seq.benchmark(name="lift_user", image=ISAAC_user, gpu="L4", tasks={"lift": "lift the cube"}, seeds=[0, 1], max_seconds=10.0, init={"num_envs_user": "{num_worlds}", "hz_user": "{policy.hz}"}) class Lift_user: def __init__(self, num_envs_user, hz_user=30.0): # registration evaluates no policy: its default ... # build your Isaac Lab env: num_envs_user worlds, at hz_user @seq.reset def start_user(self, world_ids, tasks, seeds): ... # reset those worlds to their task and seed; one observation each @seq.step @seq.concurrent(sizes=[64]) def step_user(self, world_ids, actions): ... # one action a world; one (observation, done, success) each # $ seq deploy . --dry-run # in its folder: checks it here, pulls nothing
Run an eval
Register the benchmark, then score a deployed policy on it. The policy and the benchmark run on machines of their
own; only when none is free for the benchmark alone does it share one with the policy. The policy answers every
world’s requests in batches. The policy is sent what a robot would
send it: the same observations, in the same order, the same ones arrived before each act. So it scores
here what it would score on the robot, the same in distribution (a batch on the card rounds its last digits its
own way). Nothing waits for real time: the simulation only stops when the
next answer it must play is not back yet. A policy’s @seq.plan runs in an eval too
(Evaluate a policy that plans).
seq deploy ./reach_user # the benchmark's folder: its image builds, its check runs seq deploy ./adapter_user # the adapter's: registered, nothing builds seq eval run my_policy_user --benchmark reach_user --adapter to_my_policy_user --dry-run seq eval run my_policy_user --benchmark reach_user --adapter to_my_policy_user seq eval status <eval_id> --watch # episodes done of the total, every metric so far seq eval logs <eval_id> --follow # the benchmark's and the policy's lines as they print seq eval ls --benchmark reach_user # every eval on it, across your policies
| flag | what it does |
|---|---|
--adapter NAME[@vN] | the adapter: a registered one, or a local file, ./adapter.py:Class, registered first; none when the policy and the benchmark already agree |
--tasks a,b | only these of the benchmark’s tasks (default every task) |
--trials N, --trials TASK=N,*=M | how many times each chosen task runs: its declared seeds in order, and past the last the same seeds again as repeated starts |
--seeds 10-19, --seeds TASK=10-19 | which seeds run, instead of the first N; only seeds the benchmark declares |
--policy-machines N | policy machines, sharing every benchmark machine’s requests (default 1, at most one per episode), each on the deployment’s own card |
--benchmark-machines N | benchmark machines per arm (default 1), taking episodes as their worlds free up |
--param [SIDE.]NAME=V, --sweep [SIDE.]NAME=V1,V2 | set a parameter for the whole eval, or an arm per value (Parameters in an eval) |
--spend-cap USD | stop once it has cost this much: its machines, and the model calls of a policy’s plan too; the report covers what ran and says so |
--rerun-failed EVAL_ID, --rerun-unsuccessful EVAL_ID | run that eval’s errored episodes again, one report for both; or those that ran and did not succeed, as an eval of their own |
--gate "success>=0.8" | exit 8 when the eval completed and the metric’s overall value misses it, or not every episode scored;
an eval that did not complete exits 1, for CI (repeatable; not with --no-wait) |
--replay 3d|none | whether the eval records its 3D replay (default 3d when the benchmark declares one) |
--dry-run, --no-wait | show the layout, the cards against your account and the estimate, starting nothing; return once started |
- How the policy’s answers play. An eval models no network: each episode sends an act at
the policy’s
action_chunk_replan_atstep and switches to its answer at theaction_chunk_valid_lenstep, the world held still until the answer comes. So it scores the policy as its own timing plays it. Both are the deployment’s as the eval starts: a length set withseq policy set, else the one its code declares, which the report says. There is no latency to set. - The layout is yours. Each world’s episode is answered by one policy machine and keeps
to it, the next episode it runs going to the policy machine with the fewest episodes running (the next one
along on a tie); a policy machine runs the requests that reach
it together, in batches of up to the largest size its
@seq.concurrent(sizes=[...])lists. A policy without@seq.concurrentanswers one episode at a time, and the dry run says so; its fastest line gives the--policy-machinesthat would run the eval faster, and what that costs. If a policy machine ends mid-episode, its episodes go on on another (a policy that keeps an episode’s state runs them again from their reset), and the report counts them. Every card counts against your account’s limit; while your cards are busy the eval waits for them, up to 10 minutes, with nothing held or billed while it waits. Once it has begun, its first machines wait at most 10 minutes for a card: past that it stops, and the report says which card. - Estimate first.
--dry-runstops before reserving anything: the layout, the worlds each benchmark machine builds, the cards against your limit, the cost (what this policy’s earlier evals on this benchmark were billed for the same work, else what the registration and the deploy measured) and what a real run holds before it starts. As it runs, its hold grows ahead of what it spends; where your account can hold no more, it stops at the end of its hold and its report says why. You pay only for the time your machines run, each from the moment it starts (its boot, image and weights included, never its wait for a card) and each at least 60 seconds, but for a machine the eval gave nothing to do: a benchmark machine that got no episode costs nothing, the minimum included, and once episodes run neither does a policy machine no request reached. An eval the platform stops before any episode began costs nothing: no card free in time, its image not readable, its time limit reached. One stopped by you, by its spend cap or by a limit of your account’s or its key’s, or by your own code failing pays for its policy machine up to then. - Each act carries a seed of its own, hashed from the episode’s seed and the act’s
index, so a policy that draws its noise from
seedstarts every replan from fresh noise. A rerun of the episode runs its task with the same seeds, though a batch on the card may round the policy’s answers differently in their last digits: the same in distribution, not bit for bit. - The report gives each task’s success rate, overall and per task with its
n, the mean of each metric your step returned, a table per arm, the cost of the time every machine ran, and a manifest (the policy’s, the benchmark’s and the adapter’s versions, the seeds and the parameters), everything needed to run the same episodes again.seq eval report <eval_id> --csv -o runs.csvsaves its one file of episodes, the one the console’s Download CSV saves too;seq eval episodes <eval_id>lists them by task, outcome (success|failure|error) or arm. - Stop it.
seq eval cancel <eval_id>, or Cancel on its page, stops it at once, a machine waiting for its card included: no new episode starts, and nothing is billed from then on. What ran is reported.
In the console, Run eval (on a benchmark’s page or a policy’s Evals tab) picks the other side and the adapter between the two, the tasks and how many times each runs, and under Advanced the machines, the time limit and a spend cap; nothing starts until you press Start eval. An eval’s page opens on Overview; Results has the score by task and every episode, Logs what its machines printed, and Replay each episode: in 3D, drawn in your browser from the poses the eval recorded, and through every camera its policy was sent, each frame as the policy got it, on one timeline in the robot’s seconds. Drag the 3D view to turn it, right-drag to move, pinch or scroll with Ctrl or ⌘ held to zoom, and play, pause or step the timeline at 0.25× to 4×.
Evaluate a policy that plans
A policy with an @seq.plan is evaluated with its plan. There is nothing more to name, and no other
machine: the eval runs it as a robot would.
- The robot’s clock, not the wall’s. Each episode is planned every
every_sof its own time (@seq.plan(every_s=2.0)at 15 Hz plans every 30 steps) from its reset’s observation on, before its first act. The world waits at that step until the plan is in, so a slow plan costs the policy no steps and the score does not depend on how fast it answered.wake_onplays no part in an eval. A plan that returnsNoneleaves its last plan in force; an episode that gets no first plan ends with an error.seq.ask_humanhas no one to answer it in an eval, so it counts asNone. - Every plan is kept. Each episode’s record keeps every plan, whole, with the step it
took effect from, and its 3D replay each one too, cut to its first 1,000 characters when longer; the Replay tab
shows the plan in force under the task, and replaying an episode reads what was kept, never planning again. The
report’s
plansays how often it planned (every_s), how many plans it kept (plans) and what its model calls cost (model_calls_usd). - What it costs. Each model call is billed as any chat call, and the eval’s cost counts it, its spend cap too. The dry run estimates them: every plan each episode would ask for up to its time limit, each at what this policy’s plans have cost, else at one call at its model’s published rate, said a first estimate.
Adapters
An adapter is the robot’s own code, in the eval’s loop: two functions, one turning the env’s
observation into what the policy is sent, one turning the policy’s answer into the actions the env plays.
It has no machine, and the eval names it. Registering an official benchmark template registers in your account,
beside it, each adapter the template pairs with a template policy, and seq deploy names them
(also registered in your account: toy-adapter@v1); one of your own, or one you changed, is registered
on its own. Without one the observation goes to the policy as it is, and the answer must itself be the actions.
How to write one is
Adapters.
Parameters in an eval
Every side declares what an eval may set the way @seq.infer always has (keyword arguments
with defaults, typed int, float, bool, str or
list[float]), and
registering it sends the declarations: the policy’s @seq.infer and @seq.observe, the adapter’s
__init__, the benchmark’s constructor but what its init= fills. The eval has one
of its own, eval.max_seconds: how long an episode may run on the
robot’s clock, the benchmark’s max_seconds unless it is set. An eval that changes it
is not a standard one, and its report says so.
class Reach_user(ReachEnv_user): def __init__(self, noise_std_user: float = 0.02): # benchmark.noise_std_user super().__init__(noise_std=noise_std_user) # $ seq eval run my_policy_user --benchmark reach_user --param benchmark.noise_std_user=0 # $ seq eval run my_policy_user --benchmark reach_user --sweep benchmark.noise_std_user=0,0.05 # $ seq eval run my_policy_user --benchmark reach_user --param eval.max_seconds=20 # not a standard eval
A constructor keyword typed as a setting no eval can set is refused when you register the benchmark, saying how to
type it: scale_user: float | str | None as scale_user: str | None,
steps_user: int = "auto" as steps_user: str. One untyped, or typed as nothing a
--param could be (a dict, a class of your own), keeps its default, and
seq deploy warns of a typed one.
Set any of them with --param side.name=value (the bare name when only one side declares it)
and sweep any of them with --sweep, every combination an arm. Each value is checked before
anything is reserved: a name no side declares is refused with every parameter the eval can set, and a wrong type with the type it
takes.
Who decides: the eval’s value; else, for a policy’s, the default its deployment sets
(seq policy set <name> params.NAME=VALUE); else the default of the side that declares it; the report
prints every arm’s values with where each came from.
The robot your benchmark’s init= takes from the policy
(init={"robot_user": "{policy.robot}"}) is one of them too, where the rate and the chunk lengths
stay the policy’s: the evaluated policy gives its value,
--param benchmark.robot_user=UR5e plays another, and --sweep benchmark.robot_user=Panda,UR5e
plays each, the report saying which value came from the policy. Typed
Annotated[str, seq.OneOf("Panda", "UR5e")], it takes those values alone
(Inference parameters): an eval whose policy’s robot is none of them, and
that picks none of its own, is refused before any machine starts, saying how to pick one.
The LIBERO templates take robot so, from version 7: Panda, LIBERO’s own and its
default, or UR5e, Kinova3, IIWA, Sawyer or Jaco,
each with robosuite’s own gripper for it (seq eval run <your pi05-libero deployment>
--benchmark libero-10 --adapter libero-openpi --param benchmark.robot=UR5e). Their README says where each
robot’s base stands.
The robosuite template takes robot so too, on robosuite’s
Lift and Stack: its seven built-in arms, the six above and XArm7; the four of its MuJoCo Menagerie
pack, robotstudio_so101, i2rt_yam, trossen_wx250s and
franka_fr3; or your own, its MJCF or URDF in a volume your copy mounts
(--param benchmark.robot=/assets/my_arm_user.xml). Each episode is scored against a scripted expert on
its arm and task, beside its raw success: its metrics carry expert_covered and, where that is 1,
expert_success, the expert’s success rate, and score, the episode’s success
over it (averaged, the policy’s rate over the expert’s). SO-101 and WidowX 250S run in layouts of
their own, their base or objects nearer, so their raw rates do not compare directly with the other arms’;
their scores do. An arm still out of reach with its base and the objects moved nearer takes
--param benchmark.scale=auto: the objects’ size and mass, where they start and the success
margin scale by its reach straight out over Panda’s (or by a number given instead,
benchmark.scale=0.5), while the table and the arm stay as they are. A scaled run, a run whose
base_shift or objects_shift the eval sets, and your own arm read
expert_covered 0 and no score: “expert not covered”, the raw rate
alone.