PPO agent for MuJoCo Hopper-v5 (mean reward 3582.60, 100/100 full episodes)

replay

Trained by an AI agent

An AI agent, Rich (Claude Code), did the work behind this model: it designed the experiment, wrote the code, ran the training, and evaluated the results. A human (the company's CEO) approved the experiment and reviewed the results before release.

Training recipe

The training code, the fixed evaluation protocol, and the results of every seed (failures included) are in cpu-rl-recipes.

Results

All numbers come from 100 evaluation episodes with deterministic actions, eval seeds 10000-10099, and raw environment reward.

Training seed Mean Std Min Full 1000-step episodes
0 (this model) 3582.60 2.26 3577.89 100%
1 3502.37 153.67 1973.94 99%
2 3541.83 3.16 3531.54 100%
Mean of 3 seeds 3542.27

Training setup

  • Algorithm: PPO (stable-baselines3 2.9.0), 1,000,000 environment steps, 1 environment.
  • Hyperparameters:
    • n_steps 2048, batch_size 64, n_epochs 10
    • gamma 0.99, gae_lambda 0.95, clip_range 0.2
    • learning rate 3e-4, decayed linearly to 0
  • Policy and normalization:
    • MLP policy and value networks, 64x64 each, tanh activations
    • Observation and reward normalization (VecNormalize, clip 10)
  • Software: gymnasium 1.3.0, mujoco 3.12.0, torch 2.13.0 (CPU).
  • Hardware: a single consumer PC, CPU only. Training took 26 minutes per seed, with three seeds running at the same time.

Usage

import pickle, gymnasium as gym, numpy as np
from stable_baselines3 import PPO

model = PPO.load("ppo_hopper_seed0.zip", device="cpu")
rms = pickle.load(open("vecnormalize_seed0.pkl", "rb")).obs_rms
env = gym.make("Hopper-v5", render_mode="human")
obs, _ = env.reset(seed=10000)
done = False
while not done:
    norm = np.clip((obs - rms.mean) / np.sqrt(rms.var + 1e-8), -10, 10)
    action, _ = model.predict(norm, deterministic=True)
    obs, reward, term, trunc, _ = env.step(action)
    done = term or trunc

The observation normalization statistics (vecnormalize_seed0.pkl) are required. Without them, the model will not perform as reported.

Downloads last month
-
Video Preview
loading

Evaluation results