Repository navigation
Minimum torch version?
#1828
peterdsharpe
started this conversation in
General
Replies: 2 comments 2 replies
|
Tagging @vmoens and active maintainers + recent contributors @bsprenger @theap06 for viz |
0 replies
|
@peterdsharpe thanks for starting this discussion! 100% in support of a lower bound (unless there was a reason for removal that I don't know about). From my point of view, it does seem like the goal would be full compile support. In principle I would be in support of a 2.13 bound. I can run a similar test matrix to what you did above for torchRL, to get a similar count of failures for different torch versions on the torchRL test suite. @theap06 do you think we should consider a similar pin for torchRL, or see a reason not to have a lower bound? |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Currently,
pyproject.tomlliststorchas a dependency, with no lower-version pin.It looks like TensorDict used to have a
torchpin until tensordict v0.8 or so (for example, 0.7 requirestorch>=2.6.0), when it was removed with #1286.Two questions:
1. Was the removal intentional? I would prefer to have a
torchlower-version pin, but in the spirit of Chesterton's fence, it'd be good to know if there was a reason for this pin-removal first. @vmoens ?Motivation for having the minimum-version pin is that currently users can install tensordict with wildly incompatible torch versions (e.g., where we call
torchAPI that does not exist), thereby increasing the maintenance burden.2. If we do decide to pin a minimum
torchversion, what should we pin it to?I ran the test suite from today's
mainon PyTorch releases, and see:My vote would be to require at least
torch >= 2.12.0a0, which is the first release where compile is clean, and this would let us drop a ton of scattered compat shims throughout the library like #1703 or #1823.>=2.13also seems like a good choice, as that's the most recent release that currently has both CUDA 12 and 13 wheels. Bare-minimum, I think we should pin to>=2.10or so, since compile mechanics get a lot messier before that.However - wanted to open this up for discussion before opening a PR on this, since this potentially impacts a lot of users. Would be a good question - what version of torch are most users running these days? Thoughts?
All reactions