PyTorch library for sequential learning agents, including reinforcement learning
Top 70.1% on sourcepulse
SaLinA is a lightweight PyTorch extension for developing sequential decision models, targeting researchers and engineers working with reinforcement learning (RL), imitation learning, and other sequential learning tasks. It simplifies the creation of complex sequential agents and offers efficient multi-CPU/GPU utilization.
How It Works
SaLinA extends PyTorch's nn.Module
to an Agent
concept, enabling seamless integration of temporal dynamics into standard neural network architectures. This approach allows for the composition of agents like PyTorch modules, facilitating the development of intricate sequential models with minimal code. It supports various sequential decision-making paradigms beyond RL, including supervised and unsupervised learning in NLP and computer vision.
Quick Start & Requirements
pip install -e .
Highlighted Details
xformers
-based transformer implementations, with xformers
showing significant speed and memory improvements for attention mechanisms.salina.agents
) and numerous examples across different domains.Maintenance & Community
salina_cl
for continual learning and improved transformer-based agents.Licensing & Compatibility
Limitations & Caveats
The library is primarily focused on sequential decision-making and while it supports RL, it is not solely an RL framework. The README mentions a renaming of salina/agents/gym.py
to salina/agents/gyma.py
to avoid compatibility issues with OpenAI Gym, indicating potential for dependency-related maintenance.
2 years ago
1 week