ComfyUI > Nodes > comfyui-sdnq > SDNQ Sampler

ComfyUI Node: SDNQ Sampler

Class Name

SDNQSampler

Category
sampling/SDNQ
Author
EnragedAntelope (Account age: 516days)
Extension
comfyui-sdnq
Latest Updated
2025-12-23
Github Stars
0.06K

How to Install comfyui-sdnq

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

SDNQ Sampler Description

SDNQSampler: Integrates SDNQ quantized models in ComfyUI for efficient VRAM use and quality.

SDNQ Sampler:

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.

SDNQ Sampler Input Parameters:

model_path

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.

dtype_str

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.

memory_mode

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.

use_xformers

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.

enable_vae_tiling

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.

use_quantized_matmul

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.

SDNQ Sampler Output Parameters:

IMAGE

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.

SDNQ Sampler Usage Tips:

  • Ensure that the model_path is correctly set to a valid local file path to avoid loading errors.
  • Consider using float16 for dtype_str if you are looking to optimize for performance and have compatible hardware.
  • Set memory_mode to "gpu" if you have a capable GPU to take full advantage of the node's performance optimizations.
  • Enable use_xformers if you are working with models that have large attention layers to improve memory efficiency.
  • Use enable_vae_tiling for handling larger images to prevent memory overflow issues.

SDNQ Sampler Common Errors and Solutions:

"Model path not found"

  • Explanation: This error occurs when the specified model_path does not point to a valid file.
  • Solution: Verify that the model_path is correct and that the file exists at the specified location.

"Unsupported data type"

  • Explanation: This error indicates that the dtype_str provided is not supported by the node.
  • Solution: Ensure that you are using a supported data type, such as float32 or float16.

"Quantized MatMul failed"

  • Explanation: This error can occur if the quantized matrix multiplication is applied to components with incompatible dimensions.
  • Solution: Ensure that the model components being optimized are compatible with quantized operations, specifically avoiding text encoders with non-multiples of 8 dimensions.

SDNQ Sampler Related Nodes

Go back to the extension to check out more related nodes.
comfyui-sdnq
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 Models, enabling artists to harness the latest AI tools to create incredible art.