MiniGPT-4
MiniGPT-4 copied to clipboard
Bitsandbytes cant find CUDA
keep getting CUDA Setup failed despite GPU being available. Please run the following command to get more information:
python -m bitsandbytes
Inspect the output of the command and see if you can locate CUDA libraries. You might need to add them
to your LD_LIBRARY_PATH. If you suspect a bug, please take the information from python -m bitsandbytes
and open an issue at: https://github.com/TimDettmers/bitsandbytes/issues
I've done everything I could think of I'm growing very confused I have reinstalled tried adding the correct paths to your LD_LIBRARY_PATH variable: installed pytorch 15 different times, installed from source, got CUDA manually from nvida. Idk what to do please help
please refer to the bitsansbytes repo -> you need to have the correct version of cuda
https://github.com/TimDettmers/bitsandbytes/issues/112
Fix your bitsadnbytes package (C:\Users\yourusername\anaconda3\envs\minigpt4\Lib\site-packages\bitsandbytes): https://github.com/DeXtmL/bitsandbytes-win-prebuilt Download dlls and read this: https://github.com/Vision-CAIR/MiniGPT-4/issues/28#issuecomment-1514181638 Then execute in case if you have error that torch is not compiled with CUDA support: pip uninstall torch pip cache purge pip install torch -f https://download.pytorch.org/whl/torch_stable.html pip uninstall torchaudio pip install torchaudio