CUDA and Pytorch version mismatch
Hi,
When I try to utilize the ViT-Adapter repo with CUDA 12.2 machines (and Google Colab) available, I get the following error when I run: sh make.sh
RuntimeError: The detected CUDA version (12.2) mismatches the version that was used to compile PyTorch (11.3). Please make sure to use the same CUDA versions.
Is there a solution to this mismatch?
i have the same problem, do you resolve it ?
Unfortunately no :(
This might because the nvcc version does not match with your pytorch+cuda version.
For example, if your torch.__version__ is '1.13.1+cu117', then your nvcc -V should be like ... Cuda compilation tools, release 11.7, V11.7.64 Build cuda_11.7.r11.7/compiler.31294372_0
I opensourced a repo that modernizes ViT-Adapter to PyTorch2.9.1, with CUDA12.8, python 3.12 here.
Hope it helps:)