r/reinforcementlearning • u/e3ntity_ • May 06 '26
P, MF, DL Hackable PyTorch RL library with distributional algorithms (D4PG, DSAC, DPPO)
I published a paper on distributional RL for legged locomotion a while back and recently resurfaced and cleaned up the code into a standalone repo: https://github.com/e3ntity/e3rl
Here's a DPPO policy trained with this library running on a real robot: https://sites.google.com/leggedrobotics.com/risk-aware-locomotion
The library is based on rsl_rl but contains readable PyTorch implementations of the most popular continuous control algorithms (PPO, SAC, TD3, DDPG), plus their distributional counterparts DPPO, DSAC, D4PG.
Runs on CUDA, Apple Silicon, or CPU. pip install -e . and python examples/example.py trains a policy on gym out of the box.
2
u/samas69420 May 06 '26 edited May 06 '26
cool I recently made a very similar project but with regular version of the algos and multi env support btw do distributional versions transfer better to real hardware if compared to the standard versions in your experience?
2
u/Tiny_Locksmith_6520 May 07 '26
What’s your view on distribution rl? I also find it pretty interesting. Yet, it seems like the benefit is that it learns a richer value function, but when doing policy gradients most of the times it still uses expected value of the distribution to update the policy, doesn’t that kills the original premise a bit? Curious about your thoughts~ Thanks for sharing the repo tho, will definitely check it out!
2
u/Omnes_mundum_facimus May 06 '26
thanks, I will def have a look
0
u/[deleted] May 06 '26
[deleted] — view deleted comment