Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates partial loading of UNet model for optimized memory usage and computational efficiency in ComfyUI framework.
The MZ_Flux1PartialLoad_Patch
node is designed to facilitate the partial loading of a model's UNet architecture, optimizing memory usage and computational efficiency. This node is particularly useful for AI artists working with large models who need to manage limited GPU resources effectively. By allowing partial loading, it ensures that only the necessary parts of the model are loaded into memory, thus reducing the overall memory footprint and enabling smoother performance. This node is part of the FluxExt extension by MinusZone, which aims to enhance the capabilities of the ComfyUI framework.
This parameter represents the model that you want to partially load. It is a required input and should be of type MODEL
. The model is the core component that will undergo partial loading to optimize memory usage.
This integer parameter controls the size of the double blocks in CUDA. It has a minimum value of 0, a maximum value of 16, and a default value of 7. Adjusting this parameter can impact the memory allocation and performance of the model, with higher values potentially increasing memory usage but also improving computational efficiency.
This integer parameter controls the size of the single blocks in CUDA. It has a minimum value of 0, a maximum value of 37, and a default value of 7. Similar to the double_blocks_cuda_size
, this parameter affects memory allocation and performance, with higher values potentially leading to better performance at the cost of increased memory usage.
The output of this node is a partially loaded model of type MODEL
. This output is the optimized version of the input model, with only the necessary parts loaded into memory, thus reducing the overall memory footprint and improving performance.
double_blocks_cuda_size
and single_blocks_cuda_size
parameters based on your available GPU memory. Start with the default values and incrementally increase them to find the optimal balance between performance and memory usage.ComfyUI_bitsandbytes_NF4
extension is not installed.ComfyUI_bitsandbytes_NF4
extension from the provided GitHub repository to resolve this issue.double_blocks_cuda_size
and single_blocks_cuda_size
to lower the memory usage, or try using a GPU with more memory.double_blocks_cuda_size
and single_blocks_cuda_size
to ensure they are within the specified ranges (0-16 for double blocks and 0-37 for single blocks).© Copyright 2024 RunComfy. All Rights Reserved.