ComfyUI > Nodes > SDVN Comfy node > 🧬 Model Merge

ComfyUI Node: 🧬 Model Merge

Class Name

SDVN Model Merge

Category
📂 SDVN/🧬 Merge
Author
Stable Diffusion VN (Account age: 281days)
Extension
SDVN Comfy node
Latest Updated
2025-04-27
Github Stars
0.04K

How to Install SDVN Comfy node

Install this extension via the ComfyUI Manager by searching for SDVN Comfy node
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter SDVN Comfy node in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

🧬 Model Merge Description

Merge different AI models to create customized models with various merging strategies for enhanced artistic effects and performance.

🧬 Model Merge:

The SDVN Model Merge node is a powerful tool designed to facilitate the combination of different AI models, allowing you to create new, customized models by merging existing ones. This node is particularly useful for AI artists who want to experiment with different model configurations to achieve unique artistic effects or improve model performance. By leveraging various merging strategies, such as simple merging, weighted sum, and difference-based merging, the node provides flexibility in how models are combined. This capability enables you to fine-tune the balance between different model characteristics, ultimately enhancing the creative possibilities and output quality of your AI-generated art.

🧬 Model Merge Input Parameters:

Option

The Option parameter allows you to select the merging strategy to be used. It offers several options: "Merge Simple [ A ]", "Merge Sum [ A * (1

  • M) + B * M ]", "Merge Difference [ A + (B - C) * M ]", and "Lora Export [ A - B]". Each option represents a different method of combining models, affecting the final output's characteristics. This parameter is crucial for determining how the models will interact and blend together.

Checkpoint_A

The Checkpoint_A parameter specifies the first model checkpoint to be used in the merging process. It is selected from a list of available checkpoints, with "None" as the default value. This parameter is essential for loading the initial model that will be part of the merge.

Checkpoint_B

Similar to Checkpoint_A, the Checkpoint_B parameter designates the second model checkpoint for merging. It also defaults to "None" and is chosen from the available checkpoints. This parameter is necessary for providing the second model to be merged.

Checkpoint_C

The Checkpoint_C parameter is used when the selected merging option requires a third model, such as in the "Merge Difference" strategy. It defaults to "None" and is selected from the list of checkpoints. This parameter is important for operations that involve three models.

Multiplier_M

The Multiplier_M parameter is a floating-point value that influences the weight or intensity of the merging process. It ranges from -10.0 to 10.0, with a default value of 1.0. This parameter is critical for adjusting the contribution of each model in the merge, allowing for fine-tuning of the output.

Save

The Save parameter is a boolean that determines whether the merged model should be saved. It defaults to True, ensuring that the results of the merge are preserved for future use. This parameter is important for maintaining a record of successful merges.

Save_name

The Save_name parameter specifies the name under which the merged model will be saved. It defaults to "model_merge". This parameter is useful for organizing and identifying saved models.

Lora_rank

The Lora_rank parameter is an integer that sets the rank for Lora export operations, ranging from 1 to 4096 with a default of 64. This parameter is relevant when exporting models in Lora format, affecting the model's complexity and size.

model_A

The model_A parameter allows you to directly input a model to be used as the first model in the merge, bypassing the need for a checkpoint. This parameter provides flexibility in selecting models for merging.

model_B

Similar to model_A, the model_B parameter lets you input a second model directly for merging. This parameter is useful for cases where you have specific models in mind that are not saved as checkpoints.

model_C

The model_C parameter is used for inputting a third model directly, applicable in merging strategies that require three models. This parameter offers additional flexibility in model selection.

clip_A

The clip_A parameter allows you to input a CLIP model associated with the first model, which can be used in the merging process. This parameter is important for maintaining consistency between models and their associated CLIP models.

clip_B

The clip_B parameter is similar to clip_A, allowing you to input a CLIP model for the second model. This parameter ensures that the second model's CLIP model is considered in the merge.

clip_C

The clip_C parameter is used for inputting a CLIP model for the third model, applicable in certain merging strategies. This parameter helps maintain alignment between models and their CLIP counterparts.

vae

The vae parameter allows you to input a VAE model to be used in the merging process. This parameter is important for ensuring that the merged model has a compatible VAE component.

MBW

The MBW parameter is a string that specifies additional merging block weights, providing advanced control over the merging process. This parameter is useful for users who want to fine-tune the merging at a granular level.

🧬 Model Merge Output Parameters:

MODEL

The MODEL output parameter represents the final merged model. This output is the result of combining the input models according to the selected merging strategy and parameters. It is crucial for generating new AI models with desired characteristics.

CLIP

The CLIP output parameter provides the merged CLIP model, which is associated with the final merged model. This output is important for ensuring that the merged model has a compatible CLIP component, which can affect the model's performance in tasks involving text-to-image generation.

VAE

The VAE output parameter delivers the merged VAE model, which is part of the final merged model. This output is essential for maintaining the integrity and functionality of the merged model, particularly in tasks that involve image generation and transformation.

🧬 Model Merge Usage Tips:

  • Experiment with different Option settings to explore various merging strategies and discover which combination yields the best results for your specific artistic goals.
  • Adjust the Multiplier_M parameter to fine-tune the influence of each model in the merge, allowing you to control the balance between different model characteristics.
  • Use the Save and Save_name parameters to keep track of successful merges, making it easier to revisit and reuse effective model combinations.

🧬 Model Merge Common Errors and Solutions:

"Model not found"

  • Explanation: This error occurs when a specified model checkpoint cannot be located.
  • Solution: Ensure that the checkpoint file exists in the specified directory and that the file name is correct.

"Invalid Multiplier_M value"

  • Explanation: This error indicates that the Multiplier_M value is outside the allowed range.
  • Solution: Adjust the Multiplier_M value to be within the range of -10.0 to 10.0.

"Save failed"

  • Explanation: This error happens when the node is unable to save the merged model.
  • Solution: Check that the save directory exists and that you have write permissions. Also, ensure that the Save_name is valid and does not contain restricted characters.

🧬 Model Merge Related Nodes

Go back to the extension to check out more related nodes.
SDVN Comfy node
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.