Code · Video Demo · Documentation · Wiki Guide · Models & Datasets · Installation
bimanual-vla connects the complete real-robot learning loop in one repository:
collect synchronized Piper demonstrations, validate and export LeRobot datasets,
manage datasets and checkpoints across workstations and GPU clusters, fine-tune
OpenPI pi0 / pi0.5 policies, and deploy action chunks through a latency-aware
execution stack with local safety checks.
Piper + RGB Cameras -> Robot Demonstrations -> LeRobot Dataset
-> OpenPI Fine-tuning -> Policy Server
-> Real-Time Chunking -> Safety Layer -> Piper Execution
Training workflows cover supervised fine-tuning (SFT) with OpenPI and
reinforcement learning (RL) through the simulation Dashboard’s RLinf
integration, with shared experiment, checkpoint, and evaluation-video management.
The workflow supports single-arm and bimanual Piper operation, joint-space and
end-effector (delivery) data contracts, and GUI/CLI workflows.
The public workflow is organized into three stages:
| Stage | Input | Core Components | Output |
|---|---|---|---|
| Data Collection | Piper feedback, RGB views, language instruction | GUI or teleoperation, synchronized recording, episode validation | Raw robot episodes and LeRobot v2.1 datasets |
| VLA Training | Demonstrations for SFT; simulation rollouts/rewards for RL | OpenPI SFT, RLinf RL profiles, local/Slurm job management | Checkpoints, metrics, and evaluation artifacts |
| Deployment | Live observation and Policy checkpoint | Asynchronous WebSocket inference, model-side RTC, action queues, safety gates | Validated Piper commands at the configured control rate |
| Component | Configuration |
|---|---|
| Robot | Piper robotic arm, single-arm or bimanual |
| Kinematics | 6 revolute joints per arm plus gripper |
| End effector | Piper gripper, approximately 0.00-0.07 m opening range |
| Control | Piper SDK over SocketCAN at 1 Mbit/s |
| Overhead camera | Intel RealSense D435i, third-person RGB view |
| Wrist cameras | Intel RealSense D405, one RGB view per active wrist |
| Collection rate | Configurable; GUI defaults to 30 FPS, teleoperation CLI to 20 FPS |
| Policy / command rate | Default 20 Hz reference updates and 100 Hz Ruckig command publication |
| Role | Typical Platform | Responsibility |
|---|---|---|
| Robot workstation | Ubuntu 22.04, x86_64 | CAN control, camera capture, GUI, RTC client |
| Policy & Dashboard server | NVIDIA RTX 4090 workstation | Multi-node data management, Policy inference, telemetry |
| Training cluster | NVIDIA H100 / H200 with Slurm | Multi-GPU fine-tuning and evaluation |
ROS, ROS2, gRPC, and EtherCAT are not required by the current stack.
git clone https://github.com/SUNNYsyy2005/bimanual-vla.git
cd bimanual-vla
conda create -n dual_arm python=3.10.20 -y
conda activate dual_arm
python -m pip install --upgrade pip setuptools wheel
python -m pip install -r requirements.txt
bin/bimanual-vla --help
System packages, SocketCAN activation, RealSense selection, OpenPI setup, Dashboard configuration, Slurm, verification, and troubleshooting are covered in the complete installation guide.
The collection application provides device discovery, live multi-camera preview, task metadata, robot feedback, episode controls, replay, and direct conversion/upload. It supports single-arm and bimanual collection, master/slave teleoperation, Quest VR control, overhead plus wrist RGB streams, and success/failure labeling.
# Launch the GUI
conda activate dual_arm
bash start_gui.sh
# Or use CLI for bimanual teleoperation
bin/bimanual-vla teleop-bimanual --record --schema joint
See the GUI operation guide and data collection guide before connecting hardware.
Raw NPZ Episodes -> Contract Validation -> LeRobot v2.1
-> Dataset Inspection / Merge -> OpenPI Training Dataset
Each episode combines RGB observations, robot state, actions, language instructions, and metadata. Supported v3 action contracts:
| Mode | Schema | Observation | Raw Action | Model Action |
|---|---|---|---|---|
| Single arm | Joint | 7D | 7D | 7D |
| Bimanual | Joint | 14D | 14D | 14D |
| Single arm | Delivery | 10D | 10D | 7D |
| Bimanual | Delivery | 20D | 20D | 14D |
# Validate raw episodes
bin/bimanual-vla data-validate --input-dir episodes_piper_v21 --target-fps 20
# Export to LeRobot v2.1
bin/bimanual-vla data-export \
--input-dir episodes_piper_v21 \
--repo-id piper/piper_v1 \
--root lerobot_datasets/piper_v1 --fps 20
# Validate the exported dataset
bin/bimanual-vla data-check lerobot_datasets/piper_v1
The authoritative field definitions are documented in the Piper data contract.
The platform supports two training modes:
| Mode | Backend | Workflow |
|---|---|---|
| SFT | OpenPI pi0 / pi0.5 + LeRobot demonstrations |
Normalization, train/test splits, configurable fine-tuning, FSDP, checkpointing, held-out evaluation |
| RL | RLinf + simulation environments | Launch profiles, rollout/training metrics, checkpoint management, evaluation videos |
Input:
Images: overhead RGB + wrist RGB views
State: joint 7D/14D or end-effector 10D/20D
Language: natural-language task instruction
Output:
Action chunk: 50 x 7D or 50 x 14D
Execution target: schema-dependent decoded action with safety checks
For SFT, the backend integrates OpenPI pi0 and pi0.5 with independently
configurable action-expert, language-model, and vision-encoder tuning. The
π0.5 path also supports training-time RTC prefix conditioning. FSDP can
distribute supported runs across multiple GPUs; H100/H200 jobs are submitted
through Slurm.
Download an OpenPI base checkpoint:
python -m scripts.models.download_openpi_checkpoint \
--checkpoint gs://openpi-assets/checkpoints/pi05_base \
--source auto --workers 16 --chunks-per-file 16
Note: Training and Policy serving use a separate OpenPI Python 3.11 environment. Follow the installation guide for the pinned upstream revision and server configuration.
Robot Workstation Policy Server
----------------- -----------------
RGB cameras + Piper state --WebSocket-> OpenPI pi0 / pi0.5
RTC session and timing --WebSocket-> Model-side RTC
Action queue + safety <-WebSocket-- Timestamped action chunk
|
+--> Reference updates --> Ruckig --> Validated Piper commands
Start the Dashboard/Policy stack on a configured inference server, then run the robot client in shadow mode first:
export BIMANUAL_VLA_POLICY_HOST="<policy-server-host>"
bin/bimanual-vla rtc-client \
--host "$BIMANUAL_VLA_POLICY_HOST" \
--port 8000 \
--arm-mode bimanual \
--arm-side both \
--left-can serial:LEFT_CAN_SERIAL \
--right-can serial:RIGHT_CAN_SERIAL \
--cam-high-device serial:OVERHEAD_CAMERA_SERIAL \
--cam-left-wrist-device serial:LEFT_WRIST_CAMERA_SERIAL \
--cam-right-wrist-device serial:RIGHT_WRIST_CAMERA_SERIAL \
--instruction "pick up the cube" \
--hz 4 \
--control-hz 20 \
--rtc-enabled
[!CAUTION] Real motion requires the local
--allow-executionflag and valid robot, observation, and Policy state. Stale inputs, a contract mismatch, or a failed safety check block execution or trigger the configured hold/braking behavior.
The 20,000-step π0.5 checkpoints and their matching real-robot datasets are available on Hugging Face in both joint-space and end-effector-space formats:
| Representation | Dataset | Model Weights |
|---|---|---|
| Joint space — 14D | pick_place_clean_joint_20261025 | π0.5 joint · 20k |
End-effector (delivery) — 20D |
pick_place_clean_delivery_20261025 | π0.5 EEF · 20k |
Each dataset contains 90 episodes / 69,905 frames at 30 FPS, with overhead and left/right wrist RGB views in LeRobot v2.1 format (81 training / 9 held-out). Both policies use full vision-encoder and action-expert fine-tuning, language-model LoRA, and RTC training with delays up to 12 steps.
The Dashboard is the project’s data and experiment management platform. Collection workstations upload demonstrations through the GUI, CLI, or REST API; the web interface tracks their locations and moves the required datasets and checkpoints between local storage, inference workstations, and configured H100/H200 Slurm targets.
See Dashboard operations and the simulation workflow guide.
.
|-- assets/ # README images and demos
|-- bin/bimanual-vla # Unified command entry point
|-- bimanual_vla/
| |-- collection/ # GUI, cameras, teleoperation, robot sessions
| |-- data/ # Contracts, validation, export, upload, analysis
| |-- deployment/ # RTC client, Ruckig, Policy adapters, safety
| `-- training/ # OpenPI model, fine-tuning settings, RTC sampling
|-- server_4090/ # Dashboard backend, frontend, Policy services
|-- docs/ # Installation, collection, and deployment guides
|-- scripts/ # Model, maintenance, analysis, and smoke tools
|-- jobs/ # Slurm and analysis jobs
|-- tests/ # Automated test suite
`-- requirements.txt # Robot workstation dependencies
| Topic | Guide |
|---|---|
| Installation and hardware | Installation |
| Collection GUI | GUI operation guide |
| Data collection | Data collection guide |
| Dataset fields and semantics | Piper data contract |
| 7D/10D action design | OpenPI action design |
| Real-robot inference | RTC client guide |
| RLSOK device review | RLSOK integration guide |
| Dashboard backend | Dashboard operations |
| Dashboard API | API reference |
| Simulation workflows | Simulation Dashboard |
python -m unittest discover -s tests -v
Hardware and Policy smoke tests are available under scripts/smoke/. Run them
only in the matching robot or inference-server environment.
The original source code and documentation in this repository are available under the Apache License 2.0, except where otherwise indicated.
This project builds on OpenPI, LeRobot, and the Piper robot SDK.