Closed mawenju203 closed 11 months ago
Bitsandbytes was not supported windows before, but my method can support windows.(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/jllllll/bitsandbytes-windows-webui/releases/download/wheels/bitsandbytes-0.41.1-py3-none-win_amd64.whl
Replace your SD venv directory file(python.exe Folder) here(J:\StableDiffusion\sdwebui\py310)
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
===================================BUG REPORT=================================== Welcome to bitsandbytes. For bug reports, please run
python -m bitsandbytes
and submit this information together with your error trace to: https://github.com/TimDettmers/bitsandbytes/issues
bin E:\soft_ware\anaconda3\lib\site-packages\bitsandbytes\libbitsandbytes_cpu.so False E:\soft_ware\anaconda3\lib\site-packages\bitsandbytes\cuda_setup\main.py:149: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {WindowsPath('/soft_ware/Git/etc/ config.site'), WindowsPath('E')} warn(msg) E:\soft_ware\anaconda3\lib\site-packages\bitsandbytes\cuda_setup\main.py:149: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {WindowsPath('E')} warn(msg) E:\soft_ware\anaconda3\lib\site-packages\bitsandbytes\cuda_setup\main.py:149: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {WindowsPath('/Users/feeyo/AppDat a/Local/Temp'), WindowsPath('C')} warn(msg) E:\soft_ware\anaconda3\lib\site-packages\bitsandbytes\cuda_setup\main.py:149: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {WindowsPath('E'), WindowsPath('/ soft_ware/Git/mingw64/include')} warn(msg) CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths... E:\soft_ware\anaconda3\lib\site-packages\bitsandbytes\cuda_setup\main.py:149: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib 64')} warn(msg) CUDA SETUP: WARNING! libcuda.so not found! Do you have a CUDA driver installed? If you are on a cluster, make sure you are on a CUDA machine! E:\soft_ware\anaconda3\lib\site-packages\bitsandbytes\cuda_setup\main.py:149: UserWarning: WARNING: No libcudart.so found! Install CUDA or the cudatoolkit package (anaconda)! warn(msg) E:\soft_ware\anaconda3\lib\site-packages\bitsandbytes\cuda_setup\main.py:149: UserWarning: WARNING: No GPU detected! Check your CUDA paths. Proceeding to load CPU-only library... warn(msg) CUDA SETUP: Loading binary E:\soft_ware\anaconda3\lib\site-packages\bitsandbytes\libbitsandbytes_cpu.so... argument of type 'WindowsPath' is not iterable CUDA SETUP: Problem: The main issue seems to be that the main CUDA library was not detected. CUDA SETUP: Solution 1): Your paths are probably not up-to-date. You can update them via: sudo ldconfig. CUDA SETUP: Solution 2): If you do not have sudo rights, you can do the following: CUDA SETUP: Solution 2a): Find the cuda library via: find / -name libcuda.so 2>/dev/null CUDA SETUP: Solution 2b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_2a CUDA SETUP: Solution 2c): For a permanent solution add the export from 2b into your .bashrc file, located at ~/.bashrc Traceback (most recent call last): File "E:\soft_ware\anaconda3\lib\site-packages\transformers\utils\import_utils.py", line 1086, in _get_module return importlib.import_module("." + module_name, self.name) File "E:\soft_ware\anaconda3\lib\importlib__init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "E:\soft_ware\anaconda3\lib\site-packages\transformers\training_args_seq2seq.py", line 21, in
from .training_args import TrainingArguments
File "E:\soft_ware\anaconda3\lib\site-packages\transformers\training_args.py", line 67, in
from accelerate.state import AcceleratorState, PartialState
File "E:\soft_ware\anaconda3\lib\site-packages\accelerate__init__.py", line 3, in
from .accelerator import Accelerator
File "E:\soft_ware\anaconda3\lib\site-packages\accelerate\accelerator.py", line 35, in
from .checkpointing import load_accelerator_state, load_custom_state, save_accelerator_state, save_custom_state
File "E:\soft_ware\anaconda3\lib\site-packages\accelerate\checkpointing.py", line 24, in
from .utils import (
File "E:\soft_ware\anaconda3\lib\site-packages\accelerate\utils__init.py", line 131, in
from .bnb import has_4bit_bnb_layers, load_and_quantize_model
File "E:\soft_ware\anaconda3\lib\site-packages\accelerate\utils\bnb.py", line 42, in
import bitsandbytes as bnb
File "E:\soft_ware\anaconda3\lib\site-packages\bitsandbytes\ init.py", line 6, in
from . import cuda_setup, utils, research
File "E:\soft_ware\anaconda3\lib\site-packages\bitsandbytes\research\ init__.py", line 1, in
from . import nn
File "E:\soft_ware\anaconda3\lib\site-packages\bitsandbytes\research\nn\ init.py", line 1, in
from .modules import LinearFP8Mixed, LinearFP8Global
File "E:\soft_ware\anaconda3\lib\site-packages\bitsandbytes\research\nn\modules.py", line 8, in
from bitsandbytes.optim import GlobalOptimManager
File "E:\soft_ware\anaconda3\lib\site-packages\bitsandbytes\optim\ init__.py", line 6, in
from bitsandbytes.cextension import COMPILED_WITH_CUDA
File "E:\soft_ware\anaconda3\lib\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:
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "E:\llm\ChatGLM2-6B-main\ChatGLM-Efficient-Tuning-main\src\train_bash.py", line 1, in
from pet import get_train_args, run_sft, run_rm, run_ppo
File "E:\llm\ChatGLM2-6B-main\ChatGLM-Efficient-Tuning-main\src\pet__init.py", line 1, in
from .core import get_train_args, get_infer_args, load_model_and_tokenizer
File "E:\llm\ChatGLM2-6B-main\ChatGLM-Efficient-Tuning-main\src\pet\core__init__.py", line 1, in
from .parse import get_train_args, get_infer_args
File "E:\llm\ChatGLM2-6B-main\ChatGLM-Efficient-Tuning-main\src\pet\core\parse.py", line 7, in
from transformers import HfArgumentParser, Seq2SeqTrainingArguments
File "", line 1075, in _handle_fromlist
File "E:\soft_ware\anaconda3\lib\site-packages\transformers\utils\import_utils.py", line 1076, in getattr__
module = self._get_module(self._class_to_module[name])
File "E:\soft_ware\anaconda3\lib\site-packages\transformers\utils\import_utils.py", line 1088, in _get_module
raise RuntimeError(
RuntimeError: Failed to import transformers.training_args_seq2seq because of the following error (look up to see its traceback):