From 79db2f28d1086d89da303e4cfb6816f94856b5d1 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Mon, 4 Aug 2025 15:18:02 -0400 Subject: [PATCH] fix nunchaku download links for windows Signed-off-by: Vladimir Mandic --- CHANGELOG.md | 2 ++ modules/mit_nunchaku.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ccf8b36c7..4d62db33b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - **Models** - [Qwen-Image](https://qwenlm.github.io/blog/qwen-image/) new image foundational model with 20B params and using Qwen-2.5 as text-encoder! + available for text-to-image workflows, image-editing workflows will follow soon *note*: this model is almost 2x the size of Flux, quantization and offloading are highly recommended! available via *networks -> models -> reference* - [FLUX.1-Krea-Dev](https://www.krea.ai/blog/flux-krea-open-source-release) @@ -61,6 +62,7 @@ - fix api progress reporting endpoint - fix openvino backend failing to compile - fix nunchaku fallback on unsupported model + - fix nunchaku windows download links - reapply offloading on ipadapter load - api set default script-name - avoid forced gc and rely on thresholds diff --git a/modules/mit_nunchaku.py b/modules/mit_nunchaku.py index 798de661e..b929a1d8b 100644 --- a/modules/mit_nunchaku.py +++ b/modules/mit_nunchaku.py @@ -51,8 +51,9 @@ def install_nunchaku(): suffix = 'x86_64' if arch == 'linux' else 'win_amd64' url = os.environ.get('NUNCHAKU_COMMAND', None) if url is None: + arch = f'{arch}_' if arch == 'linux' else '' url = f'https://huggingface.co/mit-han-lab/nunchaku/resolve/main/nunchaku-{ver}' - url += f'+torch{torch_ver}-cp{python_ver}-cp{python_ver}-{arch}_{suffix}.whl' + url += f'+torch{torch_ver}-cp{python_ver}-cp{python_ver}-{arch}{suffix}.whl' cmd = f'install --upgrade {url}' # pip install https://huggingface.co/mit-han-lab/nunchaku/resolve/main/nunchaku-0.2.0+torch2.6-cp311-cp311-linux_x86_64.whl log.debug(f'Nunchaku: install="{url}"')