refactor(lora): remove the lora_apply_te setting

Text encoder networks now apply unconditionally in the native path.

- remove the option, the per-request parameter and the control threading
- collapse activate_filtered into plain activate at all call sites
- drop the toggle from the prompt embed cache key
- register the retired key so existing configs load without warnings
This commit is contained in:
CalamitousFelicitousness
2026-07-18 04:16:29 +01:00
parent c42adcf680
commit 55c3eb1325
10 changed files with 8 additions and 24 deletions
+1 -4
View File
@@ -130,11 +130,8 @@ class PromptEmbedder:
# unpack EN data in case of TE LoRA
en_data = p.network_data
en_data = [idx.items for item in en_data.values() for idx in item]
apply_te = getattr(p, 'lora_apply_te', None)
if apply_te is None:
apply_te = shared.opts.lora_apply_te
effective_batch = 1 if self.allsame else self.batchsize
key = str([self.prompts, self.negative_prompts, effective_batch, self.clip_skip, self.steps, en_data, apply_te])
key = str([self.prompts, self.negative_prompts, effective_batch, self.clip_skip, self.steps, en_data])
item = cache.get(key)
if not item:
if not any(flatten(emb) for emb in [self.prompt_embeds,