How to use from the
Use from the
LeRobot library
# 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=makepluscode/ch09-02-train-eval-smolvla-20000-step \
--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=makepluscode/ch09-02-train-eval-smolvla-20000-step

smolvla-20000-step

VLA λ‘œλ³΄ν‹±μŠ€ μž…λ¬Έμ„œ 예제용 SmolVLA νŒŒμΈνŠœλ‹ μ²΄ν¬ν¬μΈνŠΈμž…λ‹ˆλ‹€.

경둜 (GitHub code/ 와 λŒ€μ‘)

ν•­λͺ© κ°’
논리 경둜 vla-robotics/ch09/02-train-eval/smolvla-20000-step
GitHub vla-robotics-examples
예제 폴더 code/ch09/02-train-eval/
Hub λͺ¨λΈ ID makepluscode/ch09-02-train-eval-smolvla-20000-step
ν•™μŠ΅ step 20000
데이터셋 local/so_arm101_block_picking_aug200
베이슀 lerobot/smolvla_base

λ‘œλ“œ

from lerobot.policies.smolvla.modeling_smolvla import SmolVLAPolicy

policy = SmolVLAPolicy.from_pretrained("makepluscode/ch09-02-train-eval-smolvla-20000-step")

μ „Β·ν›„μ²˜λ¦¬λŠ” 동일 ν΄λ”μ˜ policy_preprocessor.json / policy_postprocessor.json 을 from_pretrained 둜 ν•¨κ»˜ λ‘œλ“œν•©λ‹ˆλ‹€.

Downloads last month
6
Safetensors
Model size
0.5B params
Tensor type
F32
Β·
BF16
Β·
Video Preview
loading