ComfyUI Node
SDNQ Sampler
Load SDNQ quantized models and generate images with 50-75% VRAM savings. Supports FLUX, SD3, SDXL, video models, and more.
SDNQ Sampler
- image1
- image2
- image3
- image4
- image
- latent
◄model_selectionFLUX.1-dev-qint8►
◄custom_model_path►
◄prompt►
◄negative_promptblurry, low quality, distorted, deformed, ugly, bad anatomy, bad hands, text, watermark, signature►
◄steps25►
◄cfg7.0►
◄width1024►
◄height1024►
◄seed0►
◄schedulerDPMSolverMultistepScheduler►
◄dtypebfloat16►
◄memory_modebalanced►
◄auto_downloadtrue►
◄lora_selection[None]►
◄lora_custom_path►
◄lora_strength1.00►
◄lora2_selection[None]►
◄lora2_custom_path►
◄lora2_strength1.00►
◄lora3_selection[None]►
◄lora3_custom_path►
◄lora3_strength1.00►
◄lora4_selection[None]►
◄lora4_custom_path►
◄lora4_strength1.00►
◄lora5_selection[None]►
◄lora5_custom_path►
◄lora5_strength1.00►
◄use_quantized_matmultrue►
◄use_xformersfalse►
◄enable_vae_tilingfalse►
◄image_resizeNo Resize►
◄num_frames1►
Categorysampling/SDNQ
Inputs (37)
| Name | Type | Default | Description |
|---|---|---|---|
| model_selection | COMBO | FLUX.1-dev-qint8 | Select a pre-configured SDNQ model (auto-downloads from HuggingFace) or choose [Custom Path] to specify a local model directory |
| custom_model_path | STRING | Local path to SDNQ model directory (only used when [Custom Path] is selected). Example: /path/to/model or C:\path\to\model | |
| prompt | STRING | Text description of the image to generate. Be descriptive for best results. | |
| negative_prompt | STRING | blurry, low quality, distorted, deformed, ugly, bad anatomy, bad hands, text, watermark, signature | What to avoid in the image. Default includes common quality issues. Clear this for no negative prompt. Note: FLUX-schnell (cfg=0) ignores negative prompts. |
| steps | INT | 251–150 | Number of denoising steps. More steps = better quality but slower. 20-30 is typical for most models. |
| cfg | FLOAT | 7.00–30 | Guidance scale - how closely to follow the prompt. Higher = more literal. FLUX-schnell uses 0.0, FLUX-dev uses 3.5-7.0, SDXL uses 7.0-9.0. |
| width | INT | 102464–4096 | Image width in pixels. Must be multiple of 8. Larger = more VRAM usage. 1024 is standard for FLUX/SDXL. |
| height | INT | 102464–4096 | Image height in pixels. Must be multiple of 8. Larger = more VRAM usage. 1024 is standard for FLUX/SDXL. |
| seed | INT | 00–18446744073709550000 | Random seed for reproducible generation. Same seed + settings = same image. |
| scheduler | COMBO | DPMSolverMultistepScheduler | ⚠️ IMPORTANT: Use FlowMatchEulerDiscreteScheduler for FLUX/SD3/Qwen/Z-Image. Use DPMSolver/Euler/UniPC for SDXL/SD1.5. Wrong scheduler = broken images! |
| dtype | COMBO | bfloat16 | Model precision. bfloat16 recommended for FLUX (best quality/speed). float16 for older GPUs. float32 for CPU. |
| memory_mode | COMBO | balanced | Memory management: 'gpu' = All on GPU (fastest, needs 24GB+ VRAM). 'balanced' = Model offloading (12-16GB VRAM). 'lowvram' = Sequential offloading (8GB VRAM, slowest). |
| auto_download | BOOLEAN | true | Automatically download model from HuggingFace if not found locally. Disable to only use local models. |
| lora_selectionopt | COMBO | [None] | Select LoRA from ComfyUI loras folder ([None] = disabled, [Custom Path] = use custom path below). LoRAs add styles or concepts to generation. |
| lora_custom_pathopt | STRING | Custom LoRA path or HuggingFace repo ID (only used when [Custom Path] is selected). Example: /path/to/lora.safetensors or username/lora-repo | |
| lora_strengthopt | FLOAT | 1.00-5–5 | LoRA 1 influence strength. 1.0 = full strength, 0.5 = half strength, 0.0 = disabled. Negative values invert the LoRA effect. Range: -5.0 to +5.0. |
| lora2_selectionopt | COMBO | [None] | Optional second LoRA. Select from ComfyUI loras folder or use [Custom Path]. |
| lora2_custom_pathopt | STRING | Custom path for LoRA 2 (only used when [Custom Path] is selected). | |
| lora2_strengthopt | FLOAT | 1.00-5–5 | LoRA 2 influence strength. |
| lora3_selectionopt | COMBO | [None] | Optional third LoRA. Select from ComfyUI loras folder or use [Custom Path]. |
| lora3_custom_pathopt | STRING | Custom path for LoRA 3 (only used when [Custom Path] is selected). | |
| lora3_strengthopt | FLOAT | 1.00-5–5 | LoRA 3 influence strength. |
| lora4_selectionopt | COMBO | [None] | Optional fourth LoRA. Select from ComfyUI loras folder or use [Custom Path]. |
| lora4_custom_pathopt | STRING | Custom path for LoRA 4 (only used when [Custom Path] is selected). | |
| lora4_strengthopt | FLOAT | 1.00-5–5 | LoRA 4 influence strength. |
| lora5_selectionopt | COMBO | [None] | Optional fifth LoRA. Select from ComfyUI loras folder or use [Custom Path]. |
| lora5_custom_pathopt | STRING | Custom path for LoRA 5 (only used when [Custom Path] is selected). | |
| lora5_strengthopt | FLOAT | 1.00-5–5 | LoRA 5 influence strength. |
| use_quantized_matmulopt | BOOLEAN | true | Enable Triton quantized matmul for 30-80% speedup. Uses torch.compile internally for dequantization. Linux: 'pip install triton'. Windows: 'pip install triton-windows'. Auto-disabled if unavailable. |
| use_xformersopt | BOOLEAN | false | Enable xFormers memory-efficient attention for 10-45% speedup. Works with all memory modes (gpu/balanced/lowvram). Auto-fallback to SDPA if xformers not installed or incompatible. Requires: pip install xformers |
| enable_vae_tilingopt | BOOLEAN | false | Enable VAE tiling for very large images (>1536px). Prevents out-of-memory errors on high resolutions. Minimal performance impact. Recommended for images >1536x1536. |
| image1opt | IMAGE | Optional source image for image editing models (Qwen-Image-Edit, ChronoEdit, etc.). Leave unconnected for text-to-image generation. | |
| image2opt | IMAGE | Optional second image for multi-image editing models (Qwen-Image-Edit-2509/2511). Not all models support multiple images. | |
| image3opt | IMAGE | Optional third image for multi-image editing models. | |
| image4opt | IMAGE | Optional fourth image for multi-image editing models. | |
| image_resizeopt | COMBO | No Resize | Resize input images before processing. Smaller = faster inference, less VRAM. 'No Resize' keeps original dimensions. |
| num_framesopt | INT | 11–257 | Number of frames for video models (LTX-2, Wan). Set to 1 for image models. Video models: 161 frames ~= 6 sec at 25fps. Must be divisible by 8+1 for some models. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| latent | LATENT | — |