Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error occurred when executing PhotoMakerAdapter_Loader_fromhub: CUDA Setup failed despite GPU being available. Please run the following command to get more information: #43

Open
afd2046 opened this issue Jan 21, 2024 · 0 comments

Comments

@afd2046
Copy link

afd2046 commented Jan 21, 2024

Error occurred when executing PhotoMakerAdapter_Loader_fromhub:

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

File "E:\ComfyUI\execution.py", line 155, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "E:\ComfyUI\execution.py", line 85, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "E:\ComfyUI\execution.py", line 78, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "E:\ComfyUI\custom_nodes\ComfyUI-PhotoMaker\PhotoMakerNode.py", line 117, in load_photomaker_adapter
pipe.load_photomaker_adapter(
File "E:\ComfyUI\venv\lib\site-packages\huggingface_hub\utils_validators.py", line 118, in inner_fn
return fn(*args, **kwargs)
File "E:\ComfyUI\custom_nodes\ComfyUI-PhotoMaker\pipeline.py", line 121, in load_photomaker_adapter
self.load_lora_weights(state_dict["lora_weights"], adapter_name="photomaker")
File "E:\ComfyUI\venv\lib\site-packages\diffusers\loaders\lora.py", line 1450, in load_lora_weights
self.load_lora_into_unet(
File "E:\ComfyUI\venv\lib\site-packages\diffusers\loaders\lora.py", line 460, in load_lora_into_unet
inject_adapter_in_model(lora_config, unet, adapter_name=adapter_name)
File "E:\ComfyUI\venv\lib\site-packages\peft\mapping.py", line 163, in inject_adapter_in_model
peft_model = tuner_cls(model, peft_config, adapter_name=adapter_name)
File "E:\ComfyUI\venv\lib\site-packages\peft\tuners\lora\model.py", line 111, in init
super().init(model, config, adapter_name)
File "E:\ComfyUI\venv\lib\site-packages\peft\tuners\tuners_utils.py", line 90, in init
self.inject_adapter(self.model, adapter_name)
File "E:\ComfyUI\venv\lib\site-packages\peft\tuners\tuners_utils.py", line 247, in inject_adapter
self.create_and_replace(peft_config, adapter_name, target, target_name, parent, **optional_kwargs)
File "E:\ComfyUI\venv\lib\site-packages\peft\tuners\lora\model.py", line 168, in create_and_replace
from .bnb import Linear8bitLt
File "E:\ComfyUI\venv\lib\site-packages\peft\tuners\lora\bnb.py", line 19, in
import bitsandbytes as bnb
File "E:\ComfyUI\venv\lib\site-packages\bitsandbytes_init
.py", line 6, in
from . import cuda_setup, utils, research
File "E:\ComfyUI\venv\lib\site-packages\bitsandbytes\research_init
.py", line 1, in
from . import nn
File "E:\ComfyUI\venv\lib\site-packages\bitsandbytes\research\nn_init
.py", line 1, in
from .modules import LinearFP8Mixed, LinearFP8Global
File "E:\ComfyUI\venv\lib\site-packages\bitsandbytes\research\nn\modules.py", line 8, in
from bitsandbytes.optim import GlobalOptimManager
File "E:\ComfyUI\venv\lib\site-packages\bitsandbytes\optim_init_.py", line 6, in
from bitsandbytes.cextension import COMPILED_WITH_CUDA
File "E:\ComfyUI\venv\lib\site-packages\bitsandbytes\cextension.py", line 20, in
raise RuntimeError('''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant