Bump torch from 2.4.0+cu121 to 2.12.0 in /experiments/agentcompany/openhands#35
Conversation
Bumps [torch](https://github.com/pytorch/pytorch) from 2.4.0+cu121 to 2.12.0. - [Release notes](https://github.com/pytorch/pytorch/releases) - [Changelog](https://github.com/pytorch/pytorch/blob/main/RELEASE.md) - [Commits](https://github.com/pytorch/pytorch/commits/v2.12.0) --- updated-dependencies: - dependency-name: torch dependency-version: 2.12.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
| torch==2.12.0 | ||
| torchaudio==2.4.0+cu121 | ||
| torchvision==0.19.0 |
There was a problem hiding this comment.
Version mismatch between torch and its companion packages
torchaudio==2.4.0+cu121 and torchvision==0.19.0 are only compatible with torch==2.4.x; they link against that specific version of torch's C++ ABI. After this bump to torch==2.12.0, importing either package will raise a RuntimeError about a torch version mismatch at startup. The CUDA suffix was also dropped from the new torch pin (no +cu12x), which may mean a different CUDA variant or the CPU wheel — either way, the companion packages still expect CUDA 12.1 binaries. To align, torchaudio and torchvision should be bumped to their respective 2.12.0 and 0.22.0 (or whatever the matching release is) compatible versions, and triton==3.0.0 (which corresponds to torch 2.4.x) likely needs updating as well.
Prompt To Fix With AI
This is a comment left during a code review.
Path: experiments/agentcompany/openhands/requirements.txt
Line: 177-179
Comment:
**Version mismatch between torch and its companion packages**
`torchaudio==2.4.0+cu121` and `torchvision==0.19.0` are only compatible with `torch==2.4.x`; they link against that specific version of torch's C++ ABI. After this bump to `torch==2.12.0`, importing either package will raise a `RuntimeError` about a torch version mismatch at startup. The CUDA suffix was also dropped from the new torch pin (no `+cu12x`), which may mean a different CUDA variant or the CPU wheel — either way, the companion packages still expect CUDA 12.1 binaries. To align, `torchaudio` and `torchvision` should be bumped to their respective `2.12.0` and `0.22.0` (or whatever the matching release is) compatible versions, and `triton==3.0.0` (which corresponds to torch 2.4.x) likely needs updating as well.
How can I resolve this? If you propose a fix, please make it concise.
Bumps torch from 2.4.0+cu121 to 2.12.0.
Release notes
Sourced from torch's releases.
... (truncated)
Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)You can disable automated security fix PRs for this repo from the Security Alerts page.
Greptile Summary
This dependabot PR bumps
torchfrom2.4.0+cu121to2.12.0in the OpenHands experiment requirements, but does not update the tightly-coupled companion packagestorchaudioandtorchvisionwhich remain pinned to theirtorch 2.4.x-compatible versions.torchaudio==2.4.0+cu121andtorchvision==0.19.0link against torch's versioned C++ ABI; importing either withtorch==2.12.0will raise a version mismatch error at runtime.triton==3.0.0corresponds to the torch 2.4.x release series and also needs updating.+cu121CUDA suffix was dropped from the new torch pin while the companion packages still reference CUDA 12.1 binaries, adding further incompatibility.Confidence Score: 1/5
Not safe to merge — the environment will be broken on install due to version mismatches between torch and its companion packages.
Bumping torch alone without updating torchaudio, torchvision, and triton leaves the dependency set in a state where importing any of those packages raises a RuntimeError due to ABI incompatibility. Any code that imports these packages will fail immediately.
experiments/agentcompany/openhands/requirements.txt — torchaudio, torchvision, and triton all need to be updated to versions compatible with torch 2.12.0.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A[torch==2.12.0\nnew pin] -->|ABI incompatible| B[torchaudio==2.4.0+cu121\nunchanged] A -->|ABI incompatible| C[torchvision==0.19.0\nunchanged] A -->|version mismatch| D[triton==3.0.0\nunchanged] B --> E[RuntimeError at import] C --> E D --> EPrompt To Fix All With AI
Reviews (1): Last reviewed commit: "Bump torch in /experiments/agentcompany/..." | Re-trigger Greptile