Text-to-Image
Diffusers
English
Arabic
stable-diffusion-xl
sdxl
lora
king2
arabic
art
image-generation
fal-ai
Instructions to use RASHID778/king2-image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use RASHID778/king2-image with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("RASHID778/king2-image") prompt = "a futuristic royal palace at sunset, highly detailed, 8k, golden hour, epic composition" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
validation kernel error report
Browse files
examples/validation_error.txt
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Found an incompatible version of torchao. Found version 0.10.0, but only versions above 0.16.0 are supported
|
| 2 |
+
|
| 3 |
+
Traceback (most recent call last):
|
| 4 |
+
File "/kaggle/src/script.py", line 87, in <module>
|
| 5 |
+
main()
|
| 6 |
+
File "/kaggle/src/script.py", line 57, in main
|
| 7 |
+
pipe.load_lora_weights(MODEL, weight_name="pytorch_lora_weights.safetensors")
|
| 8 |
+
File "/usr/local/lib/python3.12/dist-packages/diffusers/loaders/lora_pipeline.py", line 647, in load_lora_weights
|
| 9 |
+
self.load_lora_into_unet(
|
| 10 |
+
File "/usr/local/lib/python3.12/dist-packages/diffusers/loaders/lora_pipeline.py", line 845, in load_lora_into_unet
|
| 11 |
+
unet.load_lora_adapter(
|
| 12 |
+
File "/usr/local/lib/python3.12/dist-packages/diffusers/loaders/peft.py", line 346, in load_lora_adapter
|
| 13 |
+
inject_adapter_in_model(
|
| 14 |
+
File "/usr/local/lib/python3.12/dist-packages/peft/mapping.py", line 88, in inject_adapter_in_model
|
| 15 |
+
peft_model = tuner_cls(
|
| 16 |
+
^^^^^^^^^^
|
| 17 |
+
File "/usr/local/lib/python3.12/dist-packages/peft/tuners/tuners_utils.py", line 315, in __init__
|
| 18 |
+
self.inject_adapter(self.model, adapter_name, low_cpu_mem_usage=low_cpu_mem_usage, state_dict=state_dict)
|
| 19 |
+
File "/usr/local/lib/python3.12/dist-packages/peft/tuners/tuners_utils.py", line 935, in inject_adapter
|
| 20 |
+
self._create_and_replace(
|
| 21 |
+
File "/usr/local/lib/python3.12/dist-packages/peft/tuners/lora/model.py", line 269, in _create_and_replace
|
| 22 |
+
new_module = self._create_new_module(lora_config, adapter_name, target, device_map=device_map, **kwargs)
|
| 23 |
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 24 |
+
File "/usr/local/lib/python3.12/dist-packages/peft/tuners/lora/model.py", line 418, in _create_new_module
|
| 25 |
+
new_module = dispatcher(target, adapter_name, config=lora_config, **kwargs)
|
| 26 |
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 27 |
+
File "/usr/local/lib/python3.12/dist-packages/peft/tuners/lora/torchao.py", line 142, in dispatch_torchao
|
| 28 |
+
if not is_torchao_available():
|
| 29 |
+
^^^^^^^^^^^^^^^^^^^^^^
|
| 30 |
+
File "/usr/local/lib/python3.12/dist-packages/peft/import_utils.py", line 143, in is_torchao_available
|
| 31 |
+
raise ImportError(
|
| 32 |
+
ImportError: Found an incompatible version of torchao. Found version 0.10.0, but only versions above 0.16.0 are supported
|