Skip to content
Feiyang2007Public

About

Reproduction & fixes on top of autobio-bench/AutoBio (upstream snapshot): repaired stale task imports, train.py SLURM bug, CUDA 12.9 lock; pi0 LoRA fine-tune on thermal_cycler_close reaches 18/20 (90%). Weights: see README.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

AutoBio — Reproduction Fork

This repository is a reproduction and study fork of autobio-bench/AutoBio (2025 pre-release snapshot).

All credit for the AutoBio benchmark — its simulation assets, tasks, datasets, codebase, and paper — belongs to the original AutoBio team. This fork does not claim any ownership of the upstream project; it exists only to (a) repair a few breakages in the frozen upstream snapshot and (b) document our own small-scale reproduction of one fine-tuning experiment on top of it.

Environment requirements (read this first)

  • Linux only (tested on Ubuntu 20.04 / 24.04; WSL2 works). The autobio side uses a conda environment; the openpi side uses uv. See each sub-README for setup.

  • MuJoCo rendering is headless EGL: export MUJOCO_GL=egl (and MUJOCO_EGL_DEVICE_ID=<gpu> if you have multiple GPUs) before running collection/evaluation.

  • RTX 5090 (sm_120) users: you must set

    export XLA_FLAGS="--xla_gpu_enable_triton_gemm=false"

    for every openpi command — training, compute_norm_stats, and serve_policy alike — otherwise JAX/Triton kernel compilation crashes the process on this architecture. The pinned nvidia-cuda-nvcc-cu12==12.9.86 in openpi/uv.lock is likewise required for sm_120.

What we changed in this fork

  1. autobio/task.py — fixed 6 stale import paths so that all 12 tasks import again (pickup→pickup_centrifuge_tube, insert→transfer_centrifuge_tube, screw_loose_topp→screw_loosen, screw_tighten_topp→screw_tighten, insert_centrifuge_5430→load_centrifuge_5430, vortex_mixer→mani_vortex_mixer). Note: task-module names and HuggingFace dataset IDs don't always match — e.g. the insert_centrifuge_5430 dataset ("Load centrifuge rotor") maps to the load_centrifuge_5430 module. Use the task keys accepted by create_task() in autobio/task.py as the source of truth.
  2. openpi/scripts/train.py — added a missing return in wrap() which raised KeyError: SLURM_JOB_ID on non-SLURM machines (after checkpoint save; results unaffected).
  3. openpi/uv.lock — bumped nvidia-cuda-nvcc-cu12 to 12.9.86, required for RTX 5090 (sm_120).
  4. Added openpi/scripts/export_lora.py + openpi/scripts/load_lora.py (portable LoRA delta export/load) and openpi/demo_pi0_infer.py (standalone π0 inference demo).

Our reproduction result (this fork only, single easy task)

π0 LoRA fine-tuned on the MuJoCo flavor of thermal_cycler_close (100 episodes, 5000 steps, batch 16, one RTX 5090 24GB, ~7.5 h):

Model Episodes Success rate
π0_base zero-shot (6-episode smoke check) 6 0/6 (0%)
This LoRA (5000 steps) 20, seed 0 18/20 (90%)
Upstream paper, π0 full finetune (30k steps, H800 ×1500 GPU-hours) 100 × 3 seeds 99.7 ± 0.3%

Raw evaluation artifacts are in results/ (TRAINING_CONFIG.md, per-episode JSON, loss curve CSV) — note the caveats there: single task, single seed, small sample, and not an apples-to-apples comparison with the upstream full finetune.

Negative result: screw_loose & screw_tighten (5000 steps, dual-arm, contact-rich)

We also ran the same 5000-step LoRA recipe on two harder tasks — screw_loose (Medium) and screw_tighten (Hard), both 14-DoF dual-Aloha, both contact-rich. Both scored 0/100 in closed-loop evaluation (seed 0), and the π0_base zero-shot baseline also scored 0/10 on screw_loose. These artifacts are published as an honest negative result — we did not obtain a working policy for these two tasks.

Model Task Episodes Success
This LoRA (step 4999) screw_loose 100 (seed 0) 0/100 (0%)
This LoRA (step 4999) screw_tighten 100 (seed 0) 0/100 (0%)
π0_base zero-shot screw_loose 10 (seed 0) 0/10 (0%)

We traced the failures and are confident they are not evaluation-harness bugs: with --seed 0 the evaluator's initial state is bit-identical to training episode 0's first frame and the live images match that episode's first video frame; the repo's own scripted Expert solves both tasks; and fed real dataset observations the LoRA reproduces the expert action to within ~90%. In closed loop, however, the policy's first action chunk undershoots the expert (~40%) and the error compounds until the gripper never reaches the cap. Shortening the open-loop action horizon did not reliably help. Upstream's config default for these tasks is num_train_steps=30_000; we stopped at 5000 and have not yet validated whether longer training closes the gap. Full details, commands and numbers: results/screw_tasks_TRAINING_CONFIG.md.

Fine-tuned weights:

  • Full orbax checkpoint (~4.9 GB): CloudTugWind/AutoBio-pi0-thermal-cycler-close-lora5k on HuggingFace

    huggingface-cli download CloudTugWind/AutoBio-pi0-thermal-cycler-close-lora5k \
        autobio_pi0_tc_close_lora5k_ckpt.tar --local-dir .
    tar -xf autobio_pi0_tc_close_lora5k_ckpt.tar   # -> ./4999/
  • LoRA-only delta (100 MB): attached to this repo's GitHub Releases. The npz stores the lora_a/lora_b tensors only — to use it, merge them into π0_base weights with merge_lora_into_params() from openpi/scripts/load_lora.py (or simply use the full checkpoint above, which is what serve_policy.py consumes directly).

  • Evaluation media (~75 MB): rollout videos, charts and raw eval data on HuggingFace Datasets — CloudTugWind/AutoBio-pi0-thermal-cycler-close-lora5k-media. Contains 4 LoRA success rollouts and 4 zero-shot failures recorded on the same random seeds (3 camera views each, ep00–ep03 paired), plus the training loss curve and the success-rate chart.

  • ModelScope mirrors (mainland-China friendly): model repo — the full orbax checkpoint already unpacked as 4999/, alongside the LoRA npz delta and its meta; dataset repo — the same evaluation media as the HuggingFace Dataset above.

    modelscope download --model WindTugCloud/AutoBio-pi0-thermal-cycler-close-lora5k --local_dir ./
  • screw_loose / screw_tighten (negative result, 0/100): the full ~4.9 GB orbax checkpoints are on HuggingFace as CloudTugWind/AutoBio-pi0-screw-loose-lora5k and CloudTugWind/AutoBio-pi0-screw-tighten-lora5k, with the 100 MB LoRA npz deltas attached to this repo's GitHub Releases. These are published for reproducibility only — they do not solve the tasks in closed loop (see the negative-result section above).

Serve & evaluate (RTX 5090 needs the XLA_FLAGS workaround for a JAX/Triton crash):

cd openpi
XLA_FLAGS="--xla_gpu_enable_triton_gemm=false" uv run scripts/serve_policy.py --port 8000 \
    policy:checkpoint --policy.config thermal_cycler_close-lora --policy.dir /path/to/4999
cd autobio
MUJOCO_GL=egl python evaluate.py --host 127.0.0.1 --port 8000 \
    --task thermal_cycler_close --num_episodes 20 --seed 0 --save result.json

Everything below is from the upstream README, kept here for convenience (all first-person statements belong to the AutoBio team).


Upstream repository layout

  • autobio: The AutoBio codebase. See autobio/README.md for install and usage instructions.
  • openpi: The modified openpi (π0) codebase adapted from OpenPI, containing the AutoBio team's code to convert autobio data to LeRobot format and to reproduce the π0 experiment results. See openpi/README.md.
  • RoboticsDiffusionTransformer: The modified RDT codebase adapted from RoboticsDiffusionTransformer, used to reproduce the RDT experiment results. The main modification is in RoboticsDiffusionTransformer/data/lerobot_vla_dataset.py (LeRobot dataset loading). See its README.md.

Datasets (hosted by the upstream AutoBio team on HuggingFace)

Two rendering flavors (MuJoCo and Blender Cycles), LeRobot v2.0 format, videos at 224x224@50fps:

Upstream workflow (quoted/paraphrased from upstream docs)

Environment setup

Follow autobio/README.md. The codebase assumes Linux (tested on Ubuntu 20.04 / 24.04). The openpi and RoboticsDiffusionTransformer dependencies are fragile and should be installed in separate environments; evaluation of fine-tuned models runs via remote inference.

Data collection & conversion (optional — upstream datasets can be downloaded directly)

Trajectories are collected by executing task files in the autobio conda environment; MuJoCo rendering via bash render.bash logs/<task_name>, Blender rendering via blender --background --python render_blender.py. Conversion to LeRobot format + normalization stats:

cd openpi
LEROBOT_HOME=$PWD uv run scripts/convert.py --data_dir '../autobio/logs/<task_name>' --repo_id 'data/<task_name>'
LEROBOT_HOME=$PWD JAX_PLATFORMS=cpu uv run python scripts/compute_norm_stats.py --config-name '<task_name>'

Training

See openpi/slurm/train.bash and RoboticsDiffusionTransformer/train.bash for the upstream launchers. Upstream full training (batch 32) uses one 80 GiB GPU (A100/H100/H800); for smaller GPUs, openpi supports LoRA training via config name <task_name>-lora (this is what our reproduction above used).

Evaluation

Upstream evaluation protocol:

# policy server (openpi directory)
XLA_PYTHON_CLIENT_MEM_FRACTION=.6 CUDA_VISIBLE_DEVICES=0 uv run scripts/serve_policy.py \
    policy:checkpoint --policy.config '<task_name>' --policy.dir 'checkpoints/<task_name>/<exp_name>/29999'
# evaluation (autobio directory)
python evaluate.py --port 8000 --task '<task_name>' --num_episodes 100 --image_history 0 \
    --num_workers 0 --render_device_id 0 --save result.json

License & attribution

Important: the upstream AutoBio repository does not ship a LICENSE file, which means its code is under default copyright protection ("all rights reserved") by the upstream authors. This fork redistributes the upstream snapshot unaltered in licensing terms, for non-commercial reproduction and study purposes only. If you reuse this repository beyond that scope — or if you are an upstream author and object to this redistribution — please open an issue. Code and docs added by this fork (the items listed under "What we changed in this fork", plus results/) are provided under the same terms for the same purpose. The π0 training stack under openpi/ additionally derives from Physical-Intelligence/openpi.

About

Reproduction & fixes on top of autobio-bench/AutoBio (upstream snapshot): repaired stale task imports, train.py SLURM bug, CUDA 12.9 lock; pi0 LoRA fine-tune on thermal_cycler_close reaches 18/20 (90%). Weights: see README.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages