C++ engine for high-performance, parallel RL environment execution
Top 33.8% on sourcepulse
EnvPool is a C++-based parallel execution engine designed to significantly accelerate Reinforcement Learning (RL) environment interactions. It targets RL researchers and practitioners seeking to boost simulation throughput beyond standard Python-based vectorization, offering substantial speedups for a wide range of RL environments.
How It Works
EnvPool leverages C++ for core environment execution and pybind11 for Python integration, utilizing a thread pool for parallel processing. This architecture allows for batched interactions with multiple environment instances, supporting both synchronous and asynchronous execution models. The C++ backend minimizes Python overhead, enabling high-performance simulation, with a notable advantage in CPU-bound environments where Python's GIL can be a bottleneck.
Quick Start & Requirements
pip install envpool
Highlighted Details
gym.vector_env
on high-end setups and ~3x on typical PCs (12 CPU cores).Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
11 months ago
Inactive