R
RunPod10mo ago
Don

unsupported model error

in this repo https://github.com/runpod-workers/worker-stable_diffusion_v1 if i use this model id it's working emilianJR/CyberRealistic_V3 but if i use this misri/cyberrealistic_v41BackToBasics it's not working. i am new to diffusers please help me
GitHub
GitHub - runpod-workers/worker-stable_diffusion_v1: 🖼️ | RunPod wor...
🖼️ | RunPod worker for all Stable Diffusion v1 endpoints. - GitHub - runpod-workers/worker-stable_diffusion_v1: 🖼️ | RunPod worker for all Stable Diffusion v1 endpoints.
5 Replies
ashleyk
ashleyk10mo ago
What do you mean "it's not working". What happens when you try it?
Don
DonOP10mo ago
i get below error when i try to build docker file with misri/cyberrealistic_v41BackToBasics but when i try with emilianJR/CyberRealistic_V3 it run successfully
=> ERROR [ 7/10] RUN python /model_fetcher.py --model_url=https://huggingface.co/stablediffusionapi/cyberrealistic-41 51.0s
------
> [ 7/10] RUN python /model_fetcher.py --model_url=https://huggingface.co/stablediffusionapi/cyberrealistic-41:

49.69 Traceback (most recent call last):
49.69 File "/model_fetcher.py", line 70, in <module>
49.70 download_model(args.model_url)
49.70 File "/model_fetcher.py", line 48, in download_model
49.70 StableDiffusionPipeline.from_pretrained(
49.70 File "/usr/local/lib/python3.10/dist-packages/diffusers/pipelines/pipeline_utils.py", line 739, in from_pretrained
49.70 loaded_sub_model = load_method(os.path.join(cached_folder, name), **loading_kwargs)
49.70 File "/usr/local/lib/python3.10/dist-packages/diffusers/models/modeling_utils.py", line 553, in from_pretrained
49.70 set_module_tensor_to_device(model, param_name, param_device, value=param)
49.70 File "/usr/local/lib/python3.10/dist-packages/accelerate/utils/modeling.py", line 106, in set_module_tensor_to_device
49.70 new_module = getattr(module, split)
49.70 File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1269, in __getattr__
49.70 raise AttributeError("'{}' object has no attribute '{}'".format(
49.70 AttributeError: 'AttentionBlock' object has no attribute 'to_q'
------
Dockerfile:54
--------------------
52 | # Fetch the model
53 | COPY builder/model_fetcher.py /model_fetcher.py
54 | >>> RUN python /model_fetcher.py --model_url=${MODEL_URL}
55 | RUN rm /model_fetcher.py
56 |
--------------------
ERROR: failed to solve: process "/bin/bash -c python /model_fetcher.py --model_url=${MODEL_URL}" did not complete successfully: exit code: 1
=> ERROR [ 7/10] RUN python /model_fetcher.py --model_url=https://huggingface.co/stablediffusionapi/cyberrealistic-41 51.0s
------
> [ 7/10] RUN python /model_fetcher.py --model_url=https://huggingface.co/stablediffusionapi/cyberrealistic-41:

49.69 Traceback (most recent call last):
49.69 File "/model_fetcher.py", line 70, in <module>
49.70 download_model(args.model_url)
49.70 File "/model_fetcher.py", line 48, in download_model
49.70 StableDiffusionPipeline.from_pretrained(
49.70 File "/usr/local/lib/python3.10/dist-packages/diffusers/pipelines/pipeline_utils.py", line 739, in from_pretrained
49.70 loaded_sub_model = load_method(os.path.join(cached_folder, name), **loading_kwargs)
49.70 File "/usr/local/lib/python3.10/dist-packages/diffusers/models/modeling_utils.py", line 553, in from_pretrained
49.70 set_module_tensor_to_device(model, param_name, param_device, value=param)
49.70 File "/usr/local/lib/python3.10/dist-packages/accelerate/utils/modeling.py", line 106, in set_module_tensor_to_device
49.70 new_module = getattr(module, split)
49.70 File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1269, in __getattr__
49.70 raise AttributeError("'{}' object has no attribute '{}'".format(
49.70 AttributeError: 'AttentionBlock' object has no attribute 'to_q'
------
Dockerfile:54
--------------------
52 | # Fetch the model
53 | COPY builder/model_fetcher.py /model_fetcher.py
54 | >>> RUN python /model_fetcher.py --model_url=${MODEL_URL}
55 | RUN rm /model_fetcher.py
56 |
--------------------
ERROR: failed to solve: process "/bin/bash -c python /model_fetcher.py --model_url=${MODEL_URL}" did not complete successfully: exit code: 1
Don
DonOP10mo ago
i think it has something to do with this tag stable-diffusion-diffusers. model with this tag run successfully. i might be wrong.
No description
No description
Don
DonOP10mo ago
do you know how can i convert model so that i might have that tag? or some other solution for this problem?
ashleyk
ashleyk10mo ago
No clue, seems to be incompatible with the endpoint so you probably can't use it
Want results from more Discord servers?
Add your server