run
Run a single policy evaluation on a specific task.
Synopsis
maple run POLICY_ID ENV_ID [OPTIONS]
Description
The run command executes a single episode of a policy on a specified environment
task. It displays real-time progress and results including success status, steps taken,
rewards, and video paths.
Arguments
POLICY_IDID of a running policy (e.g.,
openvla-7b-a1b2c3d4)ENV_IDID of a running environment (e.g.,
libero-x1y2z3w4)
Options
--task, -t TEXT(required)Task specification (e.g.,
libero_10/0)--instruction, -i TEXTOverride the default task instruction
--max-steps, -m INTEGERMaximum steps per episode. Default: from config (300)
--seed, -s INTEGERRandom seed for reproducibility
--unnorm-key, -u TEXTDataset key for action unnormalization (policy-specific)
--save-video, -vSave rollout video
--model-kwargs, -u STRModel-specific parameters
--env-kwargs, -e STREnv-specific parameters
--video-path TEXTCustom video output path. Default:
~/.maple/videos--timeout INTEGERConstant multiplied with max_steps to determine the timeout
--port INTEGERaemon port to connect to (default: from config, typically 8000)
Examples
Basic Run
# Run policy on a specific task
maple run openvla-7b-abc libero-xyz --task libero_10/0
With Seed
# Run with specific seed for reproducibility
maple run openvla-7b-abc libero-xyz \
--task libero_10/0 \
--seed 42
With Video Recording
# Save video of the rollout
maple run openvla-7b-abc libero-xyz \
--task libero_10/0 \
--save-video \
--video-path ./my-videos
Custom Instruction
# Override task instruction
maple run openvla-7b-abc libero-xyz \
--task libero_10/0 \
--instruction "pick up the red block and place it in the basket"
Extended Episode
# Run with more steps
maple run openvla-7b-abc libero-xyz \
--task libero_10/0 \
--max-steps 500
Output
Console Output
Running policy on task...
Policy: openvla-7b-abc123
Env: libero-xyz789
Task: libero_10/0
Max steps: 300
✓ Task completed successfully!
Results:
Run ID: eval-abc123def456
Steps: 156
Total Reward: 1.0000
Terminated: True
Truncated: False
Video saved: ~/.maple/videos/eval-abc123def456.mp4
Notes
The timeout for the HTTP request is calculated as
max_steps × timeoutto allow for long episodesIf a request times out, increase the
--timeoutmultiplier or reduce--max-stepsVideo files are saved with the run ID as the filename
See Also
eval — Batch evaluation across multiple tasks and seeds
Quickstart — Basic usage walkthrough