Close Menu
techwavedispatch.com

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Millisecond Latency using Hugging Face Infinity and modern CPUs

    November 15, 2026

    Jensen Huang might be plotting a return and more of the latest Nvidia drama

    November 15, 2026

    How To Find Your IP Address

    November 15, 2026
    Facebook X (Twitter) Instagram
    Trending
    • Millisecond Latency using Hugging Face Infinity and modern CPUs
    • Jensen Huang might be plotting a return and more of the latest Nvidia drama
    • How To Find Your IP Address
    • Welcome Stable-baselines3 to the Hugging Face Hub ๐Ÿค—
    • Amazon Is Reportedly Working On A Database For ‘Virtually Every Item For Sale On Earth’
    • SNL gathers all the tech tycoons for a lesson in dating and spycraft
    • Supercharged Searching on the ๐Ÿค— Hub
    • What’s The Meaning Of The “A” On Your USB-A Ports?
    Facebook X (Twitter) Instagram
    techwavedispatch.com
    Subscribe
    Sunday, November 15
    • Home
    • AI Tools & Software
    • Machine Learning
    • Generative AI
    • Robotics & Automation
    • Future Tech & Hardware
    • AI in Business
    • Ethics & Regulations
    • More
      • Gadgets & Smart Devices
      • Cybersecurity & AI
      • Tech Breakthroughs
    techwavedispatch.com
    Home»AI Tools & Software»Welcome Stable-baselines3 to the Hugging Face Hub ๐Ÿค—
    AI Tools & Software

    Welcome Stable-baselines3 to the Hugging Face Hub ๐Ÿค—

    adminBy adminNovember 15, 2026No Comments3 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Welcome Stable-baselines3 to the Hugging Face Hub ๐Ÿค—
    Share
    Facebook Twitter LinkedIn Pinterest Email

    At Hugging Face, we are contributing to the ecosystem for Deep Reinforcement Learning researchers and enthusiasts. Thatโ€™s why weโ€™re happy to announce that we integrated Stable-Baselines3 to the Hugging Face Hub.

    Stable-Baselines3 is one of the most popular PyTorch Deep Reinforcement Learning library that makes it easy to train and test your agents in a variety of environments (Gym, Atari, MuJoco, Procgen…).
    With this integration, you can now host your saved models ๐Ÿ’พ and load powerful models from the community.

    In this article, weโ€™re going to show how you can do it.



    Installation

    To use stable-baselines3 with Hugging Face Hub, you just need to install these 2 libraries:

    pip install huggingface_hub
    pip install huggingface_sb3
    



    Finding Models

    Weโ€™re currently uploading saved models of agents playing Space Invaders, Breakout, LunarLander and more. On top of this, you can find all stable-baselines-3 models from the community here

    When you found the model you need, you just have to copy the repository id:

    Image showing how to copy a repository id



    Download a model from the Hub

    The coolest feature of this integration is that you can now very easily load a saved model from Hub to Stable-baselines3.

    In order to do that you just need to copy the repo-id that contains your saved model and the name of the saved model zip file in the repo.

    For instancesb3/demo-hf-CartPole-v1:

    import gym
    
    from huggingface_sb3 import load_from_hub
    from stable_baselines3 import PPO
    from stable_baselines3.common.evaluation import evaluate_policy
    
    
    
    
    checkpoint = load_from_hub(
        repo_id="sb3/demo-hf-CartPole-v1",
        filename="ppo-CartPole-v1.zip",
    )
    model = PPO.load(checkpoint)
    
    
    eval_env = gym.make("CartPole-v1")
    mean_reward, std_reward = evaluate_policy(
        model, eval_env, render=True, n_eval_episodes=5, deterministic=True, warn=False
    )
    print(f"mean_reward={mean_reward:.2f} +/- {std_reward}")
    



    Sharing a model to the Hub

    In just a minute, you can get your saved model in the Hub.

    First, you need to be logged in to Hugging Face to upload a model:

    • If you’re using Colab/Jupyter Notebooks:
    from huggingface_hub import notebook_login
    notebook_login()
    
    huggingface-cli login
    

    Then, in this example, we train a PPO agent to play CartPole-v1 and push it to a new repo ThomasSimonini/demo-hf-CartPole-v1
    `

    from huggingface_sb3 import push_to_hub
    from stable_baselines3 import PPO
    
    
    model = PPO("MlpPolicy", "CartPole-v1", verbose=1)
    
    
    model.learn(total_timesteps=10_000)
    
    
    model.save("ppo-CartPole-v1")
    
    
    
    
    
    push_to_hub(
        repo_id="ThomasSimonini/demo-hf-CartPole-v1",
        filename="ppo-CartPole-v1.zip",
        commit_message="Added Cartpole-v1 model trained with PPO",
    )
    

    Try it out and share your models with the community!



    What’s next?

    In the coming weeks and months, we will be extending the ecosystem by:

    • Integrating RL-baselines3-zoo
    • Uploading RL-trained-agents models into the Hub: a big collection of pre-trained Reinforcement Learning agents using stable-baselines3
    • Integrating other Deep Reinforcement Learning libraries
    • Implementing Decision Transformers ๐Ÿ”ฅ
    • And more to come ๐Ÿฅณ

    The best way to keep in touch is to join our discord server to exchange with us and with the community.

    And if you want to dive deeper, we wrote a tutorial where youโ€™ll learn:

    • How to train a Deep Reinforcement Learning lander agent to land correctly on the Moon ๐ŸŒ•
    • How to upload it to the Hub ๐Ÿš€

    gif

    • How to download and use a saved model from the Hub that plays Space Invaders ๐Ÿ‘พ.

    gif

    ๐Ÿ‘‰ The tutorial



    Conclusion

    We’re excited to see what you’re working on with Stable-baselines3 and try your models in the Hub ๐Ÿ˜.

    And we would love to hear your feedback ๐Ÿ’–. ๐Ÿ“ง Feel free to reach us.

    Finally, we would like to thank the SB3 team and in particular Antonin Raffin for their precious help for the integration of the library ๐Ÿค—.



    Would you like to integrate your library to the Hub?

    This integration is possible thanks to the huggingface_hub library which has all our widgets and the API for all our supported libraries. If you would like to integrate your library to the Hub, we have a guide for you!

    Face Hub Hugging Stablebaselines3
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    admin
    • Website

    Related Posts

    Millisecond Latency using Hugging Face Infinity and modern CPUs

    November 15, 2026

    Supercharged Searching on the ๐Ÿค— Hub

    November 15, 2026

    Making automatic speech recognition work on large files with Wav2Vec2 in ๐Ÿค— Transformers

    November 15, 2026
    Leave A Reply Cancel Reply

    Top Posts

    NVIDIA Is Investigating Reports That CEO Jensen Huang Was The Target Of Chinese Spy Efforts

    November 8, 202619 Views

    ADIndex: Layer-Adaptive Sparse Attention Indexing via Group-Level Distillation

    November 11, 20265 Views

    Anthropic releases new Mythos and Fable models amid RSI concerns

    November 9, 20265 Views

    One Policy for 100 Household Tasks: Our Solution for the 2026 BEHAVIOR Challenge

    November 11, 20264 Views
    Don't Miss
    AI Tools & Software

    Millisecond Latency using Hugging Face Infinity and modern CPUs

    By adminNovember 15, 20260

    December 2022 Update: Infinity is no longer offered by Hugging Face as a commercial inference…

    Jensen Huang might be plotting a return and more of the latest Nvidia drama

    November 15, 2026

    How To Find Your IP Address

    November 15, 2026

    Welcome Stable-baselines3 to the Hugging Face Hub ๐Ÿค—

    November 15, 2026
    About Us

    Welcome to TechWave Dispatch

    At TechWave Dispatch, we bring you the latest news, insights, and developments from the ever-evolving world of technology. Our mission is to keep readers informed about the innovations shaping our digital future.

    From artificial intelligence and machine learning to cybersecurity, robotics, smart devices, and groundbreaking technologies, we cover the topics that matter in today's fast-moving tech landscape.

    Our Picks

    Millisecond Latency using Hugging Face Infinity and modern CPUs

    November 15, 2026

    Jensen Huang might be plotting a return and more of the latest Nvidia drama

    November 15, 2026

    How To Find Your IP Address

    November 15, 2026
    Most Popular

    After blocking Muse, Amazon now lets users text Alexa to help them shop

    November 6, 20260 Views

    A controlled world for robot learning and evaluation

    November 6, 20260 Views

    Perplexity now has its own always-on AI agent

    November 6, 20260 Views
    Facebook X (Twitter) Instagram Pinterest
    • Terms and Conditions
    • Privacy Policy
    • Contact Us
    • About Us
    ยฉ 2026 TechWave Dispatch. All Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.