Instructions to use davidj24/smolvla-peg-insertion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LeRobot
How to use davidj24/smolvla-peg-insertion 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=davidj24/smolvla-peg-insertion \ --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=davidj24/smolvla-peg-insertion - Notebooks
- Google Colab
- Kaggle
SmolVLA fine-tuned for simulated peg-in-hole insertion (SO-101)
SmolVLA fine-tuned to insert a 20 mm peg into a hole with 0.25โ2 mm radial clearance, using an SO-101 arm in a MuJoCo simulation. Built for a robotics take-home assignment.
- Base model:
lerobot/smolvla_baseat revisiond9f33c94a60fb382c90dea2164c96845bd955e28. - Training data: 1,339 successful episodes from a scripted demonstrator in MuJoCo, with domain randomization over physics (clearance, friction, peg mass, grasp pose, hole position, latency) and visuals (lighting, textures, camera pose, distractor objects). About 14% of episodes include a deliberate missed alignment followed by a spiral-search recovery.
- Fine-tuning: LeRobot 0.6.1 defaults for SmolVLA. The vision-language model is frozen; the action expert and state projection are trained. Batch 16, 30,000 steps, learning rate 1e-4, chunk size 50, under an 8 GB GPU memory cap.
- Inputs:
observation.state(5 joint angles in degrees plus gripper 0โ100), overhead camera ascamera1and wrist camera ascamera2(640ร480 renders), task "Insert the peg into the hole." - Outputs: 6 absolute joint position targets at 30 Hz.
- Recommended execution: re-plan every 10 actions (
n_action_steps=10). On tight clearances (0.25โ1.5 mm) this succeeded in 81 of 100 episodes, versus 57% when executing full 50-action chunks.
Simulation-only: trained on rendered images and never tested on a real robot.
- Downloads last month
- 22
Model tree for davidj24/smolvla-peg-insertion
Base model
HuggingFaceTB/SmolLM2-360M Quantized
HuggingFaceTB/SmolLM2-360M-Instruct Quantized
HuggingFaceTB/SmolVLM-500M-Instruct Finetuned
lerobot/smolvla_base