Nodes/AUN ComfyUI Nodes/LoRA Stack With Triggers (Model+Clip)
ComfyUI Node

LoRA Stack With Triggers (Model+Clip)

Model + clip strength per slot, triggers included

By loz2754·Created 9 months ago·Updated 11 days ago· 7
LoRA Stack With Triggers (Model+Clip)
  • model
  • clip
  • MODEL
  • CLIP
  • selected LoRAs
  • labels
  • trigger words
  • trigger + prompt
◄num_slots4►
◄apply_stacktrue►
◄trigger_joiner, ►
◄dedupe_triggerstrue►
◄lora_1None►
◄strength_model_11.00►
◄strength_clip_11.00►
◄enabled_1true►
◄trigger_1►
◄lora_2None►
◄strength_model_21.00►
◄strength_clip_21.00►
◄enabled_2false►
◄trigger_2►
◄lora_3None►
◄strength_model_31.00►
◄strength_clip_31.00►
◄enabled_3false►
◄trigger_3►
◄lora_4None►
◄strength_model_41.00►
◄strength_clip_41.00►
◄enabled_4false►
◄trigger_4►
◄lora_5None►
◄strength_model_51.00►
◄strength_clip_51.00►
◄enabled_5false►
◄trigger_5►
◄lora_6None►
◄strength_model_61.00►
◄strength_clip_61.00►
◄enabled_6false►
◄trigger_6►
◄lora_7None►
◄strength_model_71.00►
◄strength_clip_71.00►
◄enabled_7false►
◄trigger_7►
◄lora_8None►
◄strength_model_81.00►
◄strength_clip_81.00►
◄enabled_8false►
◄trigger_8►
◄lora_9None►
◄strength_model_91.00►
◄strength_clip_91.00►
◄enabled_9false►
◄trigger_9►
◄lora_10None►
◄strength_model_101.00►
◄strength_clip_101.00►
◄enabled_10false►
◄trigger_10►
◄base_prompt►
◄selected_LoRAs►

This is the LoRA stack done properly, and the one AUN wants you actually using. AUNLoraStackWithTriggersModelClip takes the "one node, ten LoRA slots, per-slot trigger words" idea from the (now-deprecated) AUNLoraStackWithTriggers and fixes its biggest gap: every slot now has both a model strength and a clip strength, with an optional CLIP input. That matters because a lot of real-world LoRAs - style LoRAs especially - need to patch the text encoder as well as the model. The old node silently half-applied those; this one doesn't.

How it works

Ten slots, each with lora_N, strength_model_N, strength_clip_N, enabled_N, and trigger_N. Connect your model and (optionally) your clip, set num_slots to the number you need, and the node applies every enabled slot to both, in one shot. Per-slot toggles let you A/B individual LoRAs without deleting anything. When apply_stack is off, it returns the input model and CLIP unchanged and clears the text outputs - an instant "stack on/off" switch.

The trigger handling is the killer feature. trigger_joiner sets the separator between triggers, dedupe_triggers removes duplicates across slots and your base_prompt, and the outputs hand you everything: MODEL, CLIP, selected LoRAs, labels, trigger words, and trigger + prompt - the base prompt with the active slots' triggers appended, ready to wire straight into CLIP Text Encode. Set your prompt once; the trigger words stay in sync with whatever's enabled.

It's also the best-dressed node in this family UI-wise. Compact mode (double-click or right-click) hides the config behind an overlay, and in compact view you can drag a LoRA label onto another to swap their values - genuinely handy when you're trying out orderings, since LoRA application order changes the result.

Inputs and outputs

Inputs: model, optional clip, num_slots, apply_stack, trigger_joiner, dedupe_triggers, base_prompt, and the 10-slot set (lora_N / strength_model_N / strength_clip_N / enabled_N / trigger_N).

Outputs: MODEL, CLIP, selected LoRAs, labels, trigger words, trigger + prompt.

Installing it

Part of the AUN pack:

  • ComfyUI Manager: search "AUN ComfyUI Nodes", install, restart.
  • Manual: cd custom_nodes && git clone https://github.com/loz2754/AUN-ComfyUI-Nodes, then restart. Manual installs and ModuleNotFoundError: cv2? pip install -r custom_nodes/AUN-ComfyUI-Nodes/requirements.txt.

Common issues

The usual stack gotchas apply: strength_clip_N only does anything when a CLIP is connected, so if your text encoding looks wrong, check you actually wired the CLIP input. And trigger words are only useful if the prompt actually uses them - if you're not feeding trigger + prompt into your text encoder, the trigger plumbing is doing nothing for you. Order matters, so if two LoRAs fight, try dragging one ahead of the other rather than just dropping strengths.

CategoryAUN Nodes/Loras

Inputs (58)

NameTypeDefaultDescription
modelMODEL—
num_slotsINT41–10How many stack slots are active and visible.
apply_stackBOOLEANtrueWhen disabled, returns the input model unchanged and clears all LoRA-derived text outputs.
trigger_joinerSTRING, String used to join trigger words from active slots.
dedupe_triggersBOOLEANtrueRemove duplicate trigger entries across slots and base prompt while preserving order.
lora_1optCOMBONoneLoRA file for slot 1.
strength_model_1optFLOAT1.00-20–20Model strength for slot 1.
strength_clip_1optFLOAT1.00-20–20Clip strength for slot 1 when CLIP is connected.
enabled_1optBOOLEANtrueEnable LoRA slot 1.
trigger_1optSTRINGTrigger words for slot 1.
lora_2optCOMBONoneLoRA file for slot 2.
strength_model_2optFLOAT1.00-20–20Model strength for slot 2.
strength_clip_2optFLOAT1.00-20–20Clip strength for slot 2 when CLIP is connected.
enabled_2optBOOLEANfalseEnable LoRA slot 2.
trigger_2optSTRINGTrigger words for slot 2.
lora_3optCOMBONoneLoRA file for slot 3.
strength_model_3optFLOAT1.00-20–20Model strength for slot 3.
strength_clip_3optFLOAT1.00-20–20Clip strength for slot 3 when CLIP is connected.
enabled_3optBOOLEANfalseEnable LoRA slot 3.
trigger_3optSTRINGTrigger words for slot 3.
lora_4optCOMBONoneLoRA file for slot 4.
strength_model_4optFLOAT1.00-20–20Model strength for slot 4.
strength_clip_4optFLOAT1.00-20–20Clip strength for slot 4 when CLIP is connected.
enabled_4optBOOLEANfalseEnable LoRA slot 4.
trigger_4optSTRINGTrigger words for slot 4.
lora_5optCOMBONoneLoRA file for slot 5.
strength_model_5optFLOAT1.00-20–20Model strength for slot 5.
strength_clip_5optFLOAT1.00-20–20Clip strength for slot 5 when CLIP is connected.
enabled_5optBOOLEANfalseEnable LoRA slot 5.
trigger_5optSTRINGTrigger words for slot 5.
lora_6optCOMBONoneLoRA file for slot 6.
strength_model_6optFLOAT1.00-20–20Model strength for slot 6.
strength_clip_6optFLOAT1.00-20–20Clip strength for slot 6 when CLIP is connected.
enabled_6optBOOLEANfalseEnable LoRA slot 6.
trigger_6optSTRINGTrigger words for slot 6.
lora_7optCOMBONoneLoRA file for slot 7.
strength_model_7optFLOAT1.00-20–20Model strength for slot 7.
strength_clip_7optFLOAT1.00-20–20Clip strength for slot 7 when CLIP is connected.
enabled_7optBOOLEANfalseEnable LoRA slot 7.
trigger_7optSTRINGTrigger words for slot 7.
lora_8optCOMBONoneLoRA file for slot 8.
strength_model_8optFLOAT1.00-20–20Model strength for slot 8.
strength_clip_8optFLOAT1.00-20–20Clip strength for slot 8 when CLIP is connected.
enabled_8optBOOLEANfalseEnable LoRA slot 8.
trigger_8optSTRINGTrigger words for slot 8.
lora_9optCOMBONoneLoRA file for slot 9.
strength_model_9optFLOAT1.00-20–20Model strength for slot 9.
strength_clip_9optFLOAT1.00-20–20Clip strength for slot 9 when CLIP is connected.
enabled_9optBOOLEANfalseEnable LoRA slot 9.
trigger_9optSTRINGTrigger words for slot 9.
lora_10optCOMBONoneLoRA file for slot 10.
strength_model_10optFLOAT1.00-20–20Model strength for slot 10.
strength_clip_10optFLOAT1.00-20–20Clip strength for slot 10 when CLIP is connected.
enabled_10optBOOLEANfalseEnable LoRA slot 10.
trigger_10optSTRINGTrigger words for slot 10.
clipoptCLIP—
base_promptoptSTRINGOptional prompt text appended after all active trigger words.
selected_LoRAsoptSTRINGPass-through and concatenate selected_LoRAs text.

Outputs (6)

NameTypeDescription
MODELMODEL—
CLIPCLIP—
selected LoRAsSTRING—
labelsSTRING—
trigger wordsSTRING—
trigger + promptSTRING—