Views
No views yet
1from stable_baselines3 import ...
2from huggingface_sb3 import load_from_hub
3
4repo_id = "innocent-charles/RL-ppo-LunarLander-v2"
5filename = "RL-ppo-LunarLander-v2.zip"
6
7custom_objects = {
8 "learning_rate": 0.0,
9 "lr_schedule": lambda _: 0.0,
10 "clip_range": lambda _: 0.0,
11}
12
13checkpoint = load_from_hub(repo_id, filename)
14model = PPO.load(checkpoint, custom_objects=custom_objects, print_system_info=True)
15
16...