🧪 New tutorials are being published — build from robot arms to sensors step by step
Skip to content

Upload the Model to HuggingFace (Optional) ​

Create a model Repo ​

imagepng

imagepng

View the model Repo ​

https://huggingface.co/TommyZihao/lerobot_zihao_model_a

It is empty for now

imagepng

imagepng

Upload the model ​

Create an upload_model.py file with the following content

Python
from huggingface_hub import HfApi

api = HfApi()

repo_id = "TommyZihao/lerobot_zihao_model_shake_hands"

api.upload_folder(
    folder_path="~/output_lerobot_train/b/checkpoints/last/pretrained_model",
    repo_id=repo_id,
    repo_type="model"
)

api.create_tag(repo_id, tag="v0.1.0", repo_type="model")

Run

Shell
python upload_model.py

be7686a3cbc9caffe00ffcba6b82b2e7png

View the model Repo ​

https://huggingface.co/TommyZihao/lerobot_zihao_model_a

imagepng

Now it has the model files