Instructions to use pinklab-art/pl2m-training with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LeRobot
How to use pinklab-art/pl2m-training with LeRobot:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
PL-2 M training code
The scripts that fine-tuned the PL-2 M policies published under
pinklab-art. PL-2 M is PinkLab's mobile
bimanual robot (two 7-DoF OpenArm v2 arms). This repository holds code only; the
weights and datasets live in their own repositories.
| Model | Trained with |
|---|---|
pl2m-moving-act |
scripts/train.py --policy act |
pl2m-moving-groot and its variants, pl2m-sort-v1-groot |
scripts/train.py --policy groot |
pl2m-moving-pi05 |
lerobot-train directly (see below) |
The exact settings each model was trained with are in that model's repository
(train_config.json for ACT and π0.5, experiment_cfg/ for GR00T). The defaults in
scripts/training_config.py are a starting point and do not reproduce every model
by themselves; for example ACT defaults to 300,000 steps and pl2m-moving-act ran
200,000.
1. Build the training environments (once per GPU host)
bash scripts/training_host/setup.sh # installs under ~/caring by default
It builds three environments with uv: lerobot (ACT), NVIDIA Isaac-GR00T (GR00T)
and the older lerobot that Isaac's v3.0 → v2.1 dataset converter needs. Both
upstreams are pinned to the commits these models were trained with, and
isaac-gr00t-letterbox.patch is applied to Isaac-GR00T: it turns on letterboxing,
without which the 960×600 gripper frames and the 960×540 top frame fail to stack. Expect about 40 GB. Requires uv and
git-lfs.
GR00T's backbone nvidia/Cosmos-Reason2-2B is gated: accept its terms on Hugging
Face, then huggingface-cli login or export HF_TOKEN.
2. Download a dataset
The trainer looks for <datasets_root>/<repo_id>, which by default is
~/pl2_datasets/pinklab-art/pl2m-moving-masked:
huggingface-cli download pinklab-art/pl2m-moving-masked --repo-type dataset \
--local-dir ~/pl2_datasets/pinklab-art/pl2m-moving-masked
The masked dataset already has the observation mask and the slot cue drawn into its
frames. The tools that produce them run on the robot and are not part of this
repository. That matters for pl2m-sort-v1-groot: it was trained on a cued copy of
pl2m-sort-v1-raw, and only the raw recording is published, so that model cannot be
reproduced from the published data with this code alone.
3. Train
Run it with the lerobot environment's interpreter (it needs pandas and numpy); it finds the other environments itself:
PY=~/caring/lerobot/.venv/bin/python
$PY scripts/train.py --policy groot --dry-run # print the plan and the exact commands, run nothing
$PY scripts/train.py --policy groot
$PY scripts/train.py --policy act
| Option | Selects |
|---|---|
--policy act|groot |
which trainer (required) |
--repo-id OWNER/NAME |
another dataset under datasets_root |
--steps, --batch-size |
override the defaults for this run |
--chunk-horizon N |
GR00T action horizon (default 40) |
--num-gpus N |
GR00T only |
--resume / --resume-from-checkpoint |
continue an earlier run |
--early-stop / --no-early-stop |
stop on a loss plateau; off by default, and when on it applies to ACT only (GR00T's learning rate anneals over the full step budget) |
Before training, the script drops episodes whose videos are truncated or whose
recording was marked invalid, and logs each one it drops. For GR00T it then copies
the dataset, renumbers the remaining episodes, writes meta/modality.json and the
embodiment config, converts the copy to LeRobot v2.1 and starts Isaac's
launch_finetune.py. Checkpoints go to ~/pl2_models/<policy>_<dataset>/, each with
the dataset's robot_profile.json, masker.json, cue.json and tasks.jsonl
copied beside it.
Per-host settings (paths, steps, batch size) go in config/training.yaml; copy
config/training.yaml.example, which lists every key. An unknown key is an error.
π0.5
pl2m-moving-pi05 was fine-tuned from lerobot/pi05_base with lerobot's own
trainer, 83,000 steps at batch size 16. Its full configuration is the model's
train_config.json. Edit dataset.root and output_dir in it for your machine,
then:
lerobot-train --config_path train_config.json
Layout
scripts/train.py entry point
scripts/training_config.py every training setting and its default
scripts/dataset_spec.py reads camera roles, state/action groups and usable episodes from the dataset
scripts/groot_modality.py GR00T modality config for PL-2 M
scripts/early_stop.py loss-plateau watcher
scripts/tb_logger.py turns trainer logs into TensorBoard events
scripts/training_host/ environment setup and the Isaac-GR00T patch
config/training.yaml.example per-host overrides
pl_imitation_recorder/ stand-in for the robot's recorder config (dataset location only)
Exported from PinkLab's pl_imitation repository at commit 85cbffc.
License
The code is Apache-2.0. The model weights keep their own licenses (Gemma for π0.5,
NVIDIA Open Model License for GR00T). scripts/training_host/isaac-gr00t-letterbox.patch
modifies NVIDIA Isaac-GR00T, which is Apache-2.0.