===================================BUG REPORT===================================
C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\cuda_setup\main.py:166: UserWarning: Welcome to bitsandbytes. For bug reports, please run
python -m bitsandbytes
warn(msg)
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths...
The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')}
DEBUG: Possible options found for libcudart.so: set()
CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.9.
CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md
CUDA SETUP: Loading binary C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so...
argument of type 'WindowsPath' is not iterable
CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected.
CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable
CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null
CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a
CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc
CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA.
CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh
CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO.
CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/local
Traceback (most recent call last):
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\H\AppData\Local\Programs\Python\Python310\Scripts\transparent-background.exe__main.py", line 4, in
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\transparent_background__init__.py", line 1, in
from transparent_background.Remover import Remover, console
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\transparent_background\Remover.py", line 20, in
from transparent_background.InSPyReNet import InSPyReNet_SwinB
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\transparent_background\InSPyReNet.py", line 12, in
from transparent_background.modules.layers import *
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\transparent_background\modules\layers.py", line 8, in
from kornia.morphology import dilation, erosion
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\kornia__init.py", line 11, in
from . import augmentation, color, contrib, core, enhance, feature, io, losses, metrics, morphology, tracking, utils, x
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\kornia\x\init.py", line 2, in
from .trainer import Trainer
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\kornia\x\trainer.py", line 11, in
from accelerate import Accelerator
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\accelerate\init.py", line 3, in
from .accelerator import Accelerator
File "C:\Users\H\AppData\Local\Programs\Python\Python310\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 "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\accelerate\checkpointing.py", line 24, in
from .utils import (
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\accelerate\utils\init.py", line 131, in
from .bnb import has_4bit_bnb_layers, load_and_quantize_model
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\accelerate\utils\bnb.py", line 42, in
import bitsandbytes as bnb
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\init__.py", line 6, in
from . import cuda_setup, utils, research
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\research\init.py", line 1, in
from . import nn
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\research\nn\init.py", line 1, in
from .modules import LinearFP8Mixed, LinearFP8Global
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\research\nn\modules.py", line 8, in
from bitsandbytes.optim import GlobalOptimManager
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\optim\init__.py", line 6, in
from bitsandbytes.cextension import COMPILED_WITH_CUDA
File "C:\Users\H\AppData\Local\Programs\Python\Python310\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:
python -m bitsandbytes
Inspect the output of the command and see if you can locate CUDA libraries. You might need to add them
to your LD_LIBRARY_PATH. If you suspect a bug, please take the information from python -m bitsandbytes
and open an issue at: https://github.com/TimDettmers/bitsandbytes/issues
以下是后台报错信息:系统:win11,python:3.10.11,CUDA:11.8-12.2 False
===================================BUG REPORT=================================== C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\cuda_setup\main.py:166: UserWarning: Welcome to bitsandbytes. For bug reports, please run
python -m bitsandbytes
warn(msg)
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths... The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')} DEBUG: Possible options found for libcudart.so: set() CUDA SETUP: PyTorch settings found: CUDA_VERSION=118, Highest Compute Capability: 8.9. CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md CUDA SETUP: Loading binary C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.so... argument of type 'WindowsPath' is not iterable CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected. CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA. CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO. CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/local Traceback (most recent call last): File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\H\AppData\Local\Programs\Python\Python310\Scripts\transparent-background.exe__main.py", line 4, in
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\transparent_background__init__.py", line 1, in
from transparent_background.Remover import Remover, console
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\transparent_background\Remover.py", line 20, in
from transparent_background.InSPyReNet import InSPyReNet_SwinB
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\transparent_background\InSPyReNet.py", line 12, in
from transparent_background.modules.layers import *
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\transparent_background\modules\layers.py", line 8, in
from kornia.morphology import dilation, erosion
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\kornia__init.py", line 11, in
from . import augmentation, color, contrib, core, enhance, feature, io, losses, metrics, morphology, tracking, utils, x
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\kornia\x\ init.py", line 2, in
from .trainer import Trainer
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\kornia\x\trainer.py", line 11, in
from accelerate import Accelerator
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\accelerate\ init.py", line 3, in
from .accelerator import Accelerator
File "C:\Users\H\AppData\Local\Programs\Python\Python310\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 "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\accelerate\checkpointing.py", line 24, in
from .utils import (
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\accelerate\utils\ init.py", line 131, in
from .bnb import has_4bit_bnb_layers, load_and_quantize_model
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\accelerate\utils\bnb.py", line 42, in
import bitsandbytes as bnb
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\ init__.py", line 6, in
from . import cuda_setup, utils, research
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\research\ init.py", line 1, in
from . import nn
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\research\nn\ init.py", line 1, in
from .modules import LinearFP8Mixed, LinearFP8Global
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\research\nn\modules.py", line 8, in
from bitsandbytes.optim import GlobalOptimManager
File "C:\Users\H\AppData\Local\Programs\Python\Python310\lib\site-packages\bitsandbytes\optim\ init__.py", line 6, in
from bitsandbytes.cextension import COMPILED_WITH_CUDA
File "C:\Users\H\AppData\Local\Programs\Python\Python310\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: