Skip to content

Experimenting with integrating PyTorch Lightning + TorchRL for differentiable environments running on multiple GPUs

Notifications You must be signed in to change notification settings

fedebotu/lightning-torchrl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Lightning-TorchRL

Experimenting with integrating PyTorch Lightning + TorchRL for differentiable environments running on multiple GPUs!

Requirements

Since I was most interested in custom environments (this guide) given that we can batch and what not, I thought it would be great to try that notebook.

Installing the torchrl nightly version

But… It looks like with the “stable” release it won’t work. So you can install the nightly version with:

pip install torchrl-nightly

If you want to install extra dependencies

pip3 install "torchrl[atari,dm_control,gym_continuous,rendering,tests,utils]"

PyTorch 2.0

Going out in early March, it looks like the code has some bugs if we don’t use the latest version. Right now it is still in development, but almost released. To install it, you can follow the installation instructions.

Known issues

If the following error is raised:

TypeError: state_dict() got an unexpected keyword argument 'destination'

Try updating torchrl to the latest version: pip install --upgrade torchrl-nightly. The PR I made there fixing the issue was merged.

About

Experimenting with integrating PyTorch Lightning + TorchRL for differentiable environments running on multiple GPUs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published