ValueError(f"{module} has no attribute {split}.") has no attribute norm_added_k.
Help please, i've got error.
My Python code
from diffusers import DiffusionPipeline
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-3.5-large")
prompt = "amazing car, futuristic, cyberpunk, detailed, 8k"
image = pipe(prompt).images[0]
image.save("cyberpunk.png")
Error stacktrace
Traceback (most recent call last):
File "d:\ai_projects\python\sd-3-m.py", line 17, in
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-3.5-large")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Rain\AppData\Roaming\Python\Python312\site-packages\huggingface_hub\utils_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "D:\conda_env\cog\Lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 876, in from_pretrained
loaded_sub_model = load_sub_model(
^^^^^^^^^^^^^^^
File "D:\conda_env\cog\Lib\site-packages\diffusers\pipelines\pipeline_loading_utils.py", line 700, in load_sub_model
loaded_sub_model = load_method(os.path.join(cached_folder, name), **loading_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Rain\AppData\Roaming\Python\Python312\site-packages\huggingface_hub\utils_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "D:\conda_env\cog\Lib\site-packages\diffusers\models\modeling_utils.py", line 774, in from_pretrained
accelerate.load_checkpoint_and_dispatch(
File "D:\conda_env\cog\Lib\site-packages\accelerate\big_modeling.py", line 613, in load_checkpoint_and_dispatch
load_checkpoint_in_model(
File "D:\conda_env\cog\Lib\site-packages\accelerate\utils\modeling.py", line 1806, in load_checkpoint_in_model
set_module_tensor_to_device(
File "D:\conda_env\cog\Lib\site-packages\accelerate\utils\modeling.py", line 249, in set_module_tensor_to_device
raise ValueError(f"{module} has no attribute {split}.")
ValueError: Attention(
(to_q): Linear(in_features=2432, out_features=2432, bias=True)
(to_k): Linear(in_features=2432, out_features=2432, bias=True)
(to_v): Linear(in_features=2432, out_features=2432, bias=True)
(add_k_proj): Linear(in_features=2432, out_features=2432, bias=True)
(add_v_proj): Linear(in_features=2432, out_features=2432, bias=True)
(add_q_proj): Linear(in_features=2432, out_features=2432, bias=True)
(to_out): ModuleList(
(0): Linear(in_features=2432, out_features=2432, bias=True)
(1): Dropout(p=0.0, inplace=False)
)
(to_add_out): Linear(in_features=2432, out_features=2432, bias=True)
) has no attribute norm_added_k.
Got the same... Just update accelerate and diffusers packages, it will work properly.