Commit Graph

13306 Commits

Author SHA1 Message Date
CalamitousFelicitousness dda7bb7bbc feat(flux2): native BOFT (butterfly-OFT) support
Discriminated from OFT by 4-D oft_blocks shape (boft_m, block_num,
block_size, block_size), mirroring LyCORIS algo_check. The cascade
of log_2(block_num)+1 Cayley rotations is applied via the
unflatten/transpose/flatten reshape sequence in NetworkModuleBOFT,
porting LyCORIS make_weight verbatim.
2026-05-10 00:05:37 +01:00
CalamitousFelicitousness 6359b2b5b4 feat(flux2): support base_model.model. and lycoris_ key prefixes
base_model.model. is the peft.save_pretrained wrapper; stripped
via _unwrap_peft_wrapper and re-parsed against the standard prefix
list (so the same code path handles whatever format peft wrapped).
lycoris_ is LyCORIS-standalone (e.g. SimpleTuner LoKR); base path
is an underscore-rendered diffusers path returned verbatim.
2026-05-10 00:05:37 +01:00
CalamitousFelicitousness 4d3699bab6 refactor(flux2): align dispatcher with z-image/chroma native pattern
Adds 'f2' to allow_native and dispatches all eight native loaders
through load_safetensors. lora_force_diffusers continues to route
through lora_diffusers.load_diffusers as the explicit PEFT escape
hatch.
2026-05-09 23:16:09 +01:00
CalamitousFelicitousness 434d6953cb feat(flux2): native Full loader
Loads diff (host-shape weight delta) and optional diff_b (bias delta).
Fused QKV is skipped: no NetworkModuleFullChunk exists.
2026-05-09 23:16:09 +01:00
CalamitousFelicitousness 2fc559d0bb feat(flux2): native Norm loader with loader-local layer-name stamping
Targets the elementwise-affine RMSNorms inside attention (norm_q,
norm_k, norm_added_q, norm_added_k). lora_convert.py:502 skips
network_layer_name on transformer norm modules outside SD3, so this
loader stamps it directly on the modules it binds — surgical, no
shared-code edit, no impact on modules a Norm adapter doesn't target.
2026-05-09 23:16:09 +01:00
CalamitousFelicitousness 5978716c98 feat(flux2): native GLoRA loader
Loads the four ab.weight tensors plus alpha. Fused QKV is skipped:
GLoRA's target-dependent term doesn't row-slice cleanly without
recomputing against a fused proxy weight.
2026-05-09 23:16:09 +01:00
CalamitousFelicitousness f57e7c39e2 feat(flux2): native IA3 loader
The .on_input marker disambiguates IA3 from other families that also
have .weight keys; the per-group gate insists on both. Fused QKV is
skipped with a warning.
2026-05-09 23:16:09 +01:00
CalamitousFelicitousness 877abbe406 feat(flux2): native OFT loader, skips fused-QKV with warning
Both kohya (oft_blocks + alpha-as-constraint) and LyCORIS (oft_diag)
layouts route through NetworkModuleOFT. Fused QKV in double_blocks is
skipped: the block-diagonal rotation's block_size = out_features /
num_blocks would need re-derivation per chunk to fit a Q/K/V split.
2026-05-09 23:16:09 +01:00
CalamitousFelicitousness b8af17ee1d feat(flux2): native LoHA loader with fused-QKV chunk support
Standard non-Tucker LoHAs route through NetworkModuleHadaChunk for
fused QKV in double_blocks. Tucker (CP-decomposed) variants on fused
targets are skipped with a warning. Single-block linear1 and non-QKV
double-block targets work for any LoHA layout.
2026-05-09 23:16:09 +01:00
CalamitousFelicitousness 63b61c0692 refactor(flux2): extract shared scaffolding for native adapter loaders
Adds per-family SUFFIX/MARKER tables and shared parse_key /
group_by_suffixes / resolve_targets helpers, mirroring the pattern
in pipelines/z_image/zimage_lora.py. try_load_lora and try_load_lokr
now share this scaffolding alongside the family loaders that follow.
2026-05-09 23:16:09 +01:00
CalamitousFelicitousness 7983c8ec72 feat(lora): add NetworkModuleHadaChunk for fused-weight LoHA targets
Slices w1a/w2a at the assigned chunk's row range and computes the
partial Hadamard product, mirroring NetworkModuleLokrChunk. Used
when LoHA targets a fused weight (e.g. img_attn.qkv) on models
that expose split Q/K/V modules.
2026-05-09 23:16:09 +01:00
CalamitousFelicitousness 1750a2881e fix(lora): use is-not-none check for ex_bias accumulation
Truthiness on a tensor raises when stacking multiple Norm/Full
adapters. Match the updown accumulation pattern five lines above.
2026-05-09 22:04:42 +01:00
CalamitousFelicitousness db4a345a1b fix(lora): set GLora dim so alpha scaling is applied
Without self.dim, NetworkModule.calc_scale returns 1.0 even when
alpha is present, silently dropping the trained scaling. Use
w1b.shape[0] as the rank, matching the network_lora and
network_hada conventions.
2026-05-09 22:04:42 +01:00
CalamitousFelicitousness 4aca63e841 fix(lora): guard OFT constraint for LyCORIS oft_diag files
LyCORIS files have self.constraint=None (only the kohya path
uses it). Wrap the .to() call to avoid the NoneType AttributeError.
2026-05-09 22:04:17 +01:00
Vladimir Mandic bdf2899955 Merge pull request #4836 from liutyi/dev
Reference image for JoyAi
2026-05-09 13:33:14 +02:00
Vladimir Mandic eb88f27a04 cleanup preview
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-09 13:32:29 +02:00
Oleksandr Liutyi dd70c2942e Reference image for JoyAI-Image-Edit 2026-05-09 08:22:14 +00:00
Vladimir Mandic 12d5ce65ee taesd preview modularize
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-09 10:15:26 +02:00
Oleksandr 15e634b5e0 Merge branch 'vladmandic:dev' into dev 2026-05-09 11:13:51 +03:00
Vladimir Mandic 4747ca2fc0 lora change detection improvements
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-09 09:38:54 +02:00
Oleksandr Liutyi ce40b4b703 fix image path for Step1X-Edit Covers in data/reference.json 2026-05-08 15:41:07 +00:00
Vladimir Mandic 8871f9a5a9 Merge pull request #4834 from liutyi/dev
VIBE-Image-Edit and Step1X-Edit Covers
2026-05-08 17:39:10 +02:00
Oleksandr Liutyi 5cbbac39e5 VIBE-Image-Edit and Step1X-Edit Covers 2026-05-08 15:34:08 +00:00
Vladimir Mandic 13e21b4c04 lint
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-08 14:50:05 +02:00
Vladimir Mandic 82e9745c65 add joyai-image-edit
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-08 14:44:00 +02:00
Vladimir Mandic 2e50671d69 networks load/download model track progress
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-08 14:43:39 +02:00
Vladimir Mandic 54ad469919 models and hfcache tables
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-08 13:58:35 +02:00
Vladimir Mandic 9dff73193e js callbacks avoid duplicates
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-08 13:00:39 +02:00
Vladimir Mandic f1b6e82ccf models table improvements
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-08 12:16:21 +02:00
Vladimir Mandic 8293a12137 fix ipex autocast
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-08 10:56:14 +02:00
Vladimir Mandic 74fc05c9f9 add sd-ultimate-upscale
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-08 10:16:17 +02:00
Vladimir Mandic d8f8c88c50 cache network thumbnails
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-08 08:46:18 +02:00
Vladimir Mandic e933ca3f4d Merge pull request #4831 from liutyi/dev
UltraFlux v1 model reference image
2026-05-08 08:36:37 +02:00
Oleksandr cc455910d3 Merge branch 'vladmandic:dev' into dev 2026-05-08 09:24:00 +03:00
Vladimir Mandic aca14ab2a0 fix step1x
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-08 08:01:31 +02:00
Vladimir Mandic e7946a65b2 fix invalid ipex device type
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-08 07:12:25 +02:00
Vladimir Mandic ca6e39749e Merge pull request #4833 from awsr/segmentation-fix
Fix detailer segmentation
2026-05-08 07:09:04 +02:00
CalamitousFelicitousness 688e217815 feat(processing): warn when distilled pipeline ignores cfg_scale 2026-05-07 22:22:05 +01:00
CalamitousFelicitousness 2fbe261634 fix(lint): drop unused f-prefix and add trailing newline 2026-05-07 22:21:58 +01:00
awsr 278990a3d2 Fix detailer segmentation 2026-05-07 13:36:45 -07:00
Oleksandr Liutyi 36c9a62d8e UltraFlux v1 model reference image 2026-05-07 09:18:37 +00:00
Vladimir Mandic bb5d3c45af fix lut
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-07 07:20:20 +02:00
Vladimir Mandic 25f8289a00 Merge pull request #4830 from awsr/shutdown-fix
Fix shutdown/restart behavior
2026-05-07 06:59:12 +02:00
awsr f496da6550 Fix shutdown/restart behavior 2026-05-06 20:48:40 -07:00
Disty0 704bf2a756 Fix upscaler namegen 2026-05-07 01:09:28 +03:00
Disty0 74c56da1d3 OpenVINO override diffusers_offload_mode to none 2026-05-07 00:51:35 +03:00
Vladimir Mandic 79be710838 update todo
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-06 09:16:03 +02:00
Vladimir Mandic 838e1ad7dc update changelog
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-06 09:14:01 +02:00
Vladimir Mandic a7d3723014 add lumina-dimmo
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-06 09:11:33 +02:00
Vladimir Mandic 75b0a4da59 add ultraflux
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-06 07:50:33 +02:00