Instructions to use tkb77/smolvla-oekaki-goal with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LeRobot
How to use tkb77/smolvla-oekaki-goal 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=tkb77/smolvla-oekaki-goal \ --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=tkb77/smolvla-oekaki-goal - Notebooks
- Google Colab
- Kaggle
SmolVLA Oekaki G: draw a goal image with a pen
SmolVLA fine-tuned to draw on paper with a simulated SO-101 arm holding a spring-loaded pen (MuJoCo). Besides
the instruction (e.g. "draw a star"), it sees the goal image (the drawing placed on the paper) as a third
camera, and copies it.
Code, simulation and evaluation: https://github.com/tkb77/oekaki-vla
Inputs and outputs
| key | shape | content |
|---|---|---|
observation.images.top |
3×256×256 | overhead camera |
observation.images.wrist |
3×256×256 | wrist camera |
observation.images.goal |
3×256×256 | goal image (black lines on white, in paper coordinates) |
observation.state |
8 | 5 joints + gripper, pen contact (0/1), pen compression (mm) |
| task | text | instruction; 30 % of the training instructions do not name the category |
action |
50×6 | chunk of joint targets at 30 Hz |
Training
Base model: lerobot/smolvla_base.
Data: tkb77/oekaki-goal-v1, 999 expert episodes (421k frames).
15k steps, effective batch 64.
Two extensions from the code repository, stored in
oekaki_extras.json:- training-time real-time chunking;
- an elapsed-time input.
The checkpoint therefore needs the code repository (
oekaki/policy/); plain LeRobot cannot load it as is.
Results (simulation)
- Test goals: held-out Quick, Draw! drawings, 250 episodes per setting.
- Inference: σ = 0, replan every 30 steps, latency 3, real-time chunking.
| setting | this model | same recipe without the goal image |
|---|---|---|
| goal IoU, true goal | 0.51 | 0.19 |
| position error, true goal | 5.1 mm | 24.9 mm |
| goal IoU, goal imagined by the diffusion model | 0.53 | — |
Use
git clone https://github.com/tkb77/oekaki-vla oekaki-vla && cd oekaki-vla
uv venv --python 3.12 && uv sync
export MUJOCO_GL=egl
.venv/bin/python scripts/imagine_and_draw.py --prompt "draw a star" --seed 1 --out outputs/demo_star \
--policy tkb77/smolvla-oekaki-goal --generator tkb77/oekaki-sketch-diffusion
The script downloads both models, imagines a star, and lets this model draw it.
Limitations
- Simulation only, five categories (circle, square, triangle, star, smiley face), one drawing per goal image.
- Shape details such as thin star tips or smiley eyes are often broken.
License
Apache-2.0, like the base model. The training goals come from the Quick, Draw! dataset (Google Creative Lab, CC BY 4.0).
- Downloads last month
- 43
Model tree for tkb77/smolvla-oekaki-goal
Base model
HuggingFaceTB/SmolLM2-360M
