Skip to content

Commit 992629c

Browse files
committed
add kontext
1 parent 4aaba01 commit 992629c

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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:

docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

docs/source/links.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@
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

0 commit comments

Comments
 (0)