Skip to main content

RLForge Logo

RLForge

docs PyPI - License PyPI - Version PyPI - Python Version PyPI Downloads

RLForge is an open-source reinforcement learning library that makes it easy to experiment with RL algorithms, environments, and training workflows. It is designed to be lightweight, educational, and fully compatible with the Gymnasium ecosystem (formerly OpenAI Gym).

Lunar Lander DQN

Features

  • Educational algorithms: from simple multi-armed bandits and tabular methods (SARSA, Q-learning, Expected SARSA) to function approximation with linear models and MLPs.

  • Advanced deep RL agents: including DQN, REINFORCE, Actor-Critic, DDPG, TD3, SAC, and PPO (both discrete and continuous).

  • Custom environments — bandits, short corridor, maze variations, robotics-inspired tasks like Mecanum Car, and classic control problems such as Pendulum.

  • Gymnasium compatibility: seamlessly integrate RLForge agents with hundreds of standardized benchmark environments.

  • Visualization tools: built-in experiment runner and plotting utilities for learning curves, episode statistics, and trajectory tracking.

  • PyTorch integration: optional install enables neural-network-based agents:

    • DQNTorchAgent
    • DDPGAgent
    • TD3Agent
    • SACAgent
    • PPODiscrete
    • PPOContinuous

    These PyTorch agents also support vectorized environments, allowing parallel training across multiple instances for faster and more stable learning.

Installation

If you already have Python installed, you can install RLForge with:

pip install rlforge

This will download and install the latest stable release of rlforge available in the Python Package Index.

RLForge works with Python 3.10 or later. Installing with pip will automatically download all required dependencies if they are not already present.

Optional PyTorch Support

To enable PyTorch-based agents, install RLForge with the torch extra:

pip install rlforge[torch]

Or install all optional dependencies:

pip install rlforge[all]

Documentation

Full documentation, including tutorials and examples, is available on Read the Docs.

Explore the examples section to see RLForge in action, from simple bandit problems to advanced continuous control tasks.

Metadata

Release files for rlforge 1.1.0

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

Source distribution (sdist)

Source distribution for rlforge 1.1.0
File Size Uploaded
rlforge-1.1.0.tar.gz 74.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rlforge 1.1.0
File Interpreter ABI Platform
rlforge-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 173.5 kB

Release files / rlforge-1.1.0.tar.gz

Download URL rlforge-1.1.0.tar.gz
Size 74.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a7f1825f934d9c91f72b163b7a22578cbcca3f64a9a0867bc782ec957c4a66f1
BLAKE2b-256 checksum
How to use checksums
5d6d3805943c5a9b77c8bc7d2315fb20d3ffc556f0f466ab30ef6f6f9d54f65f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / rlforge-1.1.0-py3-none-any.whl

Download URL rlforge-1.1.0-py3-none-any.whl
Size 98.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dcf9c2080282cd90fa01f6528037e68eb352f8afb2ab7c523fb5c1b816e3e6a3
BLAKE2b-256 checksum
How to use checksums
2f47739834f5e4a1bd6e284377934f9c7cae7ce937e39d3d9e9857f81dbf9d7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.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