Reinforcement Learning
stable-baselines3
LunarLander-v2
deep-reinforcement-learning
Eval Results (legacy)
Instructions to use ch-bz/ppo-LunarLander-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- stable-baselines3
How to use ch-bz/ppo-LunarLander-v2 with stable-baselines3:
from huggingface_sb3 import load_from_hub checkpoint = load_from_hub( repo_id="ch-bz/ppo-LunarLander-v2", filename="{MODEL FILENAME}.zip", ) - Notebooks
- Google Colab
- Kaggle
PPO Agent playing LunarLander-v2
This is a trained model of a PPO agent playing LunarLander-v2
using the stable-baselines3 library.
Created during the 'Deep RL Course'(https://huggingface.co/learn/deep-rl-course/unit0/introduction). Trained with 2000000 timesteps.
Usage (with Stable-baselines3)
import gymnasium as gym
from stable_baselines3 import PPO
from stable_baselines3.common.env_util import make_vec_env
from huggingface_sb3 import load_from_hub
# Load the model
model_name = "LunarLander-v2"
model_path = load_from_hub(repo_id="ch-bz/ppo-" + model_name, filename=model_name + ".zip")
model = PPO.load(model_path)
# Demonstrate the model with 4 parallel instances
vec_env = make_vec_env(model_name, n_envs=4)
obs = vec_env.reset()
while True:
action, _states = model.predict(obs)
obs, rewards, dones, info = vec_env.step(action)
vec_env.render("human")
- Downloads last month
- -
Evaluation results
- mean_reward on LunarLander-v2self-reported265.37 +/- 25.58