Visit ComfyUI Online for ready-to-use ComfyUI environment
SDNQSampler: Integrates SDNQ quantized models in ComfyUI for efficient VRAM use and quality.
The SDNQSampler is a specialized node designed to load and utilize SDNQ quantized models within the ComfyUI framework. Developed by Disty0, this node is part of the ComfyUI-SDNQ custom node pack, which aims to provide significant VRAM savings of 50-75% while maintaining image quality. The SDNQSampler streamlines the process of generating images by integrating the loading and execution of quantized models into a single step. It leverages advanced quantization techniques, specifically optimized for transformer and UNet components, to enhance performance without compromising on output quality. This node is particularly beneficial for users looking to efficiently manage memory resources while working with high-quality image generation models.
The model_path parameter specifies the local file path to the pre-trained SDNQ model that you wish to load. This parameter is crucial as it directs the node to the correct model file, ensuring that the appropriate quantized model is used for image generation. There are no specific minimum or maximum values, but it must be a valid file path on your system.
The dtype_str parameter defines the data type to be used for the model's weights during loading. This can impact the precision and performance of the model, with options typically including data types like float32 or float16. The choice of data type can affect the balance between computational efficiency and model accuracy.
The memory_mode parameter determines where the model will be loaded, with options such as "gpu" or "cpu". This setting is important for optimizing performance based on your hardware capabilities, as loading the model onto a GPU can significantly speed up processing times compared to a CPU.
The use_xformers parameter is a boolean flag that indicates whether to use the xformers library for memory-efficient attention mechanisms. Enabling this option can lead to performance improvements, especially in models with large attention layers.
The enable_vae_tiling parameter is a boolean flag that, when enabled, allows for VAE tiling. This can be useful for handling larger images by processing them in smaller, more manageable tiles, thus optimizing memory usage.
The use_quantized_matmul parameter is a boolean flag that determines whether to apply quantized matrix multiplication optimizations. This is a key feature of the SDNQSampler, as it enhances performance by reducing computational load while maintaining model accuracy.
The IMAGE output parameter represents the final generated image produced by the SDNQSampler. This output is the culmination of loading the quantized model and executing the image generation process. The IMAGE output is crucial for users as it provides the visual result of the model's execution, ready for further use or analysis.
model_path is correctly set to a valid local file path to avoid loading errors.float16 for dtype_str if you are looking to optimize for performance and have compatible hardware.memory_mode to "gpu" if you have a capable GPU to take full advantage of the node's performance optimizations.use_xformers if you are working with models that have large attention layers to improve memory efficiency.enable_vae_tiling for handling larger images to prevent memory overflow issues.model_path does not point to a valid file.model_path is correct and that the file exists at the specified location.dtype_str provided is not supported by the node.float32 or float16.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.