Instructions to use StrongRoboticsLab/pi05-so100-diverse with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LeRobot
How to use StrongRoboticsLab/pi05-so100-diverse with LeRobot:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
bot commited on
Commit ·
8287ef9
1
Parent(s): 599e2f2
Async checkpoint upload to avoid blocking training
Browse files471 unmodified lines472473474475476477478479480481482483484485486487488489490491492493494495496471 unmodified linespostprocessor=postprocessor,)update_last_checkpoint(checkpoint_dir)# Upload checkpoint to HF then delete previous local copyuploaded = Falseif cfg.policy.push_to_hub:try:from huggingface_hub import HfApiapi = HfApi()checkpoint_repo = cfg.policy.repo_id + "-checkpoints"api.create_repo(checkpoint_repo, exist_ok=True)api.upload_folder(folder_path=checkpoint_dir,repo_id=checkpoint_repo,path_in_repo=f"step_{step:06d}",)logging.info(f"Uploaded checkpoint step {step} to {checkpoint_repo}")uploaded = Trueexcept Exception as e:logging.warning(f"Failed to upload checkpoint step {step}: {e}")if uploaded and prev_checkpoint_dir is not None and Path(prev_checkpoint_dir).exists():shutil.rmtree(prev_checkpoint_dir)prev_checkpoint_dir = checkpoint_dirif wandb_logger:wandb_logger.log_policy(checkpoint_dir)471 unmodified lines472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502471 unmodified linespostprocessor=postprocessor,)update_last_checkpoint(checkpoint_dir)# Upload checkpoint to HF async, delete previous after uploadif cfg.policy.push_to_hub:import threadingdef _upload_and_cleanup(ckpt_dir, prev_dir, step_num):try:from huggingface_hub import HfApiapi = HfApi()checkpoint_repo = cfg.policy.repo_id + "-checkpoints"api.create_repo(checkpoint_repo, exist_ok=True)api.upload_folder(folder_path=ckpt_dir,repo_id=checkpoint_repo,path_in_repo=f"step_{step_num:06d}",)logging.info(f"Uploaded checkpoint step {step_num} to {checkpoint_repo}")if prev_dir is not None and Path(prev_dir).exists():shutil.rmtree(prev_dir)except Exception as e:logging.warning(f"Failed to upload checkpoint step {step_num}: {e}")upload_thread = threading.Thread(target=_upload_and_cleanup,args=(checkpoint_dir, prev_checkpoint_dir, step),daemon=True,)upload_thread.start()prev_checkpoint_dir = checkpoint_dirif wandb_logger:wandb_logger.log_policy(checkpoint_dir)
lerobot/src/lerobot/scripts/lerobot_train.py+24-18