Hugging FaceThomas SimoniniAnnouncement
Welcome Stable-baselines3 to the Hugging Face Hub 🤗
Summary
Hugging Face announced an official integration with Stable-Baselines3, a popular PyTorch library for training and testing Deep Reinforcement Learning agents across diverse environments like Gym, Atari, MuJoco, and Procgen. The integration enables researchers and developers to host their saved reinforcement learning checkpoints on the Hugging Face Hub and download pre-trained community models. Interacting with the Hub requires installing the huggingface_hub and huggingface_sb3 packages, which supply helper methods for authentication, downloading, and uploading. Practitioners can retrieve checkpoint zip files using the load_from_hub function by providing the target repository identifier and filename before loading them into Stable-Baselines3 algorithms. Furthermore, users authenticated via CLI or notebook login can train policies such as PPO and publish their saved zip files to the Hub using push_to_hub.
Context
Hugging Face aimed to contribute to the Deep Reinforcement Learning ecosystem by enabling researchers and enthusiasts to host and share models trained with Stable-Baselines3.
Approach / What changed
Hugging Face created the huggingface_sb3 library alongside huggingface_hub to provide load_from_hub and push_to_hub functions, allowing users to pull saved checkpoint zip files directly into Stable-Baselines3 algorithms and push trained model files to Hub repositories.
Takeaways
The huggingface_sb3 library provides load_from_hub to fetch model zip files from the Hugging Face Hub using a repository ID and filename.
Users must authenticate via notebook_login or huggingface-cli before pushing saved reinforcement learning models to the Hub with push_to_hub.
Hugging Face plans future integrations including RL-baselines3-zoo, pre-trained RL-trained-agents collections, and Decision Transformers.
Source and freshness
- Source
- huggingface.co
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.