Visit ComfyUI Online for ready-to-use ComfyUI environment
Specialized node merging LoRA models for AI art, offering flexibility in integration and configuration.
LoraMerger| LoRA Merge 🍌 is a specialized node designed to merge two Low-Rank Adaptation (LoRA) models, which are commonly used in AI art generation to fine-tune large pre-trained models. This node allows you to combine the strengths of two different LoRA models into a single, more powerful model. By leveraging different merging modes such as addition, concatenation, and Singular Value Decomposition (SVD), LoraMerger| LoRA Merge 🍌 provides flexibility in how the models are integrated. This can be particularly useful for artists looking to blend different styles or enhance specific features in their AI-generated artwork. The node also supports various configurations for rank, threshold, device, and data type, making it adaptable to different computational environments and precision requirements.
This is the first LoRA model that you want to merge. It is a required input and serves as the primary model in the merging process.
This is the second LoRA model that you want to merge with the first one. It is an optional input, and if not provided, the node will only use lora_1
for the merging process.
This parameter determines the merging strategy to be used. The available options are "add", "concat", and "svd". "Add" will sum the weights of the two models, "concat" will concatenate them, and "svd" will use Singular Value Decomposition for a more sophisticated merging. The default value is "add".
This integer parameter specifies the rank for the SVD merging mode. It controls the dimensionality of the merged model. The default value is 16, with a minimum of 1 and a maximum of 320. This parameter is only relevant when the merging mode is set to "svd".
This floating-point parameter sets the threshold for the SVD merging mode. It helps in determining the significance of singular values during the decomposition. The default value is 1.0, with a range from 0 to 1, and a step size of 0.01. This parameter is only relevant when the merging mode is set to "svd".
This parameter specifies the computational device to be used for the merging process. The available options are "cuda" for GPU and "cpu" for CPU. The default value is "cuda".
This parameter sets the data type for the merging process. The available options are "float32", "float16", and "bfloat16". The default value is "float32".
The output is a single merged LoRA model. This model combines the features and strengths of the input LoRA models based on the specified merging mode and parameters. It can be used for further fine-tuning or directly in AI art generation tasks.
lora_1
and lora_2
are correctly loaded and contain the necessary keys for merging.mode
parameter and ensure it is set to one of the supported values: "add", "concat", or "svd".device
parameter to "cpu".dtype
parameter is set to one of the supported values: "float32", "float16", or "bfloat16".© Copyright 2024 RunComfy. All Rights Reserved.