mirror of
https://github.com/vladmandic/automatic
synced 2026-09-17 08:19:11 +02:00
9c85902ee7
ai-toolkit DoRA saves lora_A/B plus a 1-D per-output magnitude key in place of alpha; PEFT and diffusers name the same quantity lora_magnitude_vector. Neither key was in the suffix table, so such adapters loaded as plain LoRA with the magnitude renormalization silently missing. The semantics match LyCORIS wd_on_out=True row norms, so both keys convert onto the existing dora_scale path. - accept .magnitude and .lora_magnitude_vector in LORA_SUFFIXES and convert at group level in try_load_lora - reshape 1-D vectors to (out, 1): on square layers the apply-time orientation detection would otherwise renormalize the wrong axis - cover square-layer numeric equality, fused-qkv slicing and the PEFT key form in the offline suite