-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
Hello :)
So, after fixing #2206 i executed flux_extract_lora.py from sd3 branch
and lora was saved successfully.
Command to extract lora
python flux_extract_lora.py --save_to pixelwave_flux1_dev_fp8_03_512.safetensors --model_org flux1-dev-fp8.safetensors --model_tuned pixelwave_flux1_dev_fp8_03.safetensors --device cpu --dim 512 --save_precision fp16
After i tried to apply extracted lora in generation proccess in ComfyUI or stable-diffusion.cpp there is an error info in log that lora isn't applied
ComfyUI - lora key not loaded
Using pytorch attention in VAE
Using pytorch attention in VAE
VAE load device: xpu:0, offload device: cpu, dtype: torch.bfloat16
Requested to load FluxClipModel_
loaded completely 9.5367431640625e+25 9319.4814453125 True
CLIP/text encoder model load device: cpu, offload device: cpu, current: cpu, dtype: torch.float16
gguf qtypes: F32 (471), Q6_K (304), F16 (5)
model weight dtype torch.bfloat16, manual cast: None
model_type FLUX
lora key not loaded: lora_unet_model_diffusion_model_double_blocks_0_img_attn_proj.alpha
lora key not loaded: lora_unet_model_diffusion_model_double_blocks_0_img_attn_proj.lora_down.weight
lora key not loaded: lora_unet_model_diffusion_model_double_blocks_0_img_attn_proj.lora_up.weight
lora key not loaded: lora_unet_model_diffusion_model_double_blocks_0_img_attn_qkv.alpha
lora key not loaded: lora_unet_model_diffusion_model_double_blocks_0_img_attn_qkv.lora_down.weight
lora key not loaded: lora_unet_model_diffusion_model_double_blocks_0_img_attn_qkv.lora_up.weight
stable-diffusion.cpp - unused lora tensor
[WARN ] lora.hpp:860 - unused lora tensor |lora.model_diffusion_model_model_diffusion_model_double_blocks_0_img_attn_proj.alpha|
(f16): shape(1, 1, 1, 1)
[WARN ] lora.hpp:860 - unused lora tensor |lora.model_diffusion_model_model_diffusion_model_double_blocks_0_img_attn_proj.lora_down.weight|
(f16): shape(3072, 512, 1, 1)
[WARN ] lora.hpp:860 - unused lora tensor |lora.model_diffusion_model_model_diffusion_model_double_blocks_0_img_attn_proj.lora_up.weight|
(f16): shape(512, 3072, 1, 1)
[WARN ] lora.hpp:860 - unused lora tensor |lora.model_diffusion_model_model_diffusion_model_double_blocks_0_img_attn_qkv.alpha|
(f16): shape(1, 1, 1, 1)
[WARN ] lora.hpp:860 - unused lora tensor |lora.model_diffusion_model_model_diffusion_model_double_blocks_0_img_attn_qkv.lora_down.weight|
(f16): shape(3072, 512, 1, 1)
[WARN ] lora.hpp:860 - unused lora tensor |lora.model_diffusion_model_model_diffusion_model_double_blocks_0_img_attn_qkv.lora_up.weight|
(f16): shape(512, 9216, 1, 1)
[WARN ] lora.hpp:860 - unused lora tensor |lora.model_diffusion_model_model_diffusion_model_double_blocks_0_img_mlp_0.alpha|
(f16): shape(1, 1, 1, 1)
[WARN ] lora.hpp:860 - unused lora tensor |lora.model_diffusion_model_model_diffusion_model_double_blocks_0_img_mlp_0.lora_down.weight|
(f16): shape(3072, 512, 1, 1)
[WARN ] lora.hpp:860 - unused lora tensor |lora.model_diffusion_model_model_diffusion_model_double_blocks_0_img_mlp_0.lora_up.weight|
(f16): shape(512, 12288, 1, 1)
full log of stable-diffusion.cpp.log
pip list
Package Version
--------------------------- -----------------
accelerate 1.10.1
aiohappyeyeballs 2.6.1
aiohttp 3.12.15
aiosignal 1.4.0
alembic 1.16.5
annotated-types 0.7.0
appdirs 1.4.4
attrs 25.3.0
autocommand 2.2.2
av 15.1.0
cffi 2.0.0
charset-normalizer 3.4.3
comfyui-embedded-docs 0.2.6
comfyui_frontend_package 1.26.13
comfyui_workflow_templates 0.1.86
contourpy 1.3.3
CppHeaderParser 2.7.4
cryptography 46.0.1
cycler 0.12.1
diffusers 0.35.1
einops 0.8.1
filelock 3.19.1
fonttools 4.60.0
frozenlist 1.7.0
fsspec 2025.9.0
gguf 0.17.1
gmpy2 2.2.1
greenlet 3.2.4
hf-xet 1.1.10
huggingface-hub 0.35.1
idna 3.10
importlib_metadata 8.7.0
intel_extension_for_pytorch 2.8.10+git0933033
ipex_to_cuda 0.0.1
jaraco.collections 5.1.0
jaraco.context 6.0.1
jaraco.functools 4.1.0
jaraco.text 4.0.0
Jinja2 3.1.6
jsonschema 4.25.1
jsonschema-specifications 2025.9.1
kiwisolver 1.4.7
kornia 0.8.1
kornia_rs 0.1.9
lit 20.1.0.dev0
Mako 1.3.10
MarkupSafe 3.0.2
matplotlib 3.10.6
more-itertools 10.8.0
mpmath 1.3.0
multidict 6.6.4
networkx 3.5
numpy 2.3.3
packaging 25.0
pandas 2.3.1
pillow 11.3.0
pip 25.2
platformdirs 4.4.0
ply 3.11
pooch 1.8.2
propcache 0.3.2
psutil 7.1.0
py-cpuinfo 9.0.0
pybind11 3.0.1
pycparser 2.23
pydantic 2.11.9
pydantic_core 2.33.2
pydantic-settings 2.11.0
pyparsing 3.2.5
python-dateutil 2.9.0
python-dotenv 1.1.1
pytz 2025.2
PyYAML 6.0.3
referencing 0.36.2
regex 2025.9.18
requests 2.32.5
rpds-py 0.27.1
safetensors 0.6.2
scipy 1.16.2
sentencepiece 0.2.1
setuptools 80.9.0
six 1.17.0
soundfile 0.13.1
spandrel 0.4.1
SQLAlchemy 2.0.43
sympy 1.14.0
TBB 0.2
tokenizers 0.22.1
toml 0.10.2
torch 2.8.0
torchaudio 2.8.0a0
torchsde 0.2.6
torchvision 0.23.0a0
tqdm 4.67.1
trampoline 0.1.2
transformers 4.56.2
typing_extensions 4.15.0
typing-inspection 0.4.1
tzdata 2025.2.post0
urllib3 2.5.0
wheel 0.45.1
yarl 1.20.1
zipp 3.23.0
Please, if you have spare time for this issue, tell can this issue with lora be resolved or it needed to be addressed to ComfyUI/stable-diffusion.cpp?
Metadata
Metadata
Assignees
Labels
No labels