Visit ComfyUI Online for ready-to-use ComfyUI environment
Mecha Merge Node Pack offers model merging nodes utilizing sd-mecha, a memory-efficient state dict recipe merger, enhancing performance and resource management in model integration tasks.
Welcome to comfy-mecha, a comprehensive model merging extension for ComfyUI designed with a focus on low memory usage. This extension allows AI artists to create complex model merging recipes without the need to save multiple intermediate merges to disk. With comfy-mecha, you can merge LoRAs (Low-Rank Adaptation) to models, utilize block weights, and much more. This tool is particularly useful for those looking to streamline their workflow and manage memory efficiently while working with various AI models.
At its core, comfy-mecha operates by creating and executing "recipes" for merging models. Think of a recipe as a set of instructions that tells the system how to combine different models or parts of models. Instead of loading all models into memory at once, comfy-mecha processes each part individually, saving memory and allowing for more complex operations on less powerful hardware.
For example, if you want to blend two models with different strengths, you can create a recipe that specifies how much of each model to use. This recipe can then be executed to produce a new, merged model that combines the best features of both.
... Mecha Recipe
: Returns a merge recipe.Mecha Merger
: Takes a MECHA_RECIPE
as input and returns a UNet and a text encoder.Serializer
: Converts a MECHA_RECIPE
into a textual format.Deserializer
: Converts a textual recipe back into a MECHA_RECIPE
.Mecha Model Recipe
: Loads a model as a recipe.Mecha Lora Recipe
: Loads a LoRA model as a recipe.Mecha Recipe List
: Combines multiple recipes into a list.Blocks Mecha Hyper
: Allows different hyperparameters for each block of the models.Float Mecha Hyper
: Uses the same float value for all blocks.mecha_extensions
directory. These scripts will be executed before creating the comfy nodes.comfy-mecha supports various model architectures, including:
model_arch
parameter is correctly set for each model.Mecha Model Recipe
node and ensure the correct model_arch
parameter is set.Mecha Recipe List
node to combine multiple recipes.For additional resources, tutorials, and community support, you can visit the following links:
© Copyright 2024 RunComfy. All Rights Reserved.