Files
automatic/modules/lora
CalamitousFelicitousness 4c3f4db129 refactor(lora): collapse native dispatcher to a registry
Five if-blocks in lora_load.load_safetensors reduce to one lookup in
_NATIVE_DISPATCH, a string -> module-path map keyed by shared.sd_model_type.

Each entry's module exposes try_load(name, network_on_disk, lora_scale).
flux2 / zimage / chroma / ernie use the umbrella that binds native_loader's
generics via try_load_chain. Anima keeps its own try_load (aliased to
try_load_lora) since its multi-component routing doesn't fit the shared
suffix-table model.

New native archs land by adding one entry to the dict and shipping a
try_load.
2026-05-18 23:38:37 +01:00
..
2026-02-19 09:15:37 +01:00
2026-04-29 11:20:22 +02:00
2026-02-19 11:09:13 +01:00
2026-02-19 09:15:37 +01:00
2024-12-01 10:54:51 -05:00
2026-01-14 16:25:56 +03:00
2024-11-29 08:01:26 -05:00