-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] PPO with torchrl tutorial broken on Colab #1628
Comments
Wild guess: Colab does not have torch 2.1. Can you confirm? |
Indeed, Colab seems to ship with Pytorch 2.0.1. For the time being, maybe add a |
Maybe a hard requirement of Pytorch 2.1 is still too aggressive for now. |
I think the ideal scenario going forward would be:
The first two are mandatory since it's the PyTorch version used to build the wheels (nothing else will work). But we make sure that local install work with previous versions of torch so we must ensure that there's a way to make it work! This would also incidentally solve the notebook issue since you'd be installing the recent PyTorch with torchrl. |
Is it an option to build wheels for different versions of PyTorch and tag each wheel with the associated PyTorch version? |
I don't think it is possible to tell PyPI that one version of a library has multiple sets of dependencies (at least I have never seen that in the past). Looking forward, the public wheels of v. in torchrl will always be tied to v<X+2>. in PyTorch I'm afraid 😧 |
We can specify |
It's also fine I guess if it is synced with a particular version of PyTorch. Users can still build a wheel with the PyTorch version they have in their environment. It would probably be more helpful to write somewhere the minimum PyTorch version needed. (E.g. torchrl 0.2 works fine with pytorch 2.0 AFAIK) |
Looks like Colab bumped pytorch to 2.1, tutorial works again |
I have made it so that torchrl depends on the latest pytorch version, hence running the tutorial with the binaries from #1642 will install the latest pytorch anyway. |
Torchrl now has a stronger dependency to PyTorch which means that you'll be able to install it in any Colab at any time in the future. |
Describe the bug
When trying to run the tutorial on Colab, the following error is thrown when importing torchrl:
To Reproduce
Expected behavior
Error doesn't happen
Screenshots
If applicable, add screenshots to help explain your problem.
System info
Standard Google Colab En
Checklist
The text was updated successfully, but these errors were encountered: