genrl  by SforAiDl

PyTorch RL library for reproducible algorithm implementations

created 5 years ago
411 stars

Top 72.2% on sourcepulse

GitHubView on GitHub
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

1 week

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

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Nathan Lambert Nathan Lambert(AI Researcher at AI2), and
1 more.

tianshou by thu-ml

0.1%
9k
PyTorch RL library for algorithm development and application
created 7 years ago
updated 1 day ago
Starred by Jiayi Pan Jiayi Pan(Author of SWE-Gym; AI Researcher at UC Berkeley), Tom Brown Tom Brown(Cofounder of Anthropic), and
1 more.

spinningup by openai

0.2%
11k
Educational resource for learning deep reinforcement learning
created 6 years ago
updated 1 year ago
Feedback? Help us improve.