Skip to content

Please help with the error in bitsandbytes. #79

@Flun

Description

@Flun

My system: 5600x / 32gb / RTX3090 24gb
OS : win11/wsl2 ubuntu
anaconda 2022.05/cuda 11.7 pytorch 1.12.0 cu116
use dreambooth = https://github.com/ShivamShrirao/diffusers.git

test = bitsandbytes 0.35.1 / 0.35.2 / Just before 0.35.3

error code :
(diffusers) kona@DESKTOP-0T0D468:~/github/diffusers/examples/dreambooth$ ./my_training.sh
Traceback (most recent call last):
File "/home/kona/anaconda3/envs/diffusers/lib/python3.9/site-packages/bitsandbytes/init.py", line 6, in
from .autograd._functions import (
File "/home/kona/anaconda3/envs/diffusers/lib/python3.9/site-packages/bitsandbytes/autograd/_functions.py", line 5, in
import bitsandbytes.functional as F
File "/home/kona/anaconda3/envs/diffusers/lib/python3.9/site-packages/bitsandbytes/functional.py", line 13, in
from .cextension import COMPILED_WITH_CUDA, lib
File "/home/kona/anaconda3/envs/diffusers/lib/python3.9/site-packages/bitsandbytes/cextension.py", line 113, in
lib = CUDASetup.get_instance().lib
File "/home/kona/anaconda3/envs/diffusers/lib/python3.9/site-packages/bitsandbytes/cextension.py", line 109, in get_instance
cls._instance.initialize()
File "/home/kona/anaconda3/envs/diffusers/lib/python3.9/site-packages/bitsandbytes/cextension.py", line 59, in initialize
binary_name, cudart_path, cuda, cc, cuda_version_string = evaluate_cuda_setup()
File "/home/kona/anaconda3/envs/diffusers/lib/python3.9/site-packages/bitsandbytes/cuda_setup/main.py", line 125, in evaluate_cuda_setup
cudart_path = determine_cuda_runtime_lib_path()
File "/home/kona/anaconda3/envs/diffusers/lib/python3.9/site-packages/bitsandbytes/cuda_setup/paths.py", line 90, in determine_cuda_runtime_lib_path
CUDASetup.get_instance.add_log_entry(f'{candidate_env_vars["CONDA_PREFIX"]} did not contain '
AttributeError: 'function' object has no attribute 'add_log_entry'

I've tested several versions of recently built bitsandbytes, but dreambooth keeps spit out the same error.
In the end, dreambooth's calling function --use_8bit_adam has been removed and dreambooth is being used.

If you have a workaround solution, please help me.
Thank you for always.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions