CalamitousFelicitousness
d2fd08fe3c
refactor(lora): add generic loaders for LoRA/LoKR/LoHA/OFT
...
Family loaders parameterized on per-arch resolve_targets callable and
prefix tuples. Build network keys as
"lora_transformer_" + path.replace(".", "_").
Fused-target handling:
- LoRA: chunk at load time, supports both equal and unequal ChunkSpec
- LoKR: dispatch to NetworkModuleLokrChunk (equal) or LokrSliceChunk
(unequal), materialize kron(w1, w2) lazily
- LoHA: NetworkModuleHadaChunk for equal only; Tucker-on-fused and
unequal skipped with warning
- OFT/BOFT: fused skipped with warning. Algorithm discriminated by
oft_blocks.ndim (3-D OFT, 4-D BOFT)
Plus try_load_chain umbrella for per-arch family-iteration wrappers.
2026-05-18 23:18:41 +01:00
CalamitousFelicitousness
cbaaf1c88c
refactor(lora): move NetworkModuleLokrSliceChunk to network_lokr
...
Lifts the slice variant from chroma_lora into network_lokr so the generic
LoKR loader can dispatch to either NetworkModuleLokrChunk (equal chunks)
or NetworkModuleLokrSliceChunk (unequal ranges) based on ChunkSpec shape.
chroma_lora keeps the same slice path through an updated import.
2026-05-18 23:18:31 +01:00
CalamitousFelicitousness
7c32d97121
refactor(lora): extract native adapter scaffolding to native_loader
...
Lifts the parts of the per-arch native loaders that are byte-identical
across z-image, chroma, ernie, and flux2 into a new shared module.
- Suffix and marker tables for all nine families
- SUFFIX_NORMALIZE (lora_A/lora_B to lora_down/lora_up)
- KNOWN_PREFIXES_DEFAULT and BARE_DIFFUSERS_PREFIX_USED sentinel
- ChunkSpec dataclass for fused-weight slicing (equal idx+total or
unequal start+end)
- unwrap_peft_wrapper and strip_peft_adapter_name
- has_marker, resolve_mapping, new_network, finalize_network, shapes_match
- Parameterized parse_key and group_by_suffixes
2026-05-18 23:18:22 +01:00
Disty0
a896719713
Fix dynamic quant with svd + hadamard combination
2026-05-18 23:31:18 +03:00
Disty0
069a1c927d
Fix dynamic quant
2026-05-18 22:44:50 +03:00
Disty0
051c66aa6f
ipex fix torch.compile
2026-05-18 21:38:09 +03:00
Vladimir Mandic
9fd27197b7
update changelog/todo
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2026-05-18 19:33:16 +02:00
Vladimir Mandic
fdda09c7e5
fix ui server log monitor
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2026-05-18 19:33:16 +02:00
Vladimir Mandic
b2223c7f8c
nunchaku improvements
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2026-05-18 19:33:16 +02:00
Disty0
927994d47d
gate recompile_limit behind torch version
2026-05-18 19:28:05 +03:00
Disty0
65b9c8803f
SDNQ use cache for hadamard matrix
2026-05-18 18:20:32 +03:00
Disty0
ac31b897b9
PyTorch ignores the global re_compile limit now
2026-05-18 17:53:27 +03:00
Disty0
e3b1eb71a1
cleanup
2026-05-18 17:10:31 +03:00
Disty0
c227d5fa10
SDNQ add Hadamard Rotation support
2026-05-18 17:06:11 +03:00
Vladimir Mandic
88583fe745
Merge pull request #4858 from awsr/typing-merge-1
...
Additional typing updates
2026-05-18 08:29:54 +02:00
CalamitousFelicitousness
10b652cc6c
revert stable cuda 13.2 to 13.0 (ampere segfault)
2026-05-18 03:25:06 +01:00
awsr
2a0f55e0b5
Additional minor typing
2026-05-17 11:14:55 -07:00
Vladimir Mandic
7ab3007e92
update torch==2.12 with cuda==13.2
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2026-05-17 20:14:35 +02:00
awsr
027133b3bd
Typing cleanup
2026-05-17 10:41:09 -07:00
awsr
5520e9555d
Typing and type narrowing
2026-05-17 10:40:28 -07:00
awsr
39db2cf706
processing_class typing and defaultdict
...
Use defaultdict for network_data to match usage elsewhere
2026-05-17 10:22:34 -07:00
awsr
ad0afa6fb9
processing_prompt typing
2026-05-17 10:21:39 -07:00
awsr
45f6027a92
sd_checkpoint typing
2026-05-17 10:21:01 -07:00
awsr
6e153e1980
Cast correct type for opts.lora_force_reload
2026-05-17 10:06:43 -07:00
awsr
8fed5afe62
Fix method signature
2026-05-17 10:06:31 -07:00
awsr
3ff0c6d8be
Add typing
2026-05-17 10:05:43 -07:00
awsr
4e5291b1f8
Document reason for type ignore
2026-05-17 09:55:38 -07:00
awsr
4944a296c2
Move extra_data type hint
2026-05-17 09:55:00 -07:00
awsr
25428ad176
Fix argument type inference and organize imports
2026-05-17 09:52:11 -07:00
Disty0
39b768564a
update ipex and rocm to torch 2.12
2026-05-17 18:26:19 +03:00
Vladimir Mandic
10febba1a2
Merge pull request #4857 from liutyi/dev
...
fix compatibility to sdnext-scheduler
2026-05-17 15:09:56 +02:00
Oleksandr Liutyi
72e23ebdf6
fix compatibility to sdnext-scheduler
2026-05-17 12:30:11 +00:00
Vladimir Mandic
2270580a40
improve settings search
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2026-05-17 09:59:38 +02:00
Vladimir Mandic
dd796552db
use snapshot path for downloaded model
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2026-05-17 09:14:50 +02:00
Vladimir Mandic
68f00d85ca
attention execution guard against cpu tensors
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2026-05-17 08:44:29 +02:00
Vladimir Mandic
d8433e53cd
fix custom vae loader
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2026-05-17 08:37:13 +02:00
Disty0
297ab4bb60
SDNQ Lora fix dtype
2026-05-16 13:13:41 +03:00
Vladimir Mandic
9baa986184
update readme
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2026-05-16 11:27:32 +02:00
Vladimir Mandic
f67562b912
- all guidance values set to -1 to enable using model defaults
...
- log default values used if not overriden by user
- rename inconsistent guidance variables:
p.cfg_scale
p.image_cfg_scale -> p.cfg_image
p.diffusers_guidance_rescale -> p.cfg_rescale
p.pag_scale -> p.cfg_true
p.pag_adaptive -> p.cfg_adaptive
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2026-05-16 11:06:23 +02:00
Vladimir Mandic
632032308d
add pruna placeholders
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2026-05-16 09:18:39 +02:00
Vladimir Mandic
7786b5de7d
fix GHSA
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2026-05-16 08:53:54 +02:00
Vladimir Mandic
ce726bf084
pil patches
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2026-05-16 08:32:45 +02:00
Vladimir Mandic
15de3307c6
Merge pull request #4847 from awsr/pillow-update
...
Update Pillow support to 12.2.0
2026-05-16 08:29:37 +02:00
Vladimir Mandic
4db62cc771
update xet and patch qk_norm defaults
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2026-05-16 08:27:11 +02:00
Vladimir Mandic
84cbc37659
gradio temp files guard
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2026-05-16 07:19:52 +02:00
Disty0
95ccc8e269
Revert re-added extensions
2026-05-15 21:32:09 +03:00
Disty0
8e11971572
Fix SDNQ Lora
2026-05-15 21:25:08 +03:00
Disty0
58891d3a4e
cleanup comments
2026-05-15 14:36:03 +03:00
Vladimir Mandic
c18844080f
add anima 1.0 base/turbo/sdnq
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2026-05-15 13:00:44 +02:00
Vladimir Mandic
3226acd1f0
fix anima loader
...
Signed-off-by: Vladimir Mandic <mandic00@live.com >
2026-05-15 12:38:48 +02:00