cleanrl
tianshou
cleanrl | tianshou | |
---|---|---|
41 | 8 | |
4,493 | 7,435 | |
- | 1.7% | |
6.3 | 9.5 | |
11 days ago | 2 days ago | |
Python | Python | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cleanrl
-
[P] PettingZoo 1.24.0 has been released (including Stable-Baselines3 tutorials)
PettingZoo 1.24.0 is now live! This release includes Python 3.11 support, updated Chess and Hanabi environment versions, and many bugfixes, documentation updates and testing expansions. We are also very excited to announce 3 tutorials using Stable-Baselines3, and a full training script using CleanRL with TensorBoard and WandB.
-
PPO agent for "2048": help requested
Here's where the problem starts: after implementing a custom environment that follows the typical gymnasium interface, and use a slightly adjusted PPO implementation from CleanRL, I cannot get the agent to learn anything at all, even though this specific implementation seems to work just fine on basic gymnasium examples. I am hoping the RL community here can help me with some useful pointers.
- [P] 10x faster reinforcement learning hyperparameter optimization than SOTA - now with distributed training!
-
PPO ignores high rewards in deterministic sytem
Try out a standard implementation with some standard parameters from here: https://github.com/vwxyzjn/cleanrl/tree/master/cleanrl
-
SB3 - NotImplementedError: Box([-1. -1. -8.], [1. 1. 8.], (3,), <class 'numpy.float32'>) observation space is not supported
I am trying to run cleanrl on the `Pendulum-v1` environment. I did that by going here and changing the default `env-id` to ` parser.add_argument("--env-id", type=str, default="Pendulum-v1",
- Cartpole and mountain car
-
cleanrl gym issues
git clone https://github.com/vwxyzjn/cleanrl.git && cd cleanrl poetry install
-
Why is my Soft Actor Critic Algorithm not learning?
Can someone please help me debug my implementation of SAC. Please let me know if you have any questions. I tried comparing my work with CleanRL and caught a couple of errors. However, my implementation does diverge a lot from theirs as I wanted to test my understanding.
-
Model-based hierarchical reinforcement learning
Shameless self-plug: as far as implementation is concerned, I am working on a (hopefully) easier to understand Dreamer architecture under the CleanRL library, toward also re-implementing Director, Dreamer-v3, and and JAX variant for faster training.
-
[P] Robust Policy Optimization is now in CleanRL π₯!
Happy to share that CleanRL now has a new algorithm called Robust Policy Optimization β 5 lines of code change to PPO to get better performance in 57 out of 61 continuous action envs π (e.g., dm_control)
tianshou
-
Is it better to not use the Target Update Frequency in Double DQN or depends on the application?
The tianshou implementation I found at https://github.com/thu-ml/tianshou/blob/master/tianshou/policy/modelfree/dqn.py is DQN by default.
- δ»εθ½εδΎε
-
Multi-Agent Stable Baselines
https://github.com/thu-ml/tianshou Imho there isn't a library that has it all, RLlib is quite good too, but I think that Tianshou is more similar to Pytorch and that helps to change the internals more intuitively and know what you are doing.
-
Question about the old policy and new policy in TRPO code
Good point...I'll check in more detail when I get a chance later today! I would suggest looking at a more recent implementation like https://github.com/DLR-RM/stable-baselines3 or https://github.com/thu-ml/tianshou if you're trying to build. https://spinningup.openai.com/en/latest/algorithms/trpo.html is particularly good for understanding
-
Tensorflow vs PyTorch for A3C
Do you absolutely need A3C? A2C has become more widely used (see, e.g., the comment in https://github.com/ikostrikov/pytorch-a3c, and the fact that both https://github.com/thu-ml/tianshou and https://github.com/facebookresearch/salina have A2C implementations, but no A3C at first glance).
-
"Tianshou: a Highly Modularized Deep Reinforcement Learning Library", Weng et al 2021 (Python PyTorch MuJuCo; PPO, DQN, A2C, DDPG, SAC, TD3, REINFORCE, NPG, TRPO, ACKTR)
Code for https://arxiv.org/abs/2107.14171 found: https://github.com/thu-ml/tianshou/
Get the code for Tianshou here (GitHub).
-
Best PyTorch RL library for doing research
I tried tianshou and thought it was well-designed for modularity, but it was early in development when I tried and missing some basic features
What are some alternatives?
stable-baselines3 - PyTorch version of Stable Baselines, reliable implementations of reinforcement learning algorithms.
d3rlpy - An offline deep reinforcement learning library
ElegantRL - Massively Parallel Deep Reinforcement Learning. π₯
reinforcement-learning-discord-wiki - The RL discord wiki
pytorch-learn-reinforcement-learning - A collection of various RL algorithms like policy gradients, DQN and PPO. The goal of this repo will be to make it a go-to resource for learning about RL. How to visualize, debug and solve RL problems. I've additionally included playground.py for learning more about OpenAI gym, etc.
mbrl-lib - Library for Model Based RL
seed_rl - SEED RL: Scalable and Efficient Deep-RL with Accelerated Central Inference. Implements IMPALA and R2D2 algorithms in TF2 with SEED's architecture.
machin - Reinforcement learning library(framework) designed for PyTorch, implements DQN, DDPG, A2C, PPO, SAC, MADDPG, A3C, APEX, IMPALA ...
pytorch-a3c - PyTorch implementation of Asynchronous Advantage Actor Critic (A3C) from "Asynchronous Methods for Deep Reinforcement Learning".
sample-factory - High throughput synchronous and asynchronous reinforcement learning
Deep-Reinforcement-Learning-Algorithms-with-PyTorch - PyTorch implementations of deep reinforcement learning algorithms and environments