Skip to main content

RL Games: High performance RL library

Some results on interesting environments

Ant_running Humanoid_running

Allegro_Hand_400 Shadow_Hand_OpenAI

Config file

Implemented in Pytorch:

  • PPO with the support of asymmetric actor-critic variant
  • Support of end-to-end GPU accelerated training pipeline with Isaac Gym and Brax
  • Masked actions support
  • Multi-agent training, decentralized and centralized critic variants
  • Self-play

Implemented in Tensorflow 1.x (not updates now):

  • Rainbow DQN
  • A2C
  • PPO

Installation

Clone repo and run: pip install -e .

Or: pip install git+https://github.com/Denys88/rl_games.git

Training

NVIDIA Isaac Gym

Download and follow the installation instructions from https://developer.nvidia.com/isaac-gym
Run from python/rlgpu directory:

Ant
python rlg_train.py --task Ant --headless
python rlg_train.py --task Ant --play --checkpoint nn/Ant.pth --num_envs 100

Humanoid
python rlg_train.py --task Humanoid --headless
python rlg_train.py --task Humanoid --play --checkpoint nn/Humanoid.pth --num_envs 100

Shadow Hand block orientation task
python rlg_train.py --task ShadowHand --headless
python rlg_train.py --task ShadowHand --play --checkpoint nn/ShadowHand.pth --num_envs 100

Atari Pong
python runner.py --train --file rl_games/configs/atari/ppo_pong.yaml
python runner.py --play --file rl_games/configs/atari/ppo_pong.yaml --checkpoint nn/PongNoFrameskip.pth

Brax Ant
python runner.py --train --file rl_games/configs/brax/ppo_ant.yaml
python runner.py --play --file rl_games/configs/atari/ppo_ant.yaml --checkpoint nn/Ant_brax.pth

Troubleshouting

  • Some of the supported envs are not installed with setup.py, you need to manually install them

Metadata

Release files for rl-games 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rl-games 1.0.2
File Size Uploaded
rl-games-1.0.2.tar.gz 89.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rl-games 1.0.2
File Interpreter ABI Platform
rl_games-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 211.5 kB

Release files / rl-games-1.0.2.tar.gz

Download URL rl-games-1.0.2.tar.gz
Size 89.0 kB
Tags Source
SHA-256 checksum
How to use checksums
07210600c222304838ec05a9a430ae924adeed73d41662d7afb291195e407212
BLAKE2b-256 checksum
How to use checksums
096e73c2edd384f8f7c14c54facdfe6e81be55761f2d845ec20106a0c449b08f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

Release files / rl_games-1.0.2-py3-none-any.whl

Download URL rl_games-1.0.2-py3-none-any.whl
Size 122.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80e41608f830eb7b69f9f8b7c485aefaf778005e6d83684544dda11f62839036
BLAKE2b-256 checksum
How to use checksums
e328b0954a74d948d897307349167039b22cd1572a896fe48afd0145cc6f850c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

Release history Release notifications | RSS feed

1.6.5

2 release files

1.6.1

1 release file

1.6.0

1 release file

1.5.2

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

This release

1.0.2 This release

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page