From 7de58d8567fde6c06bb73733e5e22e5271b8f36a Mon Sep 17 00:00:00 2001 From: vladmandic Date: Sun, 23 Nov 2025 08:52:52 -0500 Subject: [PATCH] update nunchaku to 1.0.2 Signed-off-by: vladmandic --- CHANGELOG.md | 3 ++- modules/mit_nunchaku.py | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 945b1e4a8..41a60d7cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,7 +49,8 @@ And a first cloud model with **Google's Nano Banana** *2.5 Flash and 3.0 Pro* pl - installer: auto-restart on self-update - server: set correct mime-types - sdnq: unconditional register on startup - - python: start work on future-proofing for modern python versions, thanks @awsr + - python: start work on future-proofing for modern python versions, thanks @awsr + - nunchaku: update to `1.0.2` - **Fixes** - xyz-grid: improve parsing of axis lists, thanks @awsr - hires: strength save/load in metadata, thanks @awsr diff --git a/modules/mit_nunchaku.py b/modules/mit_nunchaku.py index 9817c4e53..268e29f56 100644 --- a/modules/mit_nunchaku.py +++ b/modules/mit_nunchaku.py @@ -4,7 +4,7 @@ from installer import log, pip from modules import devices -ver = '1.0.1' +nunchaku_ver = '1.0.2' ok = False @@ -17,7 +17,7 @@ def check(): import nunchaku.utils from nunchaku import __version__ log.info(f'Nunchaku: path={nunchaku.__path__} version={__version__.__version__} precision={nunchaku.utils.get_precision()}') - if __version__.__version__ != ver: + if __version__.__version__ != nunchaku_ver: ok = False return False ok = True @@ -50,13 +50,13 @@ def install_nunchaku(): log.error(f'Nunchaku: backend={devices.backend} unsupported') return False torch_ver = torch.__version__[:3] - if torch_ver not in ['2.5', '2.6', '2.7', '2.8', '2.9']: + if torch_ver not in ['2.5', '2.6', '2.7', '2.8', '2.9', '2.10']: log.error(f'Nunchaku: torch={torch.__version__} unsupported') 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/nunchaku-tech/nunchaku/resolve/main/nunchaku-{ver}' + url = f'https://huggingface.co/nunchaku-tech/nunchaku/resolve/main/nunchaku-{nunchaku_ver}' url += f'+torch{torch_ver}-cp{python_ver}-cp{python_ver}-{arch}{suffix}.whl' cmd = f'install --upgrade {url}' log.debug(f'Nunchaku: install="{url}"')