Downloads · 30 days
0
skrl/IsaacGymEnvs-Humanoid-PPO
IsaacGymEnvs-Humanoid-PPO is a reinforcement learning model from skrl. Use it for the reinforcement learning task on the model card, and read the license before you ship it in a product. It is set up for skrl.
torch: 6524.74 +/- 570.54 jax: 6265.95 +/- 280.11 numpy: 5727.54 +/- 406.96 --- --
Downloads · 30 days
0
Access
Public
Updated Jul 8, 2023
Repo size
10.9 MB
Likes
0
Public
Click a slice to open those files.
.mp45.7 MB · 52%
From the Hugging Face model README
Trained agent for NVIDIA Isaac Gym Preview environments.
Note: Visit the skrl Examples section to access the scripts.
PyTorch
from skrl.utils.huggingface import download_model_from_huggingface
# assuming that there is an agent named `agent`
path = download_model_from_huggingface("skrl/IsaacGymEnvs-Humanoid-PPO", filename="agent.pt")
agent.load(path)
JAX
from skrl.utils.huggingface import download_model_from_huggingface
# assuming that there is an agent named `agent`
path = download_model_from_huggingface("skrl/IsaacGymEnvs-Humanoid-PPO", filename="agent.pickle")
agent.load(path)
Note: Undefined parameters keep their values by default.
# https://skrl.readthedocs.io/en/latest/api/agents/ppo.html#configuration-and-hyperparameters
cfg = PPO_DEFAULT_CONFIG.copy()
cfg["rollouts"] = 32 # memory_size
cfg["learning_epochs"] = 5
cfg["mini_batches"] = 4 # 32 * 4096 / 32768
cfg["discount_factor"] = 0.99
cfg["lambda"] = 0.95
cfg["learning_rate"] = 5e-4
cfg["learning_rate_scheduler"] = KLAdaptiveRL
cfg["learning_rate_scheduler_kwargs"] = {"kl_threshold": 0.008}
cfg["random_timesteps"] = 0
cfg["learning_starts"] = 0
cfg["grad_norm_clip"] = 1.0
cfg["ratio_clip"] = 0.2
cfg["value_clip"] = 0.2
cfg["clip_predicted_values"] = True
cfg["entropy_loss_scale"] = 0.0
cfg["value_loss_scale"] = 2.0
cfg["kl_threshold"] = 0
cfg["rewards_shaper"] = lambda rewards, timestep, timesteps: rewards * 0.01
cfg["state_preprocessor"] = RunningStandardScaler
cfg["state_preprocessor_kwargs"] = {"size": env.observation_space, "device": device}
cfg["value_preprocessor"] = RunningStandardScaler
cfg["value_preprocessor_kwargs"] = {"size": 1, "device": device}