ComfyUI > Nodes > ComfyUI > ModelMergeMochiPreview

ComfyUI Node: ModelMergeMochiPreview

Class Name

ModelMergeMochiPreview

Category
advanced/model_merging/model_specific
Author
ComfyAnonymous (Account age: 872days)
Extension
ComfyUI
Latest Updated
2025-05-13
Github Stars
76.71K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI 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

ModelMergeMochiPreview Description

Facilitates advanced merging of models within Mochi framework, enabling precise blending for customized outcomes.

ModelMergeMochiPreview:

The ModelMergeMochiPreview node is designed to facilitate the merging of two models, specifically tailored for advanced model merging tasks within the Mochi framework. This node allows you to blend two models by adjusting various parameters that influence different components of the models, such as positional frequencies and embedding layers. The primary goal of this node is to provide a flexible and precise method for combining models, enabling you to fine-tune the merging process to achieve desired outcomes. By offering control over specific layers and components, ModelMergeMochiPreview empowers you to create a customized model that leverages the strengths of both input models, potentially enhancing performance and achieving unique results.

ModelMergeMochiPreview Input Parameters:

model1

This parameter represents the first model to be merged. It serves as one of the two primary inputs for the merging process. The model should be of type MODEL, and it acts as the base model onto which patches from the second model will be applied.

model2

This parameter represents the second model to be merged. Like model1, it is of type MODEL and provides the patches that will be integrated into the first model. The merging process involves blending components from this model into model1 based on specified ratios.

pos_frequencies.

This parameter controls the blending ratio for the positional frequencies component of the models. It is a FLOAT with a default value of 1.0, a minimum of 0.0, and a maximum of 1.0, adjustable in steps of 0.01. Adjusting this parameter affects how much influence the positional frequencies from model2 have in the merged model.

t_embedder.

This parameter manages the blending ratio for the time embedding component. It is a FLOAT with similar constraints as pos_frequencies. Adjusting this parameter determines the extent to which the time embedding from model2 is incorporated into the merged model.

t5_y_embedder.

This parameter controls the blending ratio for the T5 Y embedder component. It is a FLOAT with the same range and step as the previous parameters. Modifying this parameter affects the influence of the T5 Y embedder from model2 in the final model.

t5_yproj.

This parameter manages the blending ratio for the T5 Y projection component. It is a FLOAT with the same constraints as the other parameters. Adjusting this parameter determines how much of the T5 Y projection from model2 is included in the merged model.

blocks.{i}.

These parameters, ranging from blocks.0. to blocks.47., control the blending ratios for individual blocks within the models. Each is a FLOAT with a default value of 1.0, a minimum of 0.0, and a maximum of 1.0, adjustable in steps of 0.01. These parameters allow for fine-grained control over the merging process, enabling you to specify the influence of each block from model2 in the final model.

final_layer.

This parameter controls the blending ratio for the final layer of the models. It is a FLOAT with the same range and step as the other parameters. Adjusting this parameter affects the influence of the final layer from model2 in the merged model.

ModelMergeMochiPreview Output Parameters:

MODEL

The output of the ModelMergeMochiPreview node is a merged model of type MODEL. This output represents the result of blending the two input models based on the specified parameters. The merged model combines elements from both model1 and model2, potentially enhancing performance or achieving specific artistic or functional goals.

ModelMergeMochiPreview Usage Tips:

  • Experiment with different blending ratios for specific components to achieve the desired balance between the two models. This can help in fine-tuning the model for specific tasks or artistic styles.
  • Use the blocks.{i}. parameters to control the influence of individual blocks from model2. This allows for detailed customization and can be particularly useful when certain blocks are known to contribute specific features or capabilities.

ModelMergeMochiPreview Common Errors and Solutions:

Error: "Model type mismatch"

  • Explanation: This error occurs when the input models are not of the expected MODEL type.
  • Solution: Ensure that both model1 and model2 are correctly loaded and are of the MODEL type before attempting to merge them.

Error: "Invalid parameter value"

  • Explanation: This error arises when a parameter is set outside its allowed range.
  • Solution: Check that all FLOAT parameters are within the specified range of 0.0 to 1.0 and adjust them accordingly.

Error: "Merge operation failed"

  • Explanation: This error can occur if there is an issue during the merging process, possibly due to incompatible model structures.
  • Solution: Verify that the models are compatible for merging and that all required parameters are correctly set. If the problem persists, consider simplifying the merge by adjusting fewer parameters at a time.

ModelMergeMochiPreview Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
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.