diffusers
98dfc1aa - [LoRA] Only swap lora_B in final_layer scale/shift remaps (Flux Control, HunyuanVideo) (#15307)

Commit
1 day ago
[LoRA] Only swap lora_B in final_layer scale/shift remaps (Flux Control, HunyuanVideo) (#15307) * [LoRA] Only swap lora_B in final_layer scale/shift remaps (Flux Control, HunyuanVideo) The original final layer orders its modulation (shift, scale) and diffusers' norm_out (scale, shift). The Flux Control and HunyuanVideo converters swapped the halves of lora_A as well as lora_B, which scrambles lora_A's rank dimension and gives a wrong delta. Swap only lora_B, as the kohya Flux converter already does. * Use minimal tensors in the Flux Control final layer LoRA test * Take the Flux Control LoRA block counts from the state dict and shrink its test --------- Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
Author
Parents
Loading