RVT icon indicating copy to clipboard operation
RVT copied to clipboard

RuntimeError:CUDA Setup failed despite GPU being available. Please run the following command to get more information:

Open LogSSim opened this issue 10 months ago • 2 comments
trafficstars

Oh, God. When I changed the server environment and reinstalled rvt, I got an error: ''' File "/data2/s/code/RVT/rvt/models/rvt_agent.py", line 12, in import bitsandbytes as bnb File "/home/s/anaconda3/envs/rvt/lib/python3.8/site-packages/bitsandbytes/init.py", line 6, in from . import cuda_setup, utils, research File "/home/s/anaconda3/envs/rvt/lib/python3.8/site-packages/bitsandbytes/research/init.py", line 1, in from . import nn File "/home/s/anaconda3/envs/rvt/lib/python3.8/site-packages/bitsandbytes/research/nn/init.py", line 1, in from .modules import LinearFP8Mixed, LinearFP8Global File "/home/sjy/anaconda3/envs/rvt/lib/python3.8/site-packages/bitsandbytes/research/nn/modules.py", line 8, in from bitsandbytes.optim import GlobalOptimManager File "/home/s/anaconda3/envs/rvt/lib/python3.8/site-packages/bitsandbytes/optim/init.py", line 6, in from bitsandbytes.cextension import COMPILED_WITH_CUDA File "/home/s/anaconda3/envs/rvt/lib/python3.8/site-packages/bitsandbytes/cextension.py", line 20, in raise RuntimeError(''' RuntimeError: 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

'''

What is the reason for this?

LogSSim avatar Jan 02 '25 06:01 LogSSim

Hi,

This seems like an error related to bitsandbytes. I have not encountered it in the past, so unfortunately, so unfortunately I can't help much with this. Maybe try posting your bits and bytes-related log in their official GitHub along with the version number.

imankgoyal avatar Jan 06 '25 22:01 imankgoyal

I solved this by performing

pip uninstall bitsandbytes –y
pip install bitsandbytes

violetdenim avatar Jan 22 '25 12:01 violetdenim