Views
No views yet
seals suite).1from huggingface_sb3 import load_from_hub
2from stable_baselines3 import PPO
3
4# Download the model from the Hub
5checkpoint = load_from_hub(
6 repo_id="CptAdolito69/ppo-seals-Hopper-v1",
7 filename="ppo-seals-Hopper-v1.zip",
8)
9model = PPO.load(checkpoint)
10
11# Run it (requires `seals` + a MuJoCo backend installed)
12import gymnasium as gym
13import seals # noqa: F401 registers the seals/* environments
14
15env = gym.make("seals/Hopper-v1")
16obs, _ = env.reset(seed=42)
17done = False
18while not done:
19 action, _ = model.predict(obs, deterministic=True)
20 obs, reward, terminated, truncated, _ = env.step(action)
21 done = terminated or truncated| Hyperparameter | Value |
|---|---|
| Algorithm | PPO |
| Policy | MlpPolicy |
| Environment | seals/Hopper-v1 |
| Timesteps | 17,989,632 |
| Learning rate | 3e-4 |
| Seed | 42 |
| Observation space | Box(12,) |
| Action space | Box(3,) |
| SB3 version | 2.6.0 |
| PyTorch version | 2.7.1 |
| Gymnasium version | 1.1.1 |
ppo-seals-Hopper-v1.zip — the loadable SB3 model (PPO.load(...))policy.pth, policy.optimizer.pth, pytorch_variables.pth, data — extracted model contentsconfig.json — training configuration summaryreplay.mp4 — demo rollout of the trained agentsystem_info.txt — environment used for training