Skip to content

How-ToGPU

How to Use Nunchaku in ComfyUI for 4-Bit FLUX and Qwen-Image

How to install the ComfyUI-nunchaku plugin and a matching Nunchaku backend, choose INT4 or FP4 models for your NVIDIA card, and run 4-bit FLUX, Qwen-Image or Z-Image-Turbo in less VRAM.

By , Systems & Technical Editor

5 min read

How to Use Nunchaku in ComfyUI for 4-Bit FLUX and Qwen-Image

The steps come from the Nunchaku and ComfyUI-nunchaku GitHub pages and documentation, read on 2 December 2026. Any performance numbers below are the developers' own claims.

Nunchaku is a free, Apache-2.0-licensed inference engine for 4-bit image models. It implements SVDQuant, a method from MIT's Han Lab (with co-authors from NVIDIA, CMU, Princeton, UC Berkeley and others) that quantises both the weights and the activations of a diffusion model to 4 bits. Unlike most 4-bit tricks, it keeps a small "low-rank" branch at 16-bit precision to soak up the outliers that would normally wreck image quality. The ComfyUI-nunchaku plugin lets you use those models inside ComfyUI.

The reason people bother is VRAM. The project says SVDQuant cuts the 12B FLUX.1 model's size by 3.6 times compared with BF16, and that on a 16 GB laptop RTX 4090 it avoids CPU offloading entirely. The developers claim their INT4 model runs 3.0 times faster than the NF4 W4A16 baseline on desktop and laptop RTX 4090s, and that their NVFP4 model is 3.1 times faster than BF16 and NF4 on an RTX 5090. Those are lab figures from the project, not ours.

What you need

  • An NVIDIA GeForce or workstation GPU. The build guide lists Turing (sm_75, RTX 20-series), Ampere (sm_80/sm_86, e.g. RTX 3090), Ada (sm_89, RTX 4090) and Blackwell (sm_120, RTX 5090). There's no AMD or Intel GPU path; Radeon owners should see our ComfyUI on AMD Radeon guide instead.

  • A working ComfyUI install with a recent PyTorch.

  • The right model type for your card. RTX 50-series (Blackwell) cards should use Nunchaku's FP4 models; every other supported GPU uses the INT4 models. Our FP4 vs FP8 vs FP16 explainer covers why.

Step 1: Install the ComfyUI-nunchaku plugin

The installation guide gives three ways to add the plugin to an existing ComfyUI:

  • ComfyUI-Manager: open the Manager, search for ComfyUI-nunchaku in the Custom Nodes Manager and install it. Our ComfyUI-Manager guide explains the Manager if you haven't used it.

  • comfy-cli: comfy node registry-install ComfyUI-nunchaku

  • Manual: clone the plugin into ComfyUI/custom_nodes.

There's also an experimental Windows-only ComfyUI package with ComfyUI-Manager and ComfyUI-nunchaku built in, downloadable from the plugin's GitHub releases.

Step 2: Install the Nunchaku backend wheel

The plugin is only the nodes. The actual engine is a separate Python package (a "wheel") that has to match your Python version, PyTorch version and CUDA version exactly.

The easiest route is the install_wheel.json workflow that ships with the plugin (from v0.3.2): load it in ComfyUI and it installs or updates the backend for you.

If you'd rather do it by hand on the Windows portable build, the docs say to check the ComfyUI console for the line showing the Python executable, then install with that exact Python, for example:

"G:\ComfyUI\python\python.exe" -m pip install <your-wheel-file>.whl

Check the versions first. On 2 December 2026, the latest stable Nunchaku release on GitHub was v1.2.1 (dated 25 January 2026), with Windows and Linux wheels for PyTorch 2.8 to 2.11 built against CUDA 12.8 or 13.0. The newest builds since then are v1.3.0 development builds from February and March 2026. The project's GitHub repo hasn't had a new push since early September 2026, and ComfyUI's own README asks NVIDIA users to run PyTorch builds for CUDA 13.0 or newer and to update PyTorch if it's more than six months old. If your ComfyUI's PyTorch is newer than any Nunchaku wheel, the backend won't install cleanly, so check before you change a working set-up. A separate ComfyUI install just for Nunchaku is the safer option.

Step 3: Download a Nunchaku model

Nunchaku models are published on Hugging Face under nunchaku-ai (and on ModelScope). For FLUX.1-dev, the repo has two files:

  • svdq-int4_r32-flux.1-dev.safetensors for RTX 20, 30 and 40-series cards

  • svdq-fp4_r32-flux.1-dev.safetensors for RTX 50-series cards

Put the file in ComfyUI/models/unet/. You still need the normal FLUX text encoders (clip_l and t5xxl) in models/text_encoders and the FLUX VAE (ae.safetensors) in models/vae. The model card says the 4-bit FLUX.1-dev files are covered by Black Forest Labs' FLUX.1 [dev] Non-Commercial License, so read that before using it for paid work.

Besides FLUX.1-dev, the plugin's news log lists 4-bit versions of FLUX.1-Kontext-dev, Qwen-Image, Qwen-Image-Edit and Qwen-Image-Edit-2509 (including 4- and 8-step Lightning variants) and Z-Image-Turbo. If you want Z-Image-Turbo without Nunchaku, see our Z-Image-Turbo ComfyUI guide.

Step 4: Load the example workflow

The plugin ships example workflows in its example_workflows folder. The usage guide says to copy them into ComfyUI's user/default/example_workflows folder, then pick one from the workflow menu.

In the FLUX workflows, the key node is Nunchaku FLUX DiT Loader, which loads the Nunchaku model file and manages offloading and attention. Its main settings, according to the node reference:

Setting

What it does

model_path

The Nunchaku .safetensors file you downloaded

cpu_offload

auto turns offload on if the GPU has less than 14 GiB of memory; you can also force it on or off

attention

flash-attention2 or nunchaku-fp16; RTX 20-series cards can only use nunchaku-fp16

cache_threshold

First-Block Cache tolerance; higher is faster but lower quality, 0 turns it off, 0.12 is the suggested typical value

data_type

bfloat16 by default; RTX 20-series cards need float16

Qwen-Image models use the Nunchaku Qwen-Image DiT Loader instead. Its auto offload kicks in below 15 GiB of GPU memory, and num_blocks_on_gpu sets how many transformer blocks stay in VRAM when offloading is on. The project's v1.0.0 notes say asynchronous offloading can cut Qwen-Image's transformer VRAM use to as little as 3 GiB.

Version 1.2.0 of the plugin added LoRA support with ComfyUI's native nodes, so your existing LoRA workflow should carry over. Use the plugin's own example workflows as a starting point if something doesn't connect.

Which GPU makes sense

On an older 12 GB card such as the ASUS RTX 3060 12GB Dual Gaming OC V2 you'd use the INT4 models, and the loader's auto setting will turn on CPU offload because the card is under 14 GiB. A 16 GB Blackwell card such as the ASUS RTX 5060 Ti 16GB Dual OC uses the FP4 models instead. For a wider view of cards, see our best GPUs for ComfyUI, and check your real VRAM use with our VRAM monitoring guide.

The bottom line

Nunchaku is worth trying if you have an NVIDIA RTX card and want FLUX, Qwen-Image or Z-Image-Turbo in less VRAM. Install the ComfyUI-nunchaku plugin, use the install_wheel workflow to add a backend that matches your PyTorch, download the INT4 model (or FP4 on an RTX 50-series card) into models/unet and start from the example workflows. The latest stable release is from January 2026, so check wheel compatibility before touching a working ComfyUI. Forge PC hasn't tested it.

In this article

Sources

  1. 01Nunchaku team, Nunchaku GitHub README
  2. 02Nunchaku team, ComfyUI-nunchaku GitHub README
  3. 03Nunchaku team, Nunchaku installation guide
  4. 04Nunchaku team, ComfyUI-nunchaku installation guide
  5. 05Nunchaku team, ComfyUI-nunchaku usage guide
  6. 06Nunchaku team, ComfyUI-nunchaku diffusion model node reference
  7. 07Nunchaku team, Nunchaku GitHub releases
  8. 08Nunchaku team, nunchaku-flux.1-dev on Hugging Face
  9. 09Comfy Org, ComfyUI GitHub README

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

How to Fix ATTEMPTED_WRITE_TO_READONLY_MEMORY on Windows 11

How-To

How to Fix ATTEMPTED_WRITE_TO_READONLY_MEMORY on Windows 11

ATTEMPTED_WRITE_TO_READONLY_MEMORY (0xBE) means a driver tried to write to protected memory. Here's how to find the driver from the blue screen or minidump, update, roll back or remove it, use safe mode and Driver Verifier, and rule out RAM, system files and malware.

Marcus Thorne5 min

How to Fix UNMOUNTABLE_BOOT_VOLUME on Windows 11

How-To

How to Fix UNMOUNTABLE_BOOT_VOLUME on Windows 11

UNMOUNTABLE_BOOT_VOLUME (0xED) means Windows couldn't mount the drive it boots from. Here's how to check the drive and its connection, get into the recovery environment, and run Microsoft's fixes: Startup Repair, chkdsk /r and bootrec, plus what to do if the drive itself has failed.

Marcus Thorne5 min

Best Free CD Ripping Software for Windows (2026)

Best Picks

Best Free CD Ripping Software for Windows (2026)

The best free CD ripping software for Windows, ranked: Exact Audio Copy, fre:ac, CUERipper, foobar2000 and MusicBee. We explain which ones verify rips with AccurateRip, which are easiest, and who each one suits.

Hannah Vance5 min