Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion experiments/agentcompany/openhands/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ tiktoken==0.7.0
tinycss2==1.3.0
tokenizers==0.20.3
tomli==2.0.1
torch==2.4.0+cu121
torch==2.12.0
torchaudio==2.4.0+cu121
torchvision==0.19.0
Comment on lines +177 to 179

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 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.

Fix in Cursor Fix in Claude Code Fix in Codex

tornado==6.4.1
Expand Down