A PyTorch reinforcement learning framework with modular agents, networks, and training loops, plus cloud-style worker and learner roles.
Overview
ElegantRL is a reinforcement learning framework focused on clear, minimal implementations of core algorithms. It keeps dependencies small while separating agents, neural networks, environments, replay buffers, workers, learners, and evaluators into readable modules.
Algorithms such as DQN, DDPG, PPO, SAC, TD3, and A2C ship with shared training loops and configuration files. A hello-world tutorial repository walks beginners through DQN, DDPG, and PPO in order. The design supports massively parallel simulation, including Isaac Gym style many-subenvironment runs on one GPU.
The project describes a cloud-native style with micro-service oriented layout and mentions ElegantRL-Podracer and FinRL-Podracer for elastic resource use. Experimental notes compare throughput and stability against Ray RLlib and Stable-Baselines3 on documented control tasks.
Python 3.6+ and PyTorch 1.6+ are required; gym, pybullet, and optional StarCraft II packages extend environments. Unittest-based tests cover agent training smoke paths, with Isaac Gym-dependent cases skipped when that stack is absent.
Key features
- Modular agents, nets, and replay buffers
- Worker, learner, and evaluator training roles
- DQN, PPO, SAC, TD3, and DDPG families
- Isaac Gym parallel environment support
- ElegantRL-Helloworld tutorial track
- Google Colab example notebooks
- Configurable hyperparameters per task
- Podracer cloud training integrations
Use cases
- Train continuous-control gym environments
- Scale RL with many parallel sim instances
- Prototype model-free policies in PyTorch
- Compare PPO stability across libraries
- Learn RL via incremental hello-world labs