sdxl.rst 813 Bytes
Newer Older
dengdong's avatar
dengdong committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Stable Diffusion XL
===================

The following is the example of running Nunchaku INT4 version of SDXL and SDXL-Turbo text-to-image pipeline.

.. tabs::

   .. tab:: SDXL

      .. literalinclude:: ../../../examples/v1/sdxl.py
         :language: python
         :caption: Running Nunchaku SDXL (`examples/v1/sdxl.py <https://github.com/nunchaku-tech/nunchaku/blob/main/examples/v1/sdxl.py>`__)
         :linenos:

   .. tab:: SDXL-turbo

      .. literalinclude:: ../../../examples/v1/sdxl-turbo.py
         :language: python
         :caption: Running Nunchaku SDXL-Turbo (`examples/v1/sdxl-turbo.py <https://github.com/nunchaku-tech/nunchaku/blob/main/examples/v1/sdxl-turbo.py>`__)
         :linenos:


For more details, see :class:`~nunchaku.models.unets.unet_sdxl.NunchakuSDXLUNet2DConditionModel`.