Instructions to use 0xMattia/so101-bc-ppo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- stable-baselines3
How to use 0xMattia/so101-bc-ppo with stable-baselines3:
from huggingface_sb3 import load_from_hub checkpoint = load_from_hub( repo_id="0xMattia/so101-bc-ppo", filename="{MODEL FILENAME}.zip", ) - Notebooks
- Google Colab
- Kaggle
SO-101 Pick-and-Place · BC + PPO (kp=100)
Contact-free rollout on held-out seed 190000, shown at two-thirds speed.
This policy controls an SO-101 arm in MuJoCo to pick up a cube, clear a post, and place the cube in a bowl. I regenerated scripted demonstrations and DAgger-style corrections with arm gains kp=100, kv=2.731, then fine-tuned with PPO for 393,216 online steps (training seed 42). I selected the 376,832-step checkpoint using validation scenes 42000–42199, prioritizing contact-free placement. The gripper uses its own settings, and the controller updates joint targets at 25 Hz.
The policy takes 34 simulator-state observations and outputs three normalized Cartesian displacement commands and one gripper command. It is for simulation: the MuJoCo gains are not servo firmware settings, and the policy uses observations that the current hardware adapter does not provide. It has not been validated on a physical SO-101.
Held-out evaluation
Deterministic evaluation on 1,000 randomized resets (seeds 190000–190999), with object positions, cube orientation, arm pose, and post geometry varied independently of checkpoint selection. A contact-free placement requires the cube to settle in the bowl without the arm or cube touching the post.
| Metric | Episodes | Rate |
|---|---|---|
| Placement | 989 | 98.9% |
| Contact-free placement | 888 | 88.8% |
| Any post contact | 104 | 10.4% |
Contact-free successes averaged 2.12 seconds. Without retraining, this checkpoint placed 97.2% of cubes at each of kp=80 and kp=120 on the same scenes.
Run locally
Clone the companion GitHub repository, which contains the environment and policy feature extractor. Download config.yaml and checkpoints/best_policy.zip from the same kp100 revision into runs/clutter_kp100/seed42/ and preserve the checkpoints subdirectory. The config is required to replay at the evaluated gains.
uv sync --locked
uv run python scripts/evaluate.py \
--checkpoint runs/clutter_kp100/seed42/checkpoints/best_policy.zip \
--episodes 1000 --seed 190000
uv run mjpython scripts/visualize.py \
--checkpoint runs/clutter_kp100/seed42/checkpoints/best_policy.zip \
--seed 190000 --speed 0.67 --next-on-enter
Use python instead of mjpython on Linux or Windows. Press Enter in the MuJoCo window for the next randomized scene.
To verify all release files, download them and run shasum -a 256 -c SHA256SUMS from the directory containing config.yaml.
License
The checkpoint and accompanying files are released under the Apache License 2.0.
- Downloads last month
- 24
