15 Commits
Author SHA1 Message Date
dengdong ff5d45dd3f feat: Nunchaku Z-Image model to load and run LoRAs with native LoRALoader node provided by ComfyUI (#759)
* [feat] add nodes for z-image

* updates for fp4 state dict loading

* support lora

* remove unused lora loader

* add doc string & move NunchakuModelPatcher to common.py (avoid package confict)

* test case for z-image-turbo lora

* refine test cases

* downgrade logging

* modify test case metrics

* create example workflow and documentation for z-image-turbo txt-2-img with LoRAs

* create example workflow and documentation for running nunchaku z-image-turbo with official controlnet

* fix file name

* fix file path

* update
2026-01-08 21:25:59 -08:00
dengdong 3f509b6f09 feat: support z-image-turbo (#713)
* [feat] add nodes for z-image

* updates for fp4 state dict loading

* unit test case for z-image-turbo text-to-image workflow

* update documentation templates for z-image

* minor fix: remove some warnings and invalid attribute access during model loading

* drop down res4lyf test case

* style: make linter happy

* modify test case metrics

* add notes for maintenance

* add github url in notes

* simplify the notes
2025-12-23 22:00:01 -05:00
dengdongandMuyang Li 3d751c2874 fix: fix lora loader for latest ComfyUI (#714)
* fix issue 710

* update

* style: make linter happy

* update comfyui version

* add `disable_unet_model_creation` item in model_config json to avoid comfy default model loading

* remove debug print

* update RES4LYF checkout hash

* drop res4lyf test workflow

---------

Co-authored-by: Muyang Li <lmxyy1999@foxmail.com>
2025-12-22 14:00:13 -08:00
dengdong 23fd4063e4 fix: QwenImage with RES4LYF sampler (#600)
* try to fix issue #549

* align device with offload option

* offload transformer blocks while not affecting model device

* style: make linter happy

* add test

* style: make linter happy

* no need to redownload the qwen-image files

* style: make linter happy

* resolve missing sub_folder item in yaml

* update

* rename the workflow

* style: make linter happy
2025-10-14 01:34:15 -04:00
82dfce256f feat: new tests for nunchaku comfyui from lmxyy & ttio2tech, tested and verified on comfyui 0.3.63 upstream and 0.3.60 LTS (#641) (#650)
* bump requires-python

* model patcher now implements everything it needs for comfyui

* index

* Support LTS and Vanilla ComfyUI

* Fix version string when installed as package (not material)

* style: make linter happy

* update init.py

* Update nunchaku index

* Bump dependencies, include config and workflows when installed using pip/uv

* Update installation instructions to include ComfyUI LTS

* Update requirements for nunchaku>=1.0.1

* Fix torch210 key

* Fix pep 508 spec

* Improve tests (still more to go)

* Fix comfyui_controlnet_aux flaws

* Update tests (all should pass)

* Organize the tests in this runner

* Update contribution guide

* Install uv

* Dependencies now resolve with correct conflicts with uv's most stringent resolution

* Mediapipe hasn't been built for 3.13 yet, so we can't use it here

* Remove controlnet-aux dep

* make linter happy

* make the linter happy

* optimize the loading

* update installation

* update

* update contribution guide

* update qwenimage

* need to figure out why the toml parsing doesn't owk

* update

* update

* update

* style: make linter happy

* update

* add pulid requirement

* update docs

* update

* update

* update

* update

* update

* organize the pyproject.toml

* update

* update

* update

* passing all tests

* update

* update

* update

* update

* update

* remove a useless class

* update

* update

* fix a typo

---------

Co-authored-by: doctorpangloss <@hiddenswitch.com>
Co-authored-by: doctorpangloss <2229300+doctorpangloss@users.noreply.github.com>
2025-10-14 00:46:20 -04:00
Muyang Li 375cccdcbf chore: switch the test backend to hiddenswitch's ComfyUI LTS (#634)
* add new testing method

* add testing readme

* style: make linter happy

* update

* update

* chore: do some cleanings

* update

* update

* update

* update

* style: make linter happy

* update

* finished the first test

* update

* debugging

* update

* update

* update

* update

* update

* style: make the linter happy

* update

* finished a case

* style: make linter happy

* new to figure out how to run mulitiple tests

* make linter happy

* update

* update

* add nunchaku-flux.1-depth-lora

* rename images to inputs

* update

* update a dedicated folder for the test workflows

* update

* update

* fix the test scores

* style: make linter happy

* update upscaler

* style: make linter happy

* add pulid

* add lora

* make linter happy

* update

* update

* finished flux fill

* style: make linter happy

* finished removal

* style: make linter happy

* add kontext

* add kontext turbo

* style: make linter happy

* add flux.1-schnell tests

* finished redux

* add qwen-image tests

* update

* update

* style: make linter happy

* update

* add test results for 5090

* update

* update
2025-10-05 02:12:01 -04:00
Muyang Li 10c9947159 feat: Qwen-Image support (#463)
* update

* add qwen-image models

* override comfyui class for nunchaku

* update

* finished model loading

* style: make linter happy

* update

* start debugging

* style: make linter happy

* fix the init error

* model loading done

* need to figure out why the precision does not match in comfyui

* almost done

* add the example workflow

* style: make linter happy

* add some docs

* runnable on 5090

* leave the docs to tomorrow

* update dependencies

* style: make linter happy

* add the docstring

* update the workflow docs

* use 0.3.44 for tests

* add more api docs

* add the v1.0.0 info

* update requirements

* style: make linter happy
2025-08-23 13:51:15 -04:00
SMGandMuyang Li 70fa195472 feat: add IP-Adapter support to ComfyUI (#305)
* feat:IP-adapter

* add IP-adpater workflow

* delete wrong example

* start testing ipa

* add tests

* make linter happy

* add a utility function

* add the docs of ipadapter

* style: make linter happy

* update

* chore: fix the github variables

* no need to capture output

* debug the tests

* fix the dependencies versions

* reduce the VRAM usage

* update the test score

---------

Co-authored-by: Muyang Li <lmxyy1999@foxmail.com>
2025-07-27 13:11:49 -07:00
Muyang Li a7e55c019f chore: update the test model links 2025-07-18 08:07:56 +00:00
Muyang Li f0fd71d4de docs: add the docs (#394)
* start building docs

* add docs

* adding docs

* get utils done

* update docs

* update

* finished the LoRA node

* update

* update

* add docs

* writing docs for text encoder

* finished the docs for text encoders

* fixing the import errors

* update

* docs built successfully

* add the get_started bullets

* update docs

* update usage docs

* debugging

* update docs

* update

* update

* add the two deprecated pulid nodes

* add docs

* make linter happy

* update docs

* update

* update

* update fill

* docs: update the wechat link (#395)

* update

* add a new links

* update links

* make linter happy

* fixing links

* fixing links

* fixing the links

* fixed the links

* writing the contribution guide

* update

* finished the contribution guide

* make linter happy

* update README

* update the workflows

* update

* update the links of the tests
2025-07-18 00:28:35 -07:00
Muyang Li 4f5b3c8e81 feat: support flux.1-kontext (#314)
* style: make linter happy

* make linter happy

* remove the comments

* update

* update

* update fp8 t5

* ready for test

* update the test score

* update the test score
2025-06-29 07:42:30 -07:00
Muyang Li a87c20120f feat: reusing PuLID folders and add the option of start and end (#291)
* update pulid models

* add the deprecation information

* chore: upgrade the diffusers version

* update

* update

* update

* update

* separate a wrapper

* finished the PuLID loader

* new pulid forward

* offload pulid_ca

* update

* runnable now

* add pulid tests

* bump the version to 0.3.2dev2

* update the nunchaku dependencies

* update the pulid model

* debugging the workflow

* debugging the workflow

* debugging the workflow

* debugging the workflow

* debugging the paths

* debugging the paths

* debugging the paths

* debugging the paths

* fix the paths
2025-06-15 19:50:34 -07:00
Muyang Li 2c666d7114 chore: add tests for the koyha LoRA (#285)
* kohya lora

* update the test

* docs: update README.md

* chore: update the score values

* chore: update the score values

* chore: update the score values

* chore: update the score values

* chore: update the score values

* chore: update the score values
2025-06-12 19:50:19 -07:00
Muyang Li db978b4757 feat: support AWQ 4-bit T5 and single-file model loading (#220)
* better linter

* update deprecation information

* support both model loading

* finished merge models

* update a fill removal workflow

* add legacy test scripts

* add a conversion workflow

* fix the suffix

* update workflows

* download the new models

* start implementing the 4-bit t5

* figuring out how to overwrite

* figuring out how to overwrite

* default workflow is runnable

* my customized loader for work naive clip

* ready to add tests

* ready for tests
2025-06-01 10:43:45 -07:00
Muyang Li c37eda77fe chore: per-script metrics (#206)
* update

* fix the random seed

* fill lora does not work

* update tests

* update tests

* add pyyaml in test dependencies

* fix tests

* fix tests

* adjust the expected psnr

* fix the depth lora lpips

* fix the values
2025-05-26 12:41:36 -07:00