ViT-Adapter icon indicating copy to clipboard operation
ViT-Adapter copied to clipboard

CUDA and Pytorch version mismatch

Open arslanduygu opened this issue 2 years ago • 4 comments

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?

arslanduygu avatar May 22 '24 13:05 arslanduygu

i have the same problem, do you resolve it ?

sayakawaiiyo avatar Jul 17 '24 02:07 sayakawaiiyo

Unfortunately no :(

arslanduygu avatar Jul 18 '24 05:07 arslanduygu

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

onlylrs avatar Sep 25 '25 06:09 onlylrs

I opensourced a repo that modernizes ViT-Adapter to PyTorch2.9.1, with CUDA12.8, python 3.12 here.

Hope it helps:)

onlylrs avatar May 04 '26 05:05 onlylrs