Skip to main content
The Create Hook LoRA node generates hook objects for applying LoRA (Low-Rank Adaptation) modifications to models. It loads a specified LoRA file and creates hooks that can adjust model and CLIP strengths, then combines these hooks with any existing hooks passed to it. The node efficiently manages LoRA loading by caching previously loaded LoRA files to avoid redundant operations.

Inputs

ParameterDescriptionData TypeRequiredRange
lora_nameThe name of the LoRA file to load from the loras directorySTRINGYesMultiple options available
strength_modelThe strength multiplier for model adjustments (default: 1.0)FLOATYes-20.0 to 20.0
strength_clipThe strength multiplier for CLIP adjustments (default: 1.0)FLOATYes-20.0 to 20.0
prev_hooksOptional existing hook group to combine with the new LoRA hooksHOOKSNoN/A
Parameter Constraints:
  • If both strength_model and strength_clip are set to 0, the node will skip creating new LoRA hooks and return the existing hooks unchanged
  • The node caches the last loaded LoRA file to optimize performance when the same LoRA is used repeatedly

Outputs

Output NameDescriptionData Type
HOOKSA hook group containing the combined LoRA hooks and any previous hooksHOOKS
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 42d5d776bfc9b239191952e2bce23513d183f904fc3c15039469381a547486f8