mirror of
https://github.com/vladmandic/automatic
synced 2026-09-17 08:19:11 +02:00
e45c23c031
Replaces chroma's four family loaders with thin wrappers binding native_loader's generics to chroma's prefix tuples and resolve_targets. resolve_targets folds the Flux-to-diffusers rename table and the two fused-weight splits into one path-resolution step: - img_attn.qkv / txt_attn.qkv: ChunkSpec(idx, total=3) for equal Q/K/V - single_blocks.linear1: ChunkSpec(start, end) for the unequal Q/K/V/proj_mlp partition QKV_DIMS and LINEAR1_DIMS stay as module-level constants (tests patch them for the scaled-down mock). Behavior changes: - LoKR on equal-chunk QKV now dispatches to NetworkModuleLokrChunk instead of NetworkModuleLokrSliceChunk (the slice variant was used pre-migration for both forms since chroma had no equal-chunk path). - LoHA on fused img_attn.qkv now binds via NetworkModuleHadaChunk instead of being skipped; the shared HadaChunk added in the flux2 PR is general for equal-chunks dispatch. parse_key returns (prefix_used, base, suffix) instead of the old (flat_key, suffix); rename happens in resolve_targets. test_static_rename_table replaced with test_resolve_targets_static_renames driving the same remappings through the new interface.