Skip to content

Commit 636bd2e

Browse files
committed
add Nunchaku-Qwen-Image-Lightning
Signed-off-by: Vladimir Mandic <[email protected]>
1 parent 70319ee commit 636bd2e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
- **Chroma** final versions: [Chroma1-HD](https://huggingface.co/lodestones/Chroma1-HD), [Chroma1-Base](https://huggingface.co/lodestones/Chroma1-Base) and [Chroma1-Flash](https://huggingface.co/lodestones/Chroma1-Flash)
77
- **Qwen-Image** [InstantX ControlNet Union](https://huggingface.co/InstantX/Qwen-Image-ControlNet-Union) support
88
*note* qwen-image is already a very large model and controlnet adds 3.5GB on top of that so quantization and offloading are highly recommended!
9+
- [Nunchaku-Qwen-Image-Lightning](https://huggingface.co/nunchaku-tech/nunchaku-qwen-image)
10+
if you have a compatible nVidia GPU, Nunchaku is the fastest quantization engine, currently available for Flux.1, SANA and Qwen-Image models
11+
*note*: release version of `nunchaku==0.3.2` does NOT include support, so you need to build [nunchaku](https://nunchaku.tech/docs/nunchaku/installation/installation.html) from source
912
- updated [SD.Next Model Samples Gallery](https://vladmandic.github.io/sd-samples/compare.html)
1013
- **Core**
1114
- enable offload during pre-forward by default

html/reference.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
"skip": true,
197197
"extras": ""
198198
},
199-
"Qwen-Lightning": {
199+
"Qwen-Image-Lightning": {
200200
"path": "vladmandic/Qwen-Lightning",
201201
"preview": "Qwen-Lightning.jpg",
202202
"desc": " Qwen-Lightning is step-distilled from Qwen-Image to allow for generation in 8 steps.",

pipelines/qwen/qwen_nunchaku.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ def load_qwen_nunchaku(repo_id):
1212
shared.log.error(f'Load module: quant=Nunchaku module=transformer repo="{repo_id}" low nunchaku version')
1313
return None
1414
if repo_id.lower().endswith('qwen-image'):
15-
nunchaku_repo = f"nunchaku-tech/nunchaku-qwen-image/svdq-{nunchaku_precision}_r128-qwen-image.safetensors" # r32 vs R128
15+
nunchaku_repo = f"nunchaku-tech/nunchaku-qwen-image/svdq-{nunchaku_precision}_r128-qwen-image.safetensors" # r32 vs r128
16+
elif repo_id.lower().endswith('qwen-lightning'):
17+
nunchaku_repo = f"nunchaku-tech/nunchaku-qwen-image/svdq-{nunchaku_precision}_r128-qwen-image-lightningv1.1-8steps.safetensors" # 8-step variant
1618
else:
1719
shared.log.error(f'Load module: quant=Nunchaku module=transformer repo="{repo_id}" unsupported')
1820
if nunchaku_repo is not None:

0 commit comments

Comments
 (0)