Closed chauvinSimon closed 11 months ago
Yep, had the same issue here.
It's because bitsandbytes can't find triton anymore after your cp libbitsandbytes_cuda117.so libbitsandbytes_cpu.so
command
Deleting triton manually from my site-packages and reinstalling with pip install triton
fixes this error.
It is interesting that a triton install solved this issue. The newest version of trition seems to be 2.0.0.post1
, so maybe this version has major changes and is the requirement for bitsandbytes? I need to check this in more detail.
Interestingly, as soon as you run the manual cp libbitsandbytes_cuda117.so libbitsandbytes_cpu.so
, it can still find import triton
, but not import triton.language
, until you reinstall triton.
Since it seems like the manual cp
breaks it, if we don't need to run the cp
to make our cuda detectable, then maybe this bug is solved automatically?
Tim and I just discovered what this issue was about, @Daryl149:
When copying the .so
you were likely in the bitsandbytes/bitsandbytes/
sub-directory, which has a triton
sub-directory.
Therefore, this must have been a namespace collision, importing from the sub-directory instead of the installed package. Likely, when you reinstalled triton you also reran your commands from a different directory and therefore it appeared as if that was what solved the issue.
Closing this issue. Let me know if you disagree.
OR you are Linux distribution (Ubuntu, MacOS, etc.)system ,AND CUDA Version: 11.X.
Bitsandbytes can support ubuntu.(yuhuang) 1 open folder J:\StableDiffusion\sdwebui,Click the address bar of the folder and enter CMD or WIN+R, CMD 。enter,cd /d J:\StableDiffusion\sdwebui 2 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes
3 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes-windows
4 J:\StableDiffusion\sdwebui\py310\python.exe -m pip install https://github.com/TimDettmers/bitsandbytes/releases/download/0.41.0/bitsandbytes-0.41.0-py3-none-any.whl
Replace your SD venv directory file(python.exe Folder) here(J:\StableDiffusion\sdwebui\py310)
Hi, I am trying to install bitsandbytes.
in short:
python -m bitsandbytes
raisesModuleNotFoundError: No module named 'triton.language'
Software requirements
I think I respect the software requirements:
some of my python packages:
nvcc version
:Hardware requirements
I am not sure if I respect the Hardware requirements:
I have a
nvidia RTX A2000
with 8Gb. Is it enough?nvidia-smi
:python -m bitsandbytes
I have
run pip install bitsandbytes
thenfollowing https://github.com/TimDettmers/bitsandbytes/issues/156#issuecomment-1474056975 I run
then
strange, since
triton == 2.0.0
is installed