Files
CalamitousFelicitousness 4554b9a277 fix(lora): apply te networks before encode and honor lora_apply_te
Network activation ran after prompt encoding, so text encoder lora
weights never affected embeds on the first generation and the stale
result was then served from the embed cache. The trailing unfiltered
activate in network_load also overrode the te exclude filter, so the
lora_apply_te setting was never honored.

- parse and activate networks in process_base before pipeline args are built
- activate_filtered gates text encoder components on per-request or global
  lora_apply_te; used by base, hires, detailer and faceid call sites
- network_load accepts activate=False for callers that run their own
  deactivate/activate sequence with include/exclude
- network_activate walks excluded components in restore-only mode so a
  filtered text encoder reverts to backup instead of keeping stale deltas
- loaded_loras cache is single-entry since per-filter entries go stale when
  the setting toggles
- prompt embed cache key includes the effective lora_apply_te value
2026-07-08 03:06:04 +01:00
..
2026-03-27 14:00:46 +01:00
2026-02-19 11:09:13 +01:00
2026-06-04 12:36:10 +02:00
2025-04-08 16:31:51 -04:00
2026-03-24 03:46:26 -07:00
2026-02-19 11:09:13 +01:00
2026-02-19 09:15:37 +01:00
2025-10-29 11:40:20 -04:00
2026-02-19 11:09:13 +01:00