lora disable fuse on partially applied network

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-10-24 11:21:24 -04:00
parent ef2c42602c
commit 2a348908f2
3 changed files with 6 additions and 0 deletions
+1
View File
@@ -36,6 +36,7 @@
- fix full-screen image-viewer toolbar actions with control tab
- improve filename sanitization
- lora auto-detect low/high stage if not specified
- lora disable fuse on partially applied network
- fix networks display with extended characters, thanks @awsr
## Update for 2025-10-18
+1
View File
@@ -61,6 +61,7 @@ def load_diffusers(name: str, network_on_disk: network.NetworkOnDisk, lora_scale
try:
if lora_module is not None and isinstance(lora_module, list) and len(lora_module) > 0:
name = load_per_module(sd_model, network_on_disk.filename, adapter_name=name, lora_modules=lora_module)
sd_model._lora_partial = True # pylint: disable=protected-access
else:
sd_model.load_lora_weights(network_on_disk.filename, adapter_name=name)
except Exception as e:
+4
View File
@@ -78,4 +78,8 @@ def disable_fuse():
return True
if hasattr(shared.sd_model, 'transformer') and hasattr(shared.sd_model.transformer, 'quantization_config'):
return True
if hasattr(shared.sd_model, 'transformer_2') and hasattr(shared.sd_model.transformer_2, 'quantization_config'):
return True
if hasattr(shared.sd_model, '_lora_partial'):
return True
return shared.sd_model_type in fuse_ignore