Files
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

73 lines
3.5 KiB
ReStructuredText

FLUX Text-to-Image
==================
.. _nunchaku-flux.1-dev-json:
nunchaku-flux.1-dev.json
------------------------
.. image:: https://huggingface.co/datasets/nunchaku-tech/cdn/resolve/main/ComfyUI-nunchaku/workflows/nunchaku-flux.1-dev.png
:alt: nunchaku-flux.1-dev.json
:target: https://github.com/nunchaku-tech/ComfyUI-nunchaku/blob/main/example_workflows/nunchaku-flux.1-dev.json
Text-to-image workflow using the Nunchaku FLUX.1-dev model with multiple LoRAs.
**Links:**
- Workflow: :download:`nunchaku-flux.1-dev.json <https://github.com/nunchaku-tech/ComfyUI-nunchaku/blob/main/example_workflows/nunchaku-flux.1-dev.json>`
- Nunchaku FLUX.1-dev: :download:`Hugging Face <https://huggingface.co/nunchaku-tech/nunchaku-flux.1-dev>` or :download:`ModelScope <https://modelscope.cn/models/nunchaku-tech/nunchaku-flux.1-dev>`
(Place in ``models/diffusion_models``)
- Example LoRAs (Place in ``models/loras``):
- :download:`FLUX.1-Turbo-Alpha <https://huggingface.co/alimama-creative/FLUX.1-Turbo-Alpha/blob/main/diffusion_pytorch_model.safetensors>`
- :download:`Ghibsky Illustration <https://huggingface.co/aleksa-codes/flux-ghibsky-illustration/blob/main/lora.safetensors>`
.. note::
If you disable the FLUX.1-Turbo-Alpha LoRA, increase inference steps to at least 20.
.. seealso::
See nodes :ref:`nunchaku-flux-dit-loader`, :ref:`nunchaku-flux-lora-loader`.
.. _nunchaku-flux.1-schnell-json:
nunchaku-flux.1-schnell.json
----------------------------
.. image:: https://huggingface.co/datasets/nunchaku-tech/cdn/resolve/main/ComfyUI-nunchaku/workflows/nunchaku-flux.1-schnell.png
:alt: nunchaku-flux.1-schnell.json
:target: https://github.com/nunchaku-tech/ComfyUI-nunchaku/blob/main/example_workflows/nunchaku-flux.1-schnell.json
Text-to-image workflow using the Nunchaku FLUX.1-schnell model.
**Links:**
- Workflow: :download:`nunchaku-flux.1-schnell.json <https://github.com/nunchaku-tech/ComfyUI-nunchaku/blob/main/example_workflows/nunchaku-flux.1-schnell.json>`
- Nunchaku FLUX.1-schnell: :download:`Hugging Face <https://huggingface.co/nunchaku-tech/nunchaku-flux.1-schnell>` or :download:`ModelScope <https://modelscope.cn/models/nunchaku-tech/nunchaku-flux.1-schnell>`
(Place in ``models/diffusion_models``)
.. seealso::
See node :ref:`nunchaku-flux-dit-loader`.
.. _nunchaku-flux.1-dev-qencoder-json:
nunchaku-flux.1-dev-qencoder.json
---------------------------------
.. image:: https://huggingface.co/datasets/nunchaku-tech/cdn/resolve/main/ComfyUI-nunchaku/workflows/nunchaku-flux.1-dev-qencoder.png
:alt: nunchaku-flux.1-dev-qencoder.json
:target: https://github.com/nunchaku-tech/ComfyUI-nunchaku/blob/main/example_workflows/nunchaku-flux.1-dev-qencoder.json
Text-to-image workflow using FLUX.1-dev with a 4-bit T5 text encoder.
**Links:**
- Workflow: :download:`nunchaku-flux.1-dev-qencoder.json <https://github.com/nunchaku-tech/ComfyUI-nunchaku/blob/main/example_workflows/nunchaku-flux.1-dev-qencoder.json>`
- Nunchaku FLUX.1-dev: :download:`Hugging Face <https://huggingface.co/nunchaku-tech/nunchaku-flux.1-dev>` or :download:`ModelScope <https://modelscope.cn/models/nunchaku-tech/nunchaku-flux.1-dev>`
(Place in ``models/diffusion_models``)
- 4-bit T5 encoder: :download:`Hugging Face <https://huggingface.co/nunchaku-tech/nunchaku-t5>` or :download:`ModelScope <https://modelscope.cn/models/nunchaku-tech/nunchaku-t5>`
(Place in ``models/text_encoders``)
.. seealso::
See nodes :ref:`nunchaku-flux-dit-loader`, :ref:`nunchaku-text-encoder-loader-v2`