-
Notifications
You must be signed in to change notification settings - Fork 508
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
RuntimeError: Detected that PyTorch and torchvision were compiled with different CUDA versions. #238
Comments
All I did was install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 and it worked fine. Windows |
Also have the same problem. |
Same issue on Colab. Confirm the fix with running the following in the beginning. %pip install torch==2.0.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 |
Added torchdata and torchtext and it worked fine. %pip install torch==2.0.0 torchvision torchaudio torchdata torchtext --index-url https://download.pytorch.org/whl/cu118 |
This thead saved my day. Thanks guys! |
@freddieb12345 I had the same issue. This resolved it:
|
can I get the colab notebook link please |
Стандартная версия гугл колаб снова заработала. |
Describe the bug
RuntimeError: Detected that PyTorch and torchvision were compiled with different
CUDA versions. PyTorch has CUDA Version=11.7 and torchvision has CUDA
Version=11.8. Please reinstall the torchvision that matches your PyTorch
install.
Reproduction
/usr/local/lib/python3.10/dist-packages/torchvision/extension.py:80 in │
│ _check_cuda_version │
│ │
│ 77 │ │ t_major = int(t_version[0]) │
│ 78 │ │ t_minor = int(t_version[1]) │
│ 79 │ │ if t_major != tv_major or t_minor != tv_minor: │
│ ❱ 80 │ │ │ raise RuntimeError( │
│ 81 │ │ │ │ "Detected that PyTorch and torchvision were compiled w │
│ 82 │ │ │ │ f"PyTorch has CUDA Version={t_major}.{t_minor} and tor │
│ 83 │ │ │ │ f"CUDA Version={tv_major}.{tv_minor}. "
Logs
No response
System Info
Python 3.11.2
MacBookPro M2, mac OS ventura version 13.2.1
The text was updated successfully, but these errors were encountered: