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.
- Upstream repo: https://github.com/autobio-bench/AutoBio
- Upstream paper: AutoBio: A Simulation and Benchmark for Robotic Automation in Digital Biology Laboratory
- Upstream note (quoted): "This is currently a preliminary version of AutoBio ... The project is in development, and the codebase is undergoing structural improvements."
-
Linux only (tested on Ubuntu 20.04 / 24.04; WSL2 works). The
autobioside uses a conda environment; theopenpiside uses uv. See each sub-README for setup. -
MuJoCo rendering is headless EGL: export
MUJOCO_GL=egl(andMUJOCO_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, andserve_policyalike — otherwise JAX/Triton kernel compilation crashes the process on this architecture. The pinnednvidia-cuda-nvcc-cu12==12.9.86inopenpi/uv.lockis likewise required for sm_120.
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. theinsert_centrifuge_5430dataset ("Load centrifuge rotor") maps to theload_centrifuge_5430module. Use the task keys accepted bycreate_task()inautobio/task.pyas the source of truth.openpi/scripts/train.py— added a missingreturninwrap()which raisedKeyError: SLURM_JOB_IDon non-SLURM machines (after checkpoint save; results unaffected).openpi/uv.lock— bumpednvidia-cuda-nvcc-cu12to 12.9.86, required for RTX 5090 (sm_120).- Added
openpi/scripts/export_lora.py+openpi/scripts/load_lora.py(portable LoRA delta export/load) andopenpi/demo_pi0_infer.py(standalone π0 inference demo).
π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.
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-lora5kon HuggingFacehuggingface-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_btensors only — to use it, merge them into π0_base weights withmerge_lora_into_params()fromopenpi/scripts/load_lora.py(or simply use the full checkpoint above, which is whatserve_policy.pyconsumes 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–ep03paired), 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 LoRAnpzdelta 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-lora5kandCloudTugWind/AutoBio-pi0-screw-tighten-lora5k, with the 100 MB LoRAnpzdeltas 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/4999cd 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.jsonEverything below is from the upstream README, kept here for convenience (all first-person statements belong to the AutoBio team).
autobio: The AutoBio codebase. Seeautobio/README.mdfor 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. Seeopenpi/README.md.RoboticsDiffusionTransformer: The modified RDT codebase adapted from RoboticsDiffusionTransformer, used to reproduce the RDT experiment results. The main modification is inRoboticsDiffusionTransformer/data/lerobot_vla_dataset.py(LeRobot dataset loading). See itsREADME.md.
Two rendering flavors (MuJoCo and Blender Cycles), LeRobot v2.0 format, videos at 224x224@50fps:
- MuJoCo dataset collection: Close thermal cycler lid · Open thermal cycler lid · Pick up centrifuge tube · Unscrew centrifuge tube cap · Aspirate with pipette · Transfer centrifuge tube · Screw on centrifuge tube cap · Operate thermal mixer panel · Load centrifuge rotor
- Blender Cycles dataset collection:
same 9 tasks with
-blendersuffix.
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.
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>'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).
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.jsonImportant: 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.