--- language: - en pipeline_tag: robotics library_name: lerobot tags: - robot-learning - isaac-0.5 - bimanual-yam --- # Isaac 0.5 for Bimanual YAM We fine-tuned Isaac 0.5 on bimanual YAM demonstrations from xDoF ABC and MolmoAct2. The policy reads three RGB views, a language instruction, and the state of both arms. It predicts absolute joint and gripper targets for both arms. This checkpoint was saved at step 200,000 of fine-tuning on 32 GPUs with a global batch of 256 sequences and a sequence length of 2,048 tokens. ## Quick Links [Isaac 0.5 base model](https://huggingface.co/PerceptronAI/Isaac-0.5) · [xDoF ABC-130k dataset](https://huggingface.co/datasets/XDOF/ABC-130k) · [MolmoAct2 Bimanual YAM dataset](https://huggingface.co/datasets/allenai/MolmoAct2-BimanualYAM-Dataset) · [Code](https://github.com/perceptron-ai-inc/isaac) · [Blog](https://www.perceptron.inc/blog/introducing-isaac-0-5) ## Get started Clone Isaac with its pinned LeRobot submodule. [Isaac on GitHub](https://github.com/perceptron-ai-inc/isaac) ```bash git clone --branch main --recurse-submodules https://github.com/perceptron-ai-inc/isaac.git cd isaac/lerobot uv venv --python 3.12 source .venv/bin/activate uv pip install -c constraints/perceptron_isaac-cu128.txt \ --index https://download.pytorch.org/whl/cu128 --index-strategy unsafe-best-match \ '.[perceptron_isaac,training]' hf download PerceptronAI/Isaac-0.5-YAM --local-dir ./Isaac-0.5-YAM ``` ## Run inference | Top RGB | Left wrist RGB | Right wrist RGB | | --- | --- | --- | | ![Blocks spelling ISAAC from the top camera](assets/sample_top_rgb.png) | ![Left wrist RGB](assets/sample_left_rgb.png) | ![Right wrist RGB](assets/sample_right_rgb.png) | The example loads the top, left wrist, and right wrist images with the recorded state of both arms. ```python import json from pathlib import Path import torch from lerobot.policies.factory import make_pre_post_processors from lerobot.policies.perceptron_isaac import PerceptronIsaacPolicy from torchvision.io import decode_image snapshot = Path("./Isaac-0.5-YAM") assets = snapshot / "assets" sample = json.loads((assets / "sample_observation.json").read_text()) observation = { key: decode_image(str(assets / file), mode="RGB").float().div(255).unsqueeze(0) for key, file in sample["cameras"].items() } observation["observation.state"] = torch.tensor([sample["state"]], dtype=torch.float32) observation["task"] = [sample["task"]] path = str(snapshot / "recorded_policy") policy = PerceptronIsaacPolicy.from_pretrained(path) preprocess, postprocess = make_pre_post_processors(policy.config, pretrained_path=path) with torch.inference_mode(): actions = postprocess(policy.predict_action_chunk(preprocess(observation))) ``` The policy returns a 60 × 14 action chunk for each observation. ## Fine-tune From `isaac/lerobot`, set `DATASET_REPO_ID` to a compatible LeRobot dataset. This example uses two GPUs and CPU offload and saves a checkpoint at the end of training. [Isaac fine-tuning guide](https://github.com/perceptron-ai-inc/isaac#fine-tune) ```bash STEPS=10000 torchrun --standalone --nproc_per_node=2 ../scripts/finetune.py \ --policy.path="./Isaac-0.5-YAM/recorded_policy" --dataset.repo_id="$DATASET_REPO_ID" \ --steps="$STEPS" --policy.max_train_steps="$STEPS" --batch_size=1 \ --dataset.video_backend=pyav --parallelism.dp_shard=-1 \ --accelerator.mixed_precision=bf16 --accelerator.fsdp.cpu_offload=true \ --accelerator.fsdp.reduce_dtype=float32 --policy.push_to_hub=false \ --env_eval_freq=0 --eval_steps=0 ```