Real-Robot L2 Open/Put/Close IDM Handoff
This repository contains the official real-robot L2 IDM-only adapters trained on the approved clipped L2 dataset from 2026-05-22.
The package is intended to plug into the existing real-robot L1 deployment
pipeline. It does not include the Cosmos/DiT4DiT base model. Load the local base
model as before, then load one of these pytorch_model.pt adapter checkpoints.
Quick start for collaborator
Pull or refresh the full handoff package before running L2. This refresh is required
because language_embeddings/l2_language_embeddings.pt was added after the first
handoff to avoid loading the Cosmos text encoder onto a 16GB GPU.
export INSTALL_ROOT=/home/openmind/Research/adapter
export L2=$INSTALL_ROOT/real-robot-l2-open-put-close-idm-20260523
hf download Oliver-Ma/real-robot-l2-open-put-close-idm-20260523 \
--local-dir "$L2"
ls -lh $L2/language_embeddings/l2_language_embeddings.pt
If the old folder already exists, rerun the same hf download command. It will
fetch the new language_embeddings/ files and keep the checkpoint paths below.
Minimum server command for the combined L2 primitive model:
source /home/openmind/miniforge3/etc/profile.d/conda.sh
conda activate real-robot-l1-dit4dit
export INSTALL_ROOT=/home/openmind/Research/adapter
export HANDOFF_ROOT=$INSTALL_ROOT/real-robot-l1-cube-to-pot-adapter
export DIT4DIT_SRC=$INSTALL_ROOT/dit4dit_src
export PYTHONPATH=$DIT4DIT_SRC:$HANDOFF_ROOT/scripts:$PYTHONPATH
export TOKENIZERS_PARALLELISM=false
export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
export L2=$INSTALL_ROOT/real-robot-l2-open-put-close-idm-20260523
python $INSTALL_ROOT/live_state_server_inference_example.py server \
--checkpoint $L2/checkpoints/primitive_l1put_open_close_token/pytorch_model.pt \
--config-yaml $L2/checkpoints/primitive_l1put_open_close_token/config.yaml \
--language-cache $L2/language_embeddings/l2_language_embeddings.pt \
--composition-tokens \
--system-label l2_primitive \
--cosmos-base-model nvidia/Cosmos-Predict2.5-2B \
--host 127.0.0.1 --port 8008
The important new argument is:
--language-cache $L2/language_embeddings/l2_language_embeddings.pt
Without this argument, the L1 deployment script keeps the Cosmos text encoder in
memory and can OOM on a 16GB GPU during model.to(cuda). With this cache, the
server uses precomputed prompt embeddings and can drop the text encoder before
moving the policy to GPU.
For Test1/Test2/Test3, keep the same command structure and replace only
--checkpoint, --config-yaml, and --system-label with the matching folder:
| Real-robot test | Checkpoint folder | Suggested --system-label |
|---|---|---|
| Primitive init / sanity check | checkpoints/primitive_l1put_open_close_token |
l2_primitive |
| Test1: open lid then place blue cube | checkpoints/test1_open_place |
l2_test1_open_place |
| Test2: put blue cube then close lid | checkpoints/test2_put_close |
l2_test2_put_close |
| Test3: open lid, place blue cube, close lid | checkpoints/test3_open_place_close |
l2_test3_open_place_close |
Always keep --language-cache $L2/language_embeddings/l2_language_embeddings.pt
for all four L2 models.
Official models
| Purpose | Folder | Source run |
|---|---|---|
| Combined primitive initialization: L1 put + L2 open + L2 close | checkpoints/primitive_l1put_open_close_token |
real_l2_primitive_l1put_open_close_token_ft4000_20260523 |
| Test1: open lid then place blue cube | checkpoints/test1_open_place |
real_l2_test1_open_place_token_adapt_combo_4000_20260523 |
| Test2: put blue cube then close lid | checkpoints/test2_put_close |
real_l2_test2_put_close_token_adapt_combo_4000_20260523 |
| Test3: open lid then place blue cube then close lid | checkpoints/test3_open_place_close |
real_l2_test3_open_place_close_token_adapt_combo_4000_20260523 |
Each model folder contains:
pytorch_model.pt IDM adapter checkpoint, saved trainable-only
config.yaml training/runtime model config
dataset_statistics.json action/state normalization statistics
summary.jsonl training checkpoint summary
Training completed normally for all four models at steps_4000/final_model.
The checkpoints are adapter-only IDM weights, matching the L1 deployment
protocol:
freeze_backbone=true
save_trainable_only=true
loss_scale.future_video=0.0
Deployment-critical differences from L1
L2 uses two camera streams:
observation.images.image base / third-person RGB image
observation.images.wrist_image wrist RGB image
If the current L1 policy server only passes a single image key, add the wrist image to the model input. The common DiT4DiT eval interface convention is:
example = {
"image": base_rgb_hwc_uint8,
"wrist_image": wrist_rgb_hwc_uint8,
"state": current_state,
"lang": instruction,
}
Do not silently drop the wrist image for these L2 models unless you are running an explicit third-person-only ablation.
Action/state semantics remain the real-robot L1/L2 Panda single-arm interface:
state: 6D current EE pose [x, y, z, roll, pitch, yaw], padded by the wrapper if needed
action: 7D normalized EE-frame Cartesian velocity + gripper velocity
action labels: [vx, vy, vz, wx, wy, wz, gripper_velocity]
This is not the L3 bimanual 16D action space.
Recommended test order
- Load-only smoke test for
checkpoints/primitive_l1put_open_close_token. - No-motion live inference smoke test for Test1/Test2/Test3: print action ranges, do not send commands to the robot yet.
- Robot safety test with low action clipping and operator ready to stop.
- Evaluate Test1, Test2, Test3 separately. Use the matching task instruction
from
deployment/deployment_manifest.json.
Dataset version
Training data:
/work/some5596/CompAct/datasets/real_robot_l2_open_put_close_20260522/lerobot_splits_v3_training_clipped
The model repo includes only metadata for the dataset, not the full videos or
parquet files. See dataset_metadata/.
Files
checkpoints/ four official model folders
deployment/ manifest and dual-camera deployment notes
dataset_metadata/ dataset version and split summaries
logs/ training logs for audit