GithubHelp home page GithubHelp logo

CUDA Setup failed despite GPU being available. Please run the following command to get more information: python -m bitsandbytes about bitsandbytes HOT 3 OPEN

tejarao1156 avatar tejarao1156 commented on June 1, 2024 2
CUDA Setup failed despite GPU being available. Please run the following command to get more information: python -m bitsandbytes

from bitsandbytes.

Comments (3)

s-ravi18 avatar s-ravi18 commented on June 1, 2024 1

Same error I am also getting, can anyone suggest a way for this?

from bitsandbytes.

johnga1995 avatar johnga1995 commented on June 1, 2024 1

I had this issue while trying to get Kohya_ss setup and managed to solve it.

My system has cuda toolkit version 12.2.
NVIDIA-SMI 535.161.07 Driver Version: 535.161.07 CUDA Version: 12.2. If you have a lower driver version (i.e. ~320 with cuda 11.8) it should work just by installing bitsandbytes with pip. But I could not downgrade my driver version and the default installation of bitsandbytes does not seem to work with cuda 12.2.

So I managed to fix it with the help of #551 (comment)

I did have to do a few extra steps.

Basically made sure to uninstall bitsandbytes and bitsandbytes_windows from my venv environment and build it from source (as shown in the link above).

Since I had cuda 12.2, I had to specify the cuda version in the build process (refer to link) as CUDA_VERSION=122 make cuda12x

With this i generated a file libbitsandbytes_cuda122.so. This file I had to copy it to the venv python library path for bitsandbytes .

Also, on the venv, I had to set environment variables with commands export BNB_CUDA_VERSION=122 and export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda-12.2/targets/x86_64-linux/lib/stubs (Note that this is because I have cuda 12.2)

Finallly after running python -m bitsandbytes, I did not get any more errors and got a Installation was successful!.

from bitsandbytes.

deep-pipeline avatar deep-pipeline commented on June 1, 2024

@tejarao1156 and @s-ravi18 did the above advice help you? if so please say (or clarify any additions) so that this issue could be closed.

from bitsandbytes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.