kohya-ss / kohya-ss/sd-scripts
I need help with this error , it happened while attempting to train
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 1.2k
- Avg merge
- 11m
- Merged PRs (30d)
- 2
Description
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching /usr/local/cuda/lib64...
C:\Users\rakow\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\rakow\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\libbitsandbytes_cpu.so...
Traceback (most recent call last):
File "C:\Lora Training\New folder\sd-scripts\lora_train_popup.py", line 535, in
main()
File "C:\Lora Training\New folder\sd-scripts\lora_train_popup.py", line 203, in main
train_network.train(args)
File "C:\Lora Training\New folder\sd-scripts\train_network.py", line 134, in train
import bitsandbytes as bnb
File "C:\Users\rakow\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\__init__.py", line 6, in
from .autograd._functions import (
File "C:\Users\rakow\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\autograd\_functions.py", line 5, in
import bitsandbytes.functional as F
File "C:\Users\rakow\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\functional.py", line 13, in
from .cextension import COMPILED_WITH_CUDA, lib
File "C:\Users\rakow\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\cextension.py", line 41, in
lib = CUDALibrary_Singleton.get_instance().lib
File "C:\Users\rakow\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\cextension.py", line 37, in get_instance
cls._instance.initialize()
File "C:\Users\rakow\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\cextension.py", line 31, in initialize
self.lib = ct.cdll.LoadLibrary(binary_path)
File "C:\Users\rakow\AppData\Local\Programs\Python\Python310\lib\ctypes\__init__.py", line 452, in LoadLibrary
return self._dlltype(name)
File "C:\Users\rakow\AppData\Local\Programs\Python\Python310\lib\ctypes\__init__.py", line 364, in __init__
if '/' in name or '\\' in name:
TypeError: argument of type 'WindowsPath' is not iterable
(venv) PS C:\Lora Training\New folder\sd-scripts>
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with lora_train_popup.py and train_network.py at the import of bitsandbytes, then follow the reported bitsandbytes CUDA setup and cextension traceback. Reproduce the Windows training attempt and determine whether the missing libcudart.so or WindowsPath LoadLibrary error is the actionable failure; done means the training command proceeds past initialization without this traceback.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100