kohya_ss
kohya_ss copied to clipboard
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path.
Welcome to bitsandbytes. For bug reports, please submit your error trace to: https://github.com/TimDettmers/bitsandbytes/issues For effortless bug reporting copy-paste your error into this form: https://docs.google.com/forms/d/e/1FAIpQLScPB8emS3Thkp66nvqwmjTEgxp8Y9ufuWTzFyr9kJ5AoI47dQ/viewform?usp=sf_link
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching /usr/local/cuda/lib64...
C:\Users\VIP\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\cuda_setup\paths.py:27: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')}
warn(
WARNING: No libcudart.so found! Install CUDA or the cudatoolkit package (anaconda)!
CUDA SETUP: Loading binary C:\Users\VIP\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\libbitsandbytes_cpu.so...
Traceback (most recent call last):
File "C:\kohya_ss\train_network.py", line 548, in
i installed the cuda drivers
Do you have CUDA Toolkit installed? I had a similar problem and was able to fix it by installing it from the official NVIDIA page.
it is installed idk whats wrong
the same error before and after installing it
Same here, even after installing the newest CUDA drivers
I have tried installing CUDA 11.0, 11.6, 11.7, 12.0, all still showing the same error
What else would come to my mind would be to disable 8bit adam. However, this would lead to a very high memory consumption...
I am having this exact same issue.
What else would come to my mind would be to disable 8bit adam. However, this would lead to a very high memory consumption...
This worked for me!
Finally, I found the cause of this problem.
It is caused by the bitsandbytes library not supporting Windows. kohya_ss use this library to support 8bit adam to reduce video mem usage.
There is a windows compatible version in the bitsandbytes_windows
folder.
Execute below script in Readme Installation maybe fix this problem.
cp .\bitsandbytes_windows\*.dll .\venv\Lib\site-packages\bitsandbytes\
cp .\bitsandbytes_windows\cextension.py .\venv\Lib\site-packages\bitsandbytes\cextension.py
cp .\bitsandbytes_windows\main.py .\venv\Lib\site-packages\bitsandbytes\cuda_setup\main.py
I got this error because I forgot to first activate the virtual environment.
.\venv\Scripts\activate
python .\lora_gui.py
All the solutions above don't work. Solutions from other opened threads don't work either.
Why even make the main instruction for linux when 90% of sd users run windows?
When I run this code, it gives numerous errors and when one error is solved, another pops out. It is a nightmarish experience. Esp having a nice gpu, Jesus.
Also, why even redirect us to bitsandbytes when all the recent opened issues are silently ignored?
Having the same problem
found my problem. If you installed the repo with CMD it didn't copy those bitsandbytes files into the directories. Powershell as admin will do the thing. or you can copy them in manually as I did and it fixed the problem
cp .\bitsandbytes_windows*.dll .\venv\Lib\site-packages\bitsandbytes
cp .\bitsandbytes_windows\cextension.py .\venv\Lib\site-packages\bitsandbytes\cextension.py
cp .\bitsandbytes_windows\main.py .\venv\Lib\site-packages\bitsandbytes\cuda_setup\main.py
发现我的问题。如果您使用 CMD 安装了 repo,它不会将那些 bitsandbytes 文件复制到目录中。作为管理员的 Powershell 会做这件事。或者你可以像我一样手动复制它们并解决问题
cp .\bitsandbytes_windows*.dll .\venv\Lib\site-packages\bitsandbytes cp .\bitsandbytes_windows\cextension.py .\venv\Lib\site-packages\bitsandbytes\cextension.py cp .\bitsandbytes_windows\main.py 。 \venv\Lib\site-packages\bitsandbytes\cuda_setup\main.py
I have tried manually copying all the files in the .\kohya_ss\bitsandbytes_windows folder to the ".\kohya_ss\venv\Lib\site-packages\bitsandbytes" folder, but it still doesn’t solve the problem. What should I do for Windows users?
found my problem. If you installed the repo with CMD it didn't copy those bitsandbytes files into the directories. Powershell as admin will do the thing. or you can copy them in manually as I did and it fixed the problem
cp .\bitsandbytes_windows*.dll .\venv\Lib\site-packages\bitsandbytes cp .\bitsandbytes_windows\cextension.py .\venv\Lib\site-packages\bitsandbytes\cextension.py cp .\bitsandbytes_windows\main.py .\venv\Lib\site-packages\bitsandbytes\cuda_setup\main.py
My problem is solved, must use Powershell to execute these commands, manual can not fix this problem
found my problem. If you installed the repo with CMD it didn't copy those bitsandbytes files into the directories. Powershell as admin will do the thing. or you can copy them in manually as I did and it fixed the problem cp .\bitsandbytes_windows*.dll .\venv\Lib\site-packages\bitsandbytes cp .\bitsandbytes_windows\cextension.py .\venv\Lib\site-packages\bitsandbytes\cextension.py cp .\bitsandbytes_windows\main.py .\venv\Lib\site-packages\bitsandbytes\cuda_setup\main.py
My problem is solved, must use Powershell to execute these commands, manual can not fix this problem
Still get the same error
You can indeed use explorer to copy them manually. Here are the files you need to copy:
Copy to: venv\Lib\site-packages\bitsandbytes\
bitsandbytes_windows\cextension.py
bitsandbytes_windows\libbitsandbytes_cpu.dll
bitsandbytes_windows\libbitsandbytes_cuda116.dll
Copy to: venv\Lib\site-packages\bitsandbytes\cuda_setup\
bitsandbytes_windows\main.py
需要将这个设置下: "use_8bit_adam": false,
需要将这个设置下: “use_8bit_adam”: false,
解决了
Why don't i have bitsandbytes_windows folder?
I directly installed using pip install bitsandbytes-windows
and it worked after that
Any instruction for linux or WSL? Thanks.