Skip to content

Evaluate Policies

armnet-policy-eval is the generic Armnet policy evaluation command. It keeps one user-facing CLI while dispatching to policy-specific runtime backends. Each backend still builds its own Docker image, so LeRobot, OpenPI, GR00T N1.7, and future policy stacks can keep separate dependencies.

LeRobot Policies

For LeRobot-compatible policies, use the same flags as armnet-lerobot-eval; only the command name changes:

armnet-policy-eval \
  --policy.path=nikodembartnik/act_armnet_button_test \
  --armnet.embodiment=lerobot/so-101 \
  --armnet.task=push_green_button \
  --eval.n_episodes=1 \
  --eval.batch_size=1 \
  --armnet.episode_time_s=30 \
  --armnet.fps=20

If --policy.type is omitted, the command defaults to the LeRobot backend.

The episode count is --eval.n_episodes (a LeRobot flag, not --armnet.*). LeRobot's EvalConfig also requires --eval.batch_size to be no larger than --eval.n_episodes, and its default is 50 — so a real-robot eval, which rolls out one episode at a time, should always pass --eval.batch_size=1.

Evaluating one checkpoint subfolder

Policies published as checkpoint-<step>/ subfolders in a single repo (the layout the BusyBox multitask finetunes use) are evaluated by naming the repo and the subfolder together. Only that step is downloaded, not the whole repo:

armnet-policy-eval \
  --policy.path=armnet/smolvla_busybox_multitask/checkpoint-20000 \
  --armnet.embodiment=lerobot/so-101 \
  --armnet.task=push_green_button \
  --eval.n_episodes=5 \
  --eval.batch_size=1 \
  --armnet.secrets="{HF_TOKEN: huggingface-token}"

--policy.path accepts the bare org/repo/checkpoint-20000, an explicit hf://org/repo/checkpoint-20000, and the copied web URL (https://huggingface.co/org/repo/tree/main/checkpoint-20000). A plain org/repo with no subfolder still loads from the repo root, and --armnet.policy_revision pins a Hub revision. This works for every LeRobot policy, MolmoAct2 included.

Overriding the language instruction

By default the policy is handed the task's own description (the cell resolves it from the task database). A multitask checkpoint only conditions correctly on the exact prompt string it trained on, so when the training label differs from the task-database phrasing, pass the training string verbatim with --armnet.language_instruction; it takes precedence over the task description:

armnet-policy-eval \
  --policy.path=armnet/smolvla_busybox_multitask/checkpoint-20000 \
  --armnet.embodiment=lerobot/so-101 \
  --armnet.task=push_green_button \
  --armnet.language_instruction='push the green button' \
  --eval.n_episodes=5 \
  --eval.batch_size=1 \
  --armnet.secrets="{HF_TOKEN: huggingface-token}"

--armnet.task still selects the goal the cell scores; only the text the policy sees changes. This matches the OpenPI and GR00T backends, which already honour --armnet.language_instruction.

Every backend accepts --armnet.cell=cell-03 to run the eval on that cell only. We recommend leaving it unset unless you need one particular machine, because the eval then waits for that cell even while other cells that could run it are free. See Requesting a specific cell.

OpenPI Policies

Select OpenPI with --policy.type=openpi. The generic command maps --policy.path and --policy.config_name onto the existing OpenPI runtime backend:

armnet-policy-eval \
  --policy.type=openpi \
  --policy.path=volume://openpi/checkpoints/5000 \
  --policy.config_name=pi05_so101_stacking_rings \
  --policy.actions_to_execute=25 \
  --armnet.embodiment=lerobot/so-101 \
  --armnet.task=ring_insert \
  --armnet.n_episodes=3 \
  --armnet.episode_time_s=30 \
  --armnet.secrets="{HF_TOKEN: huggingface-token}"

OpenPI checkpoints are Orbax step folders containing params/ and assets/. Use a volume:// path, upload a local checkpoint with the backend-specific volume upload flags, or pull one step straight from the Hub with an hf:// reference naming the checkpoint-<step>/ subfolder:

armnet-policy-eval \
  --policy.type=openpi \
  --policy.path=hf://armnet/pi0_busybox_multitask/checkpoint-19999 \
  --policy.config_name=pi0_busybox_multitask \
  --armnet.embodiment=lerobot/so-101 \
  --armnet.task=push_green_button \
  --armnet.language_instruction="push the green button" \
  --armnet.secrets="{HF_TOKEN: huggingface-token}"

The hf:// scheme is required for OpenPI because a bare relative path is read as a volume path. --policy.revision pins a Hub revision. The named --policy.config_name must be registered in the OpenPI build the eval image ships (see Evaluate an OpenPI Policy).

GR00T Policies

Select NVIDIA GR00T N1.7 with --policy.type=groot:

armnet-policy-eval \
  --policy.type=groot \
  --policy.path=https://huggingface.co/pravsels/groot1.7_insert_candle \
  --armnet.embodiment=lerobot/so-101 \
  --armnet.task=insert_candle \
  --armnet.n_episodes=1 \
  --armnet.episode_time_s=30 \
  --armnet.secrets="{HF_TOKEN: huggingface-token}"

The GR00T backend accepts root-level Hugging Face model repos and nested checkpoint paths, for example:

pravsels/groot1.7_insert_candle
pravsels/groot1.7_insert_candle/checkpoints/8000/pretrained_model
https://huggingface.co/pravsels/groot1.7_insert_candle/tree/main/checkpoints/8000/pretrained_model

Structured Variation

An evaluation against one staged pose measures the policy on that pose. Add --armnet.variation=true and each episode runs in a slightly different scene: the rail carrying the arm shifts, the pan/tilt cameras aim a few degrees off their calibrated pose, and the lightbox brightens or dims.

armnet-policy-eval \
  --policy.path=pravsels/smolvla_open_lamp_door \
  --armnet.embodiment=lerobot/so-101 \
  --armnet.task=open_lamp_door \
  --eval.n_episodes=20 \
  --eval.batch_size=1 \
  --armnet.variation=true \
  --armnet.variation-seed=42

Available on the LeRobot, OpenPI, and GR00T eval backends. Deliberately not on armnet-lerobot-record or armnet-lerobot-teleop: moving the scene under a human demonstrator changes what is taught, not what is measured.

Isolating one kind of generalisation

--armnet.variation=true enables every device family. Override them independently with:

  • --armnet.variation-rail — arm-base position on the rail
  • --armnet.variation-cameras — pan and tilt of each motorised camera
  • --armnet.variation-lighting — lightbox brightness

For example, test positional generalisation alone:

armnet-policy-eval \
  --policy.path=pravsels/smolvla_open_lamp_door \
  --armnet.task=open_lamp_door \
  --armnet.variation-rail=true \
  --armnet.variation-seed=42

An unspecified dimension inherits --armnet.variation (which defaults to false). Each physical axis draws from a random stream keyed by (seed, episode, axis name), rather than consuming from one shared sequence. The rail positions for a seed are therefore bit-for-bit identical whether lighting is enabled or disabled.

What varies, and by how much

Each value is drawn from a normal centred on that cell's own calibrated default, clipped at 2.5 standard deviations and then clamped to the device's physical travel. The spread is configured per device in the cell's JSON, so a cell whose rail parks near an end can use a narrower one.

Axis Default spread Typical envelope
Rail position 10 percent of travel ±25 percent around the cell's park position
Camera pan and tilt 5 degrees ±12.5 degrees around the calibrated aim, inside the mount's stops
Lightbox brightness 11 percent 2.5 to 57.5 percent, around a default of 30

Operators override the spread in robot_cell_*.json:

{
  "robot": {
    "rail": { "default_position_percent": 90, "variation_std_percent": 4 }
  },
  "lightbox": { "default_brightness": 30, "variation_std": 11 }
}

A servo_mount drives STS3215 serial servos in encoder steps over a 4096-step turn. The default spread is 5 degrees, so the picture swings ±12.5 degrees, and the cell converts that into steps. Set it with variation_std_degrees or variation_std_steps. Either axis can be tightened on its own with pan_variation_std_degrees or tilt_variation_std_degrees (or the same names ending in _steps). To let one direction travel further than the other, set pan_variation_below_degrees and pan_variation_above_degrees (tilt has the same pair). "Below" is toward smaller encoder steps, "above" toward larger ones, and both are still clipped to the measured stops. A bracket's reach depends on how it was assembled, so each one is bounded by the stops that cell measured with the range-test script on its Pi rather than by a shared constant:

{
  "robot": {
    "camera_configs": {
      "front": {
        "servo_mount": {
          "port": "/dev/ttyAMA0",
          "pan_id": 1, "tilt_id": 2,
          "pan": 679, "tilt": 3033,
          "pan_range": [37, 2185], "tilt_range": [1721, 3971],
          "pan_variation_std_degrees": 5.0,
          "tilt_variation_std_degrees": 5.0
        }
      }
    }
  }
}

A mount with no measured range falls back to the servo's own full turn, which varies more widely than anyone checked, so measure the stops before enabling camera variation on a newly built mount.

Lower the figure on a cell that parks a device near a physical stop. Cell-01 parks its rail at 70 percent and cell-03 at 90, so a wide spread on cell-03 would put much of the distribution against the end; it uses 4 instead. Zero pins an axis to its default while leaving the others varying.

Reproducibility

The seed fixes the sequence of offsets, not absolute device positions. Absolute positions are the cell's default plus the offset, and defaults differ between cells: cell-01 parks its rail at 70 percent, cell-03 at 90.

  • Same seed, same cell: identical scenes. This is the case that matters when comparing two policies.
  • Same seed, different cell: the same perturbation pattern in a different place.

Routing takes whichever cell for the task is free, so a re-run can land elsewhere. Every episode's metadata records the scenario it ran in, including cell_id, so a comparison can check it is like-for-like rather than assume so:

{
  "seed": 42,
  "episode": 3,
  "cell_id": "cell-01",
  "values": {
    "rail": 0.715,
    "brightness": 21.55
  }
}

A clamped key appears only when the device's travel limits, rather than the intended spread, decided a value — that axis varied less, and less symmetrically, than the configuration suggests. No cell currently ships a spread wide enough for it to fire, so seeing one means a config was widened past what that device can reach.

A not_applied key lists axes whose device would not move. A lightbox that does not answer costs that axis of variation and is reported in the job log; the episode runs on with that axis at whatever the reset left it, which is what the cell already does with the lightbox at job start. A rail that will not move is the exception and fails the episode, because it leaves the arm somewhere other than where the record claims.

The variation draw uses its own generator, so it neither consumes from nor disturbs the --seed that controls the policy's own randomness.

Setting a value by hand

--armnet.rail and --armnet.lightbox-brightness are held to the same envelope as a sampled value, and are checked before the job is queued. Because routing can pick any free cell for the task, a value has to be valid on all of them (or only on the requested cell, with --armnet.cell):

cell-03: --armnet.rail on rail=0.5 is outside 0.8 to 1

Aiming the cameras by hand

--armnet.camera-aim points the pan/tilt cameras for a whole run instead of varying them. Values are a fraction of that axis's travel, the same 0–1 scale as --armnet.rail: 0 is the low stopper, 1 is the high stopper. The cell maps the fraction onto encoder steps, so the same request means the same place in the travel on any cell:

armnet-lerobot-eval \
  --policy.path=my_user/my_policy \
  --armnet.task=push_green_button \
  --armnet.camera-aim=top.pan=0.55,top.tilt=0.4,front.pan=0.3

A camera or axis left out stays on its calibrated centre, and without the flag every camera does. 0.5 is mid-travel, which is usually not the commissioned centre.

A value outside 0–1 is refused, not clamped, and the job fails at start before the rail, lights or cameras move:

camera 'front' pan 1.2 is outside 0 to 1

The aim is applied after the job-start reset has centred the mounts, holds for every episode, and is undone when the job ends, so the next job and an idle cell see the calibrated pose. A mount that does not respond is reported in the job log and the run continues with that camera centred. The flag cannot be combined with camera variation, which re-aims the cameras every episode.

Continuing a Run That Stopped Part-Way

Three things are keyed by episode index, and every job starts that index at 0:

  • the episode's scene variation;
  • the policy seed (--seed plus the index);
  • the manual-reset object layout the FMS draws.

If a 20-episode evaluation stops after 12 episodes, resubmitting it would start all three from the beginning again. Instead, pass the number of episodes already run as --armnet.rng-index, and the number left as the episode count:

armnet-policy-eval \
  --policy.path=pravsels/smolvla_open_lamp_door \
  --armnet.embodiment=lerobot/so-101 \
  --armnet.task=open_lamp_door \
  --eval.n_episodes=8 \
  --eval.batch_size=1 \
  --armnet.variation=true \
  --armnet.variation-seed=42 \
  --armnet.rng-index=12

The new job's first episode then gets the scene, seed and layout that episode 12 (the 13th) of the original run would have had. Keep every other flag (--seed, --armnet.variation-seed, the task) as it was. Scenes reproduce device-for-device only on the same cell, as described under Reproducibility. Each per-episode result records its rng_index, so the two partial runs can be joined.

Automated resets replay fixed motion plans, so they have no sequence to continue. GR00T jobs never reset before their first episode; when resuming one, set the workspace up by hand first.

Recorded Eval Datasets

Each backend records eval episodes as a LeRobot dataset. By default, recorded datasets are pushed to Hugging Face under:

<hf_user>/eval_<task>_<policy>_<timestamp>

<policy> is the last component of --policy.path, so a checkpoint sweep stays tellable apart on the Hub; when it already contains the task name (a per-task fine-tune such as molmoact2_insert_gear_in_gripper_yam_fft_step4000) it stands in for the task. Names are trimmed to the Hub's 96-character limit. --armnet.record_dataset_repo_id=<user>/<name> sets the id explicitly.

Pass HF_TOKEN through --armnet.secrets to push private datasets or to resolve the target Hub username. Disable uploads with --armnet.push_to_hub=False.