genrl  by SforAiDl

PyTorch RL library for reproducible algorithm implementations

Created 5 years ago
413 stars

Top 70.8% on SourcePulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

GenRL is a PyTorch-based reinforcement learning library designed for researchers and practitioners seeking reproducible and generalizable algorithm implementations. It aims to accelerate RL research by simplifying the reproduction of state-of-the-art algorithms and facilitating benchmarking.

How It Works

GenRL employs a PyTorch-first, modular architecture, enabling extensibility and idiomatic Python usage. It provides ready-made implementations of popular RL algorithms, a unified trainer and logging class for code reusability, and tools for faster benchmarking, including automated hyperparameter tuning and environment implementations. The library is structured to support new algorithm implementations in under 100 lines of code.

Quick Start & Requirements

  • Install: pip install genrl
  • Prerequisites: Python 3.6+, PyTorch, OpenAI Gym.
  • Upgrade: pip install -U genrl
  • From Source: git clone https://github.com/SforAiDl/genrl.git && cd genrl && python setup.py install
  • Documentation: https://genrl.readthedocs.io/en/latest/

Highlighted Details

  • Offers 20+ tutorials covering basic to state-of-the-art Deep RL algorithms.
  • Implements a wide range of algorithms including DQN variants, PPO, SAC, TD3, and classical methods like Q-Learning and SARSA.
  • Supports various Bandit RL algorithms, including contextual bandits and deep contextual bandits.
  • Includes features for parameter noise sampling and Bayesian regression for posterior inference.

Maintenance & Community

Licensing & Compatibility

  • License: MIT License.
  • Compatibility: Permissive license suitable for commercial use and integration with closed-source projects.

Limitations & Caveats

The library is at version v0.0.2, and the README explicitly states to "Expect breaking changes." While extensive, the breadth of algorithms may mean some implementations are less mature or optimized than dedicated libraries.

Health Check
Last Commit

2 years ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
1 stars in the last 30 days

Explore Similar Projects

Starred by Evan Hubinger Evan Hubinger(Head of Alignment Stress-Testing at Anthropic), Jiayi Pan Jiayi Pan(Author of SWE-Gym; MTS at xAI), and
1 more.

rl by pytorch

0.4%
3k
PyTorch library for reinforcement learning research
Created 3 years ago
Updated 2 days ago
Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Pawel Garbacki Pawel Garbacki(Cofounder of Fireworks AI), and
6 more.

tianshou by thu-ml

0.2%
9k
PyTorch RL library for algorithm development and application
Created 7 years ago
Updated 1 week ago
Feedback? Help us improve.