lerobot/pusht
LeRobot β’ Updated β’ 206 episodes β’ 31k β’ 79
How to use candacelabs/smolvla-pusht with LeRobot:
# See https://github.com/huggingface/lerobot?tab=readme-ov-file#installation for more details git clone https://github.com/huggingface/lerobot.git cd lerobot pip install -e .[smolvla]
# Launch finetuning on your dataset python lerobot/scripts/train.py \ --policy.path=candacelabs/smolvla-pusht \ --dataset.repo_id=lerobot/svla_so101_pickplace \ --batch_size=64 \ --steps=20000 \ --output_dir=outputs/train/my_smolvla \ --job_name=my_smolvla_training \ --policy.device=cuda \ --wandb.enable=true
# Run the policy using the record function
python -m lerobot.record \
--robot.type=so101_follower \
--robot.port=/dev/ttyACM0 \ # <- Use your port
--robot.id=my_blue_follower_arm \ # <- Use your robot id
--robot.cameras="{ front: {type: opencv, index_or_path: 8, width: 640, height: 480, fps: 30}}" \ # <- Use your cameras
--dataset.single_task="Grasp a lego block and put it in the bin." \ # <- Use the same task description you used in your dataset recording
--dataset.repo_id=HF_USER/dataset_name \ # <- This will be the dataset name on HF Hub
--dataset.episode_time_s=50 \
--dataset.num_episodes=10 \
--policy.path=candacelabs/smolvla-pushtThis repo currently holds the ready-to-run fine-tuning script for lerobot/smolvla_base (450M) on lerobot/pusht (206 episodes, 25.6K frames, 1 camera, 2-dim actions, fps 10, MIT). The trained weights are not here yet β run train_smolvla_pusht.sh on any CUDA GPU with β₯16 GB to produce them; the script pushes the result to this repo (--policy.push_to_hub=true).
pip install "lerobot[training]"
bash train_smolvla_pusht.sh
--policy.empty_cameras=2 + --rename_map='{"observation.image": "observation.images.camera1"}'; evaluation additionally needs --policy.output_features='{"action": {"type": "ACTION", "shape": [2]}}' (command included, commented, in the script β from naonaon/smolvla_pusht)--policy.repo_id, --trackio.space_id, --policy.push_to_hub) is taken from the LeRobot docs and the community reproduction above but was not machine-verified β the planned pre-flight check job could not run (Jobs API returned 404 for this account at package time). Run lerobot-train --help first if anything is rejected.lerobot[training]) for the same reason; pin with pip freeze once verified.lerobot-eval (command in script).Base model
HuggingFaceTB/SmolLM2-360M