Nunchaku runs Flux, Qwen-Image and Z-Image as 4-bit models that keep almost all of their quality while using a fraction of the VRAM and running noticeably faster than the 16-bit originals.
It’s one of the few ways to run full Flux.1-dev comfortably on an 8 GB card, and on a 16 GB card it removes the CPU offloading that makes Flux so slow.
The catch is installation. Nunchaku is two pieces (a ComfyUI node pack plus a compiled backend wheel that must match your Python and PyTorch), and most “Nunchaku not working” problems come from that second piece.
This guide walks through the official install methods, which model file to download for your GPU, the loader settings, and fixes for the common errors. Everything is checked against the ComfyUI-nunchaku and nunchaku repos and docs as of late November 2026.
- What it is: SVDQuant 4-bit models + a fast inference engine from MIT HAN Lab (now the nunchux-ai GitHub org). The README claims 3.6x smaller Flux.1-dev and ~3x faster than NF4 on an RTX 4090.
- Step 1: install the ComfyUI-nunchaku node pack from ComfyUI Manager (latest release v1.2.1).
- Step 2: install the nunchaku backend wheel with the included
install_wheel.jsonworkflow (the Nunchaku Installer node). The plugin needs backend v1.0.0 or newer. - Model file: FP4 (
svdq-fp4_r32-...) for RTX 50-series, INT4 (svdq-int4_r32-...) for 20/30/40-series. Put it inmodels/diffusion_models. - Supported in ComfyUI: Flux.1 (dev, schnell, Kontext, Fill, Depth, Canny, Redux, PuLID, IP-Adapter), Qwen-Image, Qwen-Image-Edit / 2509, Z-Image-Turbo. Not Flux.2, Wan or Qwen-Image 2.x.
- NVIDIA only (Turing to Blackwell). No Mac or AMD support.
New to ComfyUI? Start with my ComfyUI guide for the basics of nodes and workflows.
What Nunchaku Is (and Why It’s Fast)
Most 4-bit formats for image models (GGUF Q4, NF4) only shrink the weights. The GPU still has to unpack them back to 16-bit for every calculation, so you save memory but not much time.
SVDQuant, the method behind Nunchaku, quantizes both the weights and the activations to 4 bits and keeps a small 16-bit “low-rank” branch to absorb the outliers that would otherwise ruin quality. The Nunchaku engine then runs the 4-bit maths directly with custom CUDA kernels.
The project’s own numbers for 12B Flux.1-dev:
- 3.6x smaller model and about 3.5x less memory than BF16.
- About 3x faster than the NF4 baseline on desktop and laptop RTX 4090.
- On a 16 GB laptop 4090, around 8.7x to 10x faster than BF16 because it no longer needs CPU offloading.
- NVFP4 on the RTX 5090 is about 3x faster than BF16.
Those are the authors’ benchmarks, but the direction matches what users report: Nunchaku Flux is in the same quality league as fp8 while being much lighter and faster. The r32 / r128 in file names is the rank of that 16-bit correction branch.
Supported GPUs and Models
GPUs
| GPU generation | Architecture | Model type | Notes |
|---|---|---|---|
| RTX 50-series (Blackwell) | sm_120 | FP4 | Needs PyTorch 2.7+ with CUDA 12.8+ |
| RTX 40-series (Ada) | sm_89 | INT4 | |
| RTX 30-series, A6000 (Ampere) | sm_86 | INT4 | |
| A100 | sm_80 | INT4 | |
| RTX 20-series (Turing) | sm_75 | INT4 | Use float16 and the nunchaku-fp16 attention option |
Nunchaku is CUDA only, so it won’t run on Macs, AMD or Intel GPUs. For those, use GGUF models instead.
Models with ComfyUI workflows
From the official example_workflows folder:
- Flux.1: dev, schnell, Kontext dev (plus a turbo LoRA workflow), Fill (and an object-removal LoRA), Depth, Canny, Redux, ControlNet Union Pro 2.0, ControlNet upscaler, PuLID, IP-Adapter.
- Qwen-Image: text to image, Qwen-Image-Edit, Qwen-Image-Edit-2509 and its 4/8-step Lightning versions.
- Z-Image-Turbo: text to image, with LoRAs, and with the official ControlNet.
Not supported in the node pack: Flux.2, Qwen-Image 2.x, Wan and other video models, SDXL. Development has slowed this year (latest plugin release v1.2.1 in January 2026, dev builds of v1.3.0 through March), so don’t wait for a 4-bit version of every new model.
For Qwen-Image 2.1 on small cards, see my Qwen-Image 2.1 GGUF guide.
Install ComfyUI-nunchaku (Step 1)
Pick one method. All three put the same node pack in custom_nodes.
Method A: ComfyUI Manager (easiest)
- Open Manager → Custom Nodes Manager.
- Search ComfyUI-nunchaku and install it.
- Restart ComfyUI.
Method B: comfy-cli
pip install comfy-cli
comfy node registry-install ComfyUI-nunchaku
Method C: manual clone
cd ComfyUI/custom_nodes
git clone https://github.com/nunchux-ai/ComfyUI-nunchaku nunchaku_nodes
Then install the Python requirements with the same Python that runs ComfyUI. For the Windows portable build, from the ComfyUI_windows_portable folder:
python_embeded\python.exe -m pip install -r ComfyUI\custom_nodes\nunchaku_nodes\requirements.txt
The plugin supports Python 3.10 to 3.13. After a restart the nodes load, but they won’t work until the backend is installed. The console shows Nunchaku version: and ComfyUI-nunchaku version: lines at startup, which are the first thing to check.
Windows: the pre-packaged option
Since v1.0.2 the project also publishes a packaged ComfyUI for Windows with ComfyUI-Manager and Nunchaku built in (marked experimental). Download the zip that matches your preferred PyTorch version from the ComfyUI-nunchaku GitHub releases, extract it, and run ComfyUI.exe. It’s the fastest route if you’re starting fresh.
Install the Nunchaku Backend Wheel (Step 2)
The backend is a compiled package called nunchaku. Its wheel must match three things: your Python version (cp311, cp312…), your PyTorch version (torch2.7, torch2.8…) and your OS. A mismatch is the number one cause of import errors.
Option 1: the install_wheel workflow (recommended)
- Load
install_wheel.jsonfromcustom_nodes/nunchaku_nodes/example_workflows/(drag it onto the canvas). - It contains the Nunchaku Installer node (NunchakuWheelInstaller). Set
modetoupdate nodeand run once to refresh the version list. - Pick the newest official
version(leavedev_versionon none), setmodetoinstalland run. - Restart ComfyUI.
The node works out your Python and PyTorch versions itself and installs with pip (or uv if available) into the Python that runs ComfyUI, which avoids the classic “installed it into the wrong Python” mistake. The same node can uninstall the backend.
Option 2: manual pip install
- Start ComfyUI and find the line
** Python executable:in the console. That’s the Python you must use. - Check your versions:
"C:\path\to\python.exe" -c "import sys, torch; print(sys.version); print(torch.__version__)"
- From the nunchaku GitHub releases, download the wheel whose name matches, for example
...+torch2.8-cp312-cp312-win_amd64.whlfor PyTorch 2.8 and Python 3.12 on Windows. - Install it with that exact Python:
"C:\path\to\python.exe" -m pip install nunchaku-....whl
The plugin logs a warning at startup if your backend is older than v1.0.0. If you’re on an RTX 50-series card, make sure your PyTorch build uses CUDA 12.8 or newer before installing the wheel.
Download the Right Model File
Nunchaku models live on the project’s Hugging Face and ModelScope pages, one repository per model (for example nunchaku-flux.1-dev, nunchaku-qwen-image, nunchaku-z-image-turbo). Each repo has INT4 and FP4 files:
| Your GPU | Download | Example |
|---|---|---|
| RTX 50-series | FP4 | svdq-fp4_r32-flux.1-dev.safetensors |
| Everything else | INT4 | svdq-int4_r32-flux.1-dev.safetensors |
The docs are clear on this: Blackwell GPUs should use FP4 “for hardware compatibility”, and all other GPUs INT4. An INT4 file on a 50-series card (or FP4 on a 40-series) is a common cause of errors.
Where to put the files:
- Nunchaku diffusion models →
models/diffusion_models/ - Text encoders (Flux:
clip_l+t5xxl_fp16or fp8) →models/text_encoders/ - VAE (Flux
ae.safetensors) →models/vae/ - Optional 4-bit T5 encoder (
nunchaku-t5) →models/text_encoders/, loaded with Nunchaku Text Encoder Loader V2 to save more VRAM
The text encoders and VAE are the normal ones from the regular Flux or Qwen-Image setup. Only the diffusion model is the Nunchaku version.
Run Flux with Nunchaku
The easiest start is to load nunchaku-flux.1-dev.json from the example workflows. The key change from a normal Flux workflow is that Load Diffusion Model is replaced with Nunchaku FLUX DiT Loader. Its settings:
| Setting | Default | What it does |
|---|---|---|
model_path |
Your svdq Flux file | |
cache_threshold |
0 (off) | First-block caching, like WaveSpeed. The tooltip calls 0.12 “a typical setting”. Higher = faster, lower quality |
attention |
flash-attention2 | nunchaku-fp16 is about 1.2x faster; 20-series must use it |
cpu_offload |
auto | Auto turns it on when the GPU has less than 14 GB |
data_type |
bfloat16 | Use float16 on 20-series (no bfloat16 support) |
device_id |
0 | Which GPU to use on multi-GPU systems |
Everything else (DualCLIPLoader, FluxGuidance around 3.5, KSampler with euler / simple, VAE Decode) stays exactly as in a normal Flux workflow. See my ComfyUI CFG guide for Flux guidance values.
For more speed, set cache_threshold to around 0.12 and compare against 0 with the same seed. It’s the same idea as the step caching in my TeaCache and EasyCache guide, built into the loader.
Run Qwen-Image and Z-Image-Turbo
Qwen-Image and Qwen-Image-Edit
Use Nunchaku Qwen-Image DiT Loader in place of Load Diffusion Model (or start from nunchaku-qwen-image.json / nunchaku-qwen-image-edit-2509.json). Its settings focus on memory:
cpu_offload: auto turns it on below 15 GB of VRAM. Since v1.0, Qwen-Image uses asynchronous offloading that the project says brings transformer VRAM down to about 3 GB “with no performance loss”.num_blocks_on_gpu(default 1, max 60): when offloading, how many transformer blocks stay on the GPU. Raise it if you have spare VRAM and want less system RAM use.use_pin_memory(default off): faster CPU-GPU transfers at the cost of more system RAM.
The 4/8-step Lightning versions of Qwen-Image-Edit-2509 are already merged into dedicated Nunchaku files, so you don’t add a Lightning LoRA on top. Use the step count in the file name. For the full Qwen-Image setup see my Qwen-Image local guide.
Z-Image-Turbo
Added in v1.1.0 and sped up 20 to 30% in v1.2.0. Use Nunchaku Z-Image DiT Loader with the regular Z-Image text encoder and VAE, or load nunchaku-z-image-turbo.json. Z-Image-Turbo is the model where Nunchaku now has the best LoRA story (below).
LoRAs with Nunchaku
LoRA support depends on the model:
| Model | How to load LoRAs |
|---|---|
| Flux.1 | Nunchaku FLUX LoRA Loader (chain several, or use Nunchaku FLUX LoRA Stack). Strength range −100 to 100, default 1.0. The core Load LoRA node doesn’t work on Nunchaku Flux |
| Z-Image-Turbo | ComfyUI’s native Load LoRA node works (since v1.2.0). Use Z-Image LoRAs only |
| Qwen-Image | The docs don’t list LoRA support for Nunchaku Qwen-Image; use the pre-merged Lightning files for speed |
LoRA files go in models/loras as usual. LoRAs must match the base model: a Flux LoRA won’t work on Z-Image or Qwen-Image. More on stacking and strengths in my ComfyUI LoRA guide.
Common Errors and Fixes
| Error or symptom | Likely cause | Fix |
|---|---|---|
| Nunchaku nodes show red / “import failed” in the console | Backend wheel not installed, or installed into another Python | Run install_wheel.json, or pip install with the Python shown at startup |
| Warning: “requires nunchaku >= v1.0.0” | Old backend | Update the wheel with the Nunchaku Installer node |
DLL load failed / undefined symbol on import |
Wheel built for a different PyTorch or Python | Check torch.__version__ and Python version, install the matching wheel |
| CUDA error or black image on RTX 50-series | INT4 model, or PyTorch with CUDA below 12.8 | Use the FP4 file and a cu128+ PyTorch build |
| Error on RTX 20-series | bfloat16 or flash-attention selected | Set data_type float16 and attention nunchaku-fp16 |
| Model doesn’t appear in the loader list | File in the wrong folder | Put it in models/diffusion_models and press R to refresh |
| Normal Load LoRA has no effect on Flux | Nunchaku Flux needs its own LoRA node | Use Nunchaku FLUX LoRA Loader |
| Nodes broke after updating ComfyUI | ComfyUI internals changed | Update ComfyUI-nunchaku in Manager; check the repo’s issues |
For general memory errors see my ComfyUI out of memory fixes.
Nunchaku vs GGUF vs fp8
| Nunchaku (SVDQuant 4-bit) | GGUF (Q4 to Q8) | fp8 | |
|---|---|---|---|
| Flux.1-dev size | Around a quarter of BF16 (3.6x smaller) | Depends on level (Q4 is small, Q8 about half of BF16) | About half of BF16 |
| Speed | Faster than BF16 and NF4 (4-bit maths on the GPU) | Usually a bit slower than fp8 (weights are unpacked) | Fast, especially on 40/50-series |
| Model choice | Only models the team has converted | Almost every model, including video | Most models |
| Hardware | NVIDIA 20-series and newer | NVIDIA, AMD, Mac | Best on NVIDIA 40/50-series |
| Setup | Node pack + matching wheel | One node pack | Built in |
My take: if you run Flux.1, Kontext, Qwen-Image-Edit-2509 or Z-Image-Turbo on an NVIDIA card with 8 to 16 GB, Nunchaku is worth the setup. For newer models it doesn’t cover, GGUF is the flexible choice. More ideas in how to speed up ComfyUI.
FAQ
How do I install Nunchaku in ComfyUI?
Install ComfyUI-nunchaku from ComfyUI Manager, restart, then run the included install_wheel.json workflow to install the matching nunchaku backend wheel. Restart again and load one of the example workflows.
Should I download INT4 or FP4?
FP4 for RTX 50-series (Blackwell) cards and INT4 for every other supported NVIDIA GPU, per the official docs.
Where do Nunchaku models go?
In ComfyUI/models/diffusion_models/. Text encoders and the VAE are the normal ones and go in their usual folders.
Does Nunchaku work with Flux.2 or Wan?
Not as of November 2026. The ComfyUI node pack supports Flux.1 variants, Qwen-Image / Qwen-Image-Edit and Z-Image-Turbo.
Does Nunchaku work on an RTX 2060 or 2080?
Yes, with INT4 models. Set the loader’s data type to float16 and attention to nunchaku-fp16, since Turing cards don’t support bfloat16 or flash-attention 2.
Can I use Nunchaku on Mac or AMD?
No. Nunchaku uses custom CUDA kernels and only runs on NVIDIA GPUs. Use GGUF models instead.
Can I use normal Flux LoRAs with Nunchaku?
Yes, through the Nunchaku FLUX LoRA Loader node rather than the core Load LoRA node.
How much VRAM does Nunchaku Flux need?
The project reports Flux running in as little as 4 GB with the 4-bit text encoder and per-layer CPU offloading. With 8 GB or more it runs comfortably, and the loader turns on offloading automatically below 14 GB.
Sources
- nunchux-ai/ComfyUI-nunchaku (README, docs/source install and usage guides, node source, example workflows)
- nunchux-ai/nunchaku (backend, installation docs, supported GPU architectures, benchmarks)
- ComfyUI-nunchaku documentation
- SVDQuant paper (arXiv 2411.05007)



