File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ FLUX.1-Kontext
2+ ==============
3+
4+ .. image :: https://huggingface.co/mit-han-lab/nunchaku-artifacts/resolve/main/nunchaku/assets/kontext.png
5+ :alt: FLUX.1-Kontext-dev integration with Nunchaku
6+
7+ Nunchaku supports `FLUX-Kontext-dev <_flux1_kontext_dev >`_,
8+ an advanced model that enables precise image editing through natural language prompts.
9+ The implementation follows the same pattern as described in :doc: `Basic Usage <../basic_usage/basic_usage >`.
10+
11+ .. literalinclude :: ../../../examples/flux.1-kontext-dev.py
12+ :language: python
13+ :caption: Running FLUX.1-Kontext-dev (`examples/flux.1-kontext-dev.py <https://github.com/mit-han-lab/nunchaku/blob/main/examples/flux.1-kontext-dev.py >`__)
14+ :linenos:
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ Check out `DeepCompressor <deepcompressor_repo>`_ for the quantization library.
2222 :caption: Advanced Features
2323
2424 advanced_features/lora.rst
25+ advanced_features/kontext.rst
2526 advanced_features/controlnet.rst
2627 advanced_features/qencoder.rst
2728 advanced_features/offload.rst
Original file line number Diff line number Diff line change 2727.. _controlnet_union_pro2 : https://huggingface.co/Shakker-Labs/FLUX.1-dev-ControlNet-Union-Pro-2.0
2828.. _fbcache : https://github.com/chengzeyi/ParaAttention?tab=readme-ov-file#first-block-cache-our-dynamic-caching
2929.. _pulid : https://arxiv.org/abs/2404.16022
30+ .. _flux1_kontext_dev : https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev
You can’t perform that action at this time.
0 commit comments