Discover and explore top open-source AI tools and projects—updated daily.
PyTorch library for reinforcement learning research
Top 15.8% on SourcePulse
TorchRL is a modular, Python-first library for PyTorch designed to simplify and accelerate Reinforcement Learning research and applications. It offers a flexible, extensible architecture with minimal dependencies, targeting researchers and engineers who need a robust and efficient RL framework.
How It Works
TorchRL is built around the TensorDict
data structure, which streamlines RL codebases by providing a unified way to handle observations, actions, rewards, and other metadata. This primitive-first approach allows for easy swapping and customization of components like environments, collectors, replay buffers, and loss functions, promoting code reusability across diverse RL settings (online/offline, state/pixel-based).
Quick Start & Requirements
pip3 install torchrl
pip install "torchrl[atari,dm_control,gym_continuous,rendering,tests,utils,marl,open_spiel,checkpointing]"
.Highlighted Details
functorch
and torch.compile
.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
pip install -e .
is not currently supported.2 days ago
1 day