Views
No views yet
Note: This model requires specific versions of thenunchakuPython package and theComfyUI-nunchakucustom nodes. Follow the installation steps carefully.
gcc or g++
1# Debian/Ubuntu
2sudo apt update && sudo apt install build-essential
3
4# Fedora
5sudo dnf groupinstall "Development Tools"pip install ninja wheel diffusers transformers accelerate sentencepiece protobuf huggingface_hub buildPerform all steps in your activated ComfyUI Python environment.
nunchaku Python Package (v0.3.0dev1+)1# Activate your ComfyUI Python environment:
2# Linux/macOS:
3source /path/to/your/ComfyUI/venv/bin/activate
4# Windows:
5.\ComfyUI\venv\Scripts\activate
6
7# Clone and build:
8git clone --recursive https://github.com/mit-han-lab/nunchaku.git
9cd nunchaku
10git checkout tags/v0.3.0dev1 # Or a newer v0.3.xdev version if available
11
12# Build the wheel:
13# Linux/macOS:
14NUNCHAKU_BUILD_WHEELS=1 python -m build --wheel --no-isolation
15
16# Windows (PowerShell):
17$env:NUNCHAKU_BUILD_WHEELS="1"
18python -m build --wheel --no-isolation
19
20# Windows (CMD):
21set NUNCHAKU_BUILD_WHEELS=1
22python -m build --wheel --no-isolation
23
24# Install the wheel:
25pip install dist/nunchaku-*.whlComfyUI-nunchaku Custom Nodes (v0.3.0dev1+)1cd /path/to/your/ComfyUI/custom_nodes/
2git clone https://github.com/mit-han-lab/ComfyUI-nunchaku.git
3cd ComfyUI-nunchaku
4git checkout tags/v0.3.0dev1
5
6# Install requirements:
7pip install -r requirements.txtpip install insightface facexlib onnxruntime timmhuggingface-cli download theunlikely/svdq-int4-flux-dev-de-distill --local-dir /path/to/your/ComfyUI/models/diffusion_models/flux-de-distill
CFG > 1—even without negative prompts.3.5, 5, or 8.0.gcc/g++, Visual Studio).ninja, build are installed.nunchaku repo was cloned with --recursive.ComfyUI-nunchaku is in ComfyUI/custom_nodes/.nunchaku v0.3.0dev1+ and ComfyUI-nunchaku v0.3.0dev1+.git checkout tags/v0.3.0dev1 on both repositories for consistency.CFG > 1. This is a common issue.