Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Check out `DeepCompressor <github_deepcompressor_>`_ for the quantization librar
usage/attention.rst
usage/fbcache.rst
usage/pulid.rst
usage/ip_adapter.rst

.. toctree::
:maxdepth: 1
Expand Down
1 change: 1 addition & 0 deletions docs/source/links/huggingface.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
.. _hf_nunchaku-flux1-dev-int4: https://huggingface.co/mit-han-lab/nunchaku-flux.1-dev/blob/main/svdq-int4_r32-flux.1-dev.safetensors
.. _hf_depth_anything: https://huggingface.co/LiheYoung/depth-anything-large-hf
.. _hf_nunchaku_wheels: https://huggingface.co/nunchaku-tech/nunchaku
.. _hf_ip-adapterv2: https://huggingface.co/XLabs-AI/flux-ip-adapter-v2
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
nunchaku.models.ip_adapter.diffusers_adapters.flux
==================================================

.. automodule:: nunchaku.models.ip_adapter.diffusers_adapters.flux
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
nunchaku.models.ip_adapter.diffusers_adapters
=============================================

.. automodule:: nunchaku.models.ip_adapter.diffusers_adapters
:members:
:undoc-members:
:show-inheritance:

.. toctree::
:maxdepth: 4

nunchaku.models.ip_adapter.diffusers_adapters.flux
8 changes: 8 additions & 0 deletions docs/source/python_api/nunchaku.models.ip_adapter.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
nunchaku.models.ip_adapter
==========================

.. toctree::
:maxdepth: 4

nunchaku.models.ip_adapter.diffusers_adapters
nunchaku.models.ip_adapter.utils
7 changes: 7 additions & 0 deletions docs/source/python_api/nunchaku.models.ip_adapter.utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
nunchaku.models.ip_adapter.utils
================================

.. automodule:: nunchaku.models.ip_adapter.utils
:members:
:undoc-members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/source/python_api/nunchaku.models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ nunchaku.models
nunchaku.models.transformers
nunchaku.models.text_encoders
nunchaku.models.pulid
nunchaku.models.ip_adapter
nunchaku.models.safety_checker
38 changes: 38 additions & 0 deletions docs/source/usage/ip_adapter.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
IP Adapter
==========

Nunchaku supports `IP Adapter <hf_ip-adapterv2_>`_, an adapter achieving image prompt capability for the FLUX.1-dev

.. literalinclude:: ../../../examples/flux.1-dev-IP-adapter.py
:language: python
:caption: IP Adapter Example (`examples/flux.1-dev-IP-adapter.py <https://github.com/nunchaku-tech/nunchaku/blob/main/examples/flux.1-dev-IP-adapter.py>`__)
:linenos:

The IP Adapter integration in Nunchaku follows these main steps:

**Model Initialization**:

- Load a Nunchaku FLUX.1-dev transformer model using :meth:`~nunchaku.models.transformers.transformer_flux.NunchakuFluxTransformer2dModel.from_pretrained`.
- Initialize the FLUX pipeline with :class:`diffusers.FluxPipeline`, passing the transformer and setting the appropriate precision.

**IP Adapter Loading**:

- Use ``pipeline.load_ip_adapter`` to load the IP Adapter weights and the CLIP image encoder.

- ``pretrained_model_name_or_path_or_dict``: Hugging Face repo or local path for the IP Adapter weights.
- ``weight_name``: Name of the weights file (e.g., ``ip_adapter.safetensors``).
- ``image_encoder_pretrained_model_name_or_path``: Name or path of the CLIP image encoder.
- Apply the IP Adapter to the pipeline with :func:`~nunchaku.models.ip_adapter.diffusers_adapters.apply_IPA_on_pipe`, specifying the adapter scale and repo ID.

**Caching (Optional)**:

Enable caching for faster inference and reduced memory usage with :func:`~nunchaku.caching.diffusers_adapters.apply_cache_on_pipe`. See :doc:`fbcache` for more details.

**Image Generation**:

- Load the image to be used as the image prompt (IP Adapter reference).
- Call the pipeline with:

- ``prompt``: The text prompt for generation.
- ``ip_adapter_image``: The reference image (must be RGB).
- The output image will reflect both the text prompt and the visual style/content of the reference image.
9 changes: 4 additions & 5 deletions docs/source/usage/pulid.rst
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
PuLID
=====

Nunchaku integrates `PuLID <_pulid_paper>`_, a tuning-free identity customization method for text-to-image generation.
.. image:: https://huggingface.co/datasets/nunchaku-tech/cdn/resolve/main/ComfyUI-nunchaku/workflows/nunchaku-flux.1-dev-pulid.png

Nunchaku integrates `PuLID <paper_pulid_>`_, a tuning-free identity customization method for text-to-image generation.
This feature allows you to generate images that maintain specific identity characteristics from reference photos.

.. literalinclude:: ../../../examples/flux.1-dev-pulid.py
:language: python
:caption: PuLID Example (`examples/flux.1-dev-pulid.py <https://github.com/nunchaku-tech/nunchaku/blob/main/examples/flux.1-dev-pulid.py>`__)
:linenos:

Implementation Overview
-----------------------

The PuLID integration follows these key steps:

**Model Initialization** (lines 12-20):
Load a Nunchaku FLUX.1-dev model using :class:`~nunchaku.models.transformers.transformer_flux.NunchakuFluxTransformer2dModel`
Load a Nunchaku FLUX.1-dev model using :meth:`~nunchaku.models.transformers.transformer_flux.NunchakuFluxTransformer2dModel.from_pretrained`
and initialize the FLUX PuLID pipeline with :class:`~nunchaku.pipeline.pipeline_flux_pulid.PuLIDFluxPipeline`.

**Forward Method Override** (line 22):
Expand Down
2 changes: 1 addition & 1 deletion examples/flux.1-canny-dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

precision = get_precision() # auto-detect your precision is 'int4' or 'fp4' based on your GPU
transformer = NunchakuFluxTransformer2dModel.from_pretrained(
f"mit-han-lab/nunchaku-flux.1-canny-dev/svdq-{precision}_r32-flux.1-canny-dev.safetensors"
f"nunchaku-tech/nunchaku-flux.1-canny-dev/svdq-{precision}_r32-flux.1-canny-dev.safetensors"
)
pipe = FluxControlPipeline.from_pretrained(
"black-forest-labs/FLUX.1-Canny-dev", transformer=transformer, torch_dtype=torch.bfloat16
Expand Down
2 changes: 1 addition & 1 deletion examples/flux.1-depth-dev-lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

precision = get_precision() # auto-detect your precision is 'int4' or 'fp4' based on your GPU
transformer = NunchakuFluxTransformer2dModel.from_pretrained(
f"mit-han-lab/nunchaku-flux.1-depth-dev/svdq-{precision}_r32-flux.1-depth-dev.safetensors"
f"nunchaku-tech/nunchaku-flux.1-depth-dev/svdq-{precision}_r32-flux.1-depth-dev.safetensors"
)
pipe = FluxControlPipeline.from_pretrained(
"black-forest-labs/FLUX.1-dev", transformer=transformer, torch_dtype=torch.bfloat16
Expand Down
2 changes: 1 addition & 1 deletion examples/flux.1-depth-dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

precision = get_precision() # auto-detect your precision is 'int4' or 'fp4' based on your GPU
transformer = NunchakuFluxTransformer2dModel.from_pretrained(
f"mit-han-lab/nunchaku-flux.1-depth-dev/svdq-{precision}_r32-flux.1-depth-dev.safetensors"
f"nunchaku-tech/nunchaku-flux.1-depth-dev/svdq-{precision}_r32-flux.1-depth-dev.safetensors"
)

pipe = FluxControlPipeline.from_pretrained(
Expand Down
43 changes: 43 additions & 0 deletions examples/flux.1-dev-IP-adapter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import torch
from diffusers import FluxPipeline
from diffusers.utils import load_image

from nunchaku import NunchakuFluxTransformer2dModel
from nunchaku.caching.diffusers_adapters import apply_cache_on_pipe
from nunchaku.models.ip_adapter.diffusers_adapters import apply_IPA_on_pipe
from nunchaku.utils import get_precision

precision = get_precision()
transformer = NunchakuFluxTransformer2dModel.from_pretrained(
f"nunchaku-tech/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors"
)
pipeline = FluxPipeline.from_pretrained(
"black-forest-labs/FLUX.1-dev", transformer=transformer, torch_dtype=torch.bfloat16
).to("cuda")

pipeline.load_ip_adapter(
pretrained_model_name_or_path_or_dict="XLabs-AI/flux-ip-adapter-v2",
weight_name="ip_adapter.safetensors",
image_encoder_pretrained_model_name_or_path="openai/clip-vit-large-patch14",
)

apply_IPA_on_pipe(pipeline, ip_adapter_scale=1.1, repo_id="XLabs-AI/flux-ip-adapter-v2")

apply_cache_on_pipe(
pipeline,
use_double_fb_cache=True,
residual_diff_threshold_multi=0.09,
residual_diff_threshold_single=0.12,
)

IP_image = load_image(
"https://huggingface.co/datasets/nunchaku-tech/test-data/resolve/main/ComfyUI-nunchaku/inputs/monalisa.jpg"
)

image = pipeline(
prompt="holding an sign saying 'SVDQuant is fast!'",
ip_adapter_image=IP_image.convert("RGB"),
num_inference_steps=50,
).images[0]

image.save(f"flux.1-dev-IP-adapter-{precision}.png")
2 changes: 1 addition & 1 deletion examples/flux.1-dev-cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

precision = get_precision() # auto-detect your precision is 'int4' or 'fp4' based on your GPU
transformer = NunchakuFluxTransformer2dModel.from_pretrained(
f"mit-han-lab/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors"
f"nunchaku-tech/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors"
)
pipeline = FluxPipeline.from_pretrained(
"black-forest-labs/FLUX.1-dev", transformer=transformer, torch_dtype=torch.bfloat16
Expand Down
2 changes: 1 addition & 1 deletion examples/flux.1-dev-controlnet-union-pro.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
precision = get_precision()
need_offload = get_gpu_memory() < 36
transformer = NunchakuFluxTransformer2dModel.from_pretrained(
f"mit-han-lab/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors",
f"nunchaku-tech/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors",
torch_dtype=torch.bfloat16,
offload=need_offload,
)
Expand Down
2 changes: 1 addition & 1 deletion examples/flux.1-dev-double_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
precision = get_precision()

transformer = NunchakuFluxTransformer2dModel.from_pretrained(
f"mit-han-lab/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors"
f"nunchaku-tech/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors"
)

pipeline = FluxPipeline.from_pretrained(
Expand Down
2 changes: 1 addition & 1 deletion examples/flux.1-dev-double_cache_offloading.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
precision = get_precision()

transformer = NunchakuFluxTransformer2dModel.from_pretrained(
f"mit-han-lab/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors",
f"nunchaku-tech/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors",
offload=True,
)

Expand Down
2 changes: 1 addition & 1 deletion examples/flux.1-dev-fp16attn.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

precision = get_precision() # auto-detect your precision is 'int4' or 'fp4' based on your GPU
transformer = NunchakuFluxTransformer2dModel.from_pretrained(
f"mit-han-lab/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors"
f"nunchaku-tech/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors"
)
transformer.set_attention_impl("nunchaku-fp16") # set attention implementation to fp16
pipeline = FluxPipeline.from_pretrained(
Expand Down
2 changes: 1 addition & 1 deletion examples/flux.1-dev-lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

precision = get_precision() # auto-detect your precision is 'int4' or 'fp4' based on your GPU
transformer = NunchakuFluxTransformer2dModel.from_pretrained(
f"mit-han-lab/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors"
f"nunchaku-tech/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors"
)
pipeline = FluxPipeline.from_pretrained(
"black-forest-labs/FLUX.1-dev", transformer=transformer, torch_dtype=torch.bfloat16
Expand Down
2 changes: 1 addition & 1 deletion examples/flux.1-dev-multiple-lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

precision = get_precision() # auto-detect your precision is 'int4' or 'fp4' based on your GPU
transformer = NunchakuFluxTransformer2dModel.from_pretrained(
f"mit-han-lab/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors"
f"nunchaku-tech/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors"
)
pipeline = FluxPipeline.from_pretrained(
"black-forest-labs/FLUX.1-dev", transformer=transformer, torch_dtype=torch.bfloat16
Expand Down
2 changes: 1 addition & 1 deletion examples/flux.1-dev-offload.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

precision = get_precision() # auto-detect your precision is 'int4' or 'fp4' based on your GPU
transformer = NunchakuFluxTransformer2dModel.from_pretrained(
f"mit-han-lab/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors", offload=True
f"nunchaku-tech/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors", offload=True
) # set offload to False if you want to disable offloading
pipeline = FluxPipeline.from_pretrained(
"black-forest-labs/FLUX.1-dev", transformer=transformer, torch_dtype=torch.bfloat16
Expand Down
2 changes: 1 addition & 1 deletion examples/flux.1-dev-pulid.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

precision = get_precision()
transformer = NunchakuFluxTransformer2dModel.from_pretrained(
f"mit-han-lab/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors"
f"nunchaku-tech/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors"
)

pipeline = PuLIDFluxPipeline.from_pretrained(
Expand Down
2 changes: 1 addition & 1 deletion examples/flux.1-dev-qencoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

precision = get_precision() # auto-detect your precision is 'int4' or 'fp4' based on your GPU
transformer = NunchakuFluxTransformer2dModel.from_pretrained(
f"mit-han-lab/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors"
f"nunchaku-tech/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors"
)
text_encoder_2 = NunchakuT5EncoderModel.from_pretrained("mit-han-lab/nunchaku-t5/awq-int4-flux.1-t5xxl.safetensors")
pipeline = FluxPipeline.from_pretrained(
Expand Down
2 changes: 1 addition & 1 deletion examples/flux.1-dev-teacache.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

precision = get_precision() # auto-detect your precision is 'int4' or 'fp4' based on your GPU
transformer = NunchakuFluxTransformer2dModel.from_pretrained(
f"mit-han-lab/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors"
f"nunchaku-tech/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors"
)
pipeline = FluxPipeline.from_pretrained(
"black-forest-labs/FLUX.1-dev", transformer=transformer, torch_dtype=torch.bfloat16
Expand Down
2 changes: 1 addition & 1 deletion examples/flux.1-dev-turing.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

precision = get_precision() # auto-detect your precision is 'int4' or 'fp4' based on your GPU
transformer = NunchakuFluxTransformer2dModel.from_pretrained(
f"mit-han-lab/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors",
f"nunchaku-tech/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors",
offload=True,
torch_dtype=torch.float16, # Turing GPUs only support fp16 precision
) # set offload to False if you want to disable offloading
Expand Down
2 changes: 1 addition & 1 deletion examples/flux.1-dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

precision = get_precision() # auto-detect your precision is 'int4' or 'fp4' based on your GPU
transformer = NunchakuFluxTransformer2dModel.from_pretrained(
f"mit-han-lab/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors"
f"nunchaku-tech/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors"
)
pipeline = FluxPipeline.from_pretrained(
"black-forest-labs/FLUX.1-dev", transformer=transformer, torch_dtype=torch.bfloat16
Expand Down
2 changes: 1 addition & 1 deletion examples/flux.1-fill-dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

precision = get_precision() # auto-detect your precision is 'int4' or 'fp4' based on your GPU
transformer = NunchakuFluxTransformer2dModel.from_pretrained(
f"mit-han-lab/nunchaku-flux.1-fill-dev/svdq-{precision}_r32-flux.1-fill-dev.safetensors"
f"nunchaku-tech/nunchaku-flux.1-fill-dev/svdq-{precision}_r32-flux.1-fill-dev.safetensors"
)
pipe = FluxFillPipeline.from_pretrained(
"black-forest-labs/FLUX.1-Fill-dev", transformer=transformer, torch_dtype=torch.bfloat16
Expand Down
2 changes: 1 addition & 1 deletion examples/flux.1-kontext-dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from nunchaku.utils import get_precision

transformer = NunchakuFluxTransformer2dModel.from_pretrained(
f"mit-han-lab/nunchaku-flux.1-kontext-dev/svdq-{get_precision()}_r32-flux.1-kontext-dev.safetensors"
f"nunchaku-tech/nunchaku-flux.1-kontext-dev/svdq-{get_precision()}_r32-flux.1-kontext-dev.safetensors"
)

pipeline = FluxKontextPipeline.from_pretrained(
Expand Down
2 changes: 1 addition & 1 deletion examples/flux.1-redux-dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"black-forest-labs/FLUX.1-Redux-dev", torch_dtype=torch.bfloat16
).to("cuda")
transformer = NunchakuFluxTransformer2dModel.from_pretrained(
f"mit-han-lab/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors"
f"nunchaku-tech/nunchaku-flux.1-dev/svdq-{precision}_r32-flux.1-dev.safetensors"
)
pipe = FluxPipeline.from_pretrained(
"black-forest-labs/FLUX.1-dev",
Expand Down
2 changes: 1 addition & 1 deletion examples/flux.1-schnell.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

precision = get_precision() # auto-detect your precision is 'int4' or 'fp4' based on your GPU
transformer = NunchakuFluxTransformer2dModel.from_pretrained(
f"mit-han-lab/nunchaku-flux.1-schnell/svdq-{precision}_r32-flux.1-schnell.safetensors"
f"nunchaku-tech/nunchaku-flux.1-schnell/svdq-{precision}_r32-flux.1-schnell.safetensors"
)
pipeline = FluxPipeline.from_pretrained(
"black-forest-labs/FLUX.1-schnell", transformer=transformer, torch_dtype=torch.bfloat16
Expand Down
2 changes: 1 addition & 1 deletion examples/sana1.6b-cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from nunchaku.caching.diffusers_adapters import apply_cache_on_pipe

transformer = NunchakuSanaTransformer2DModel.from_pretrained(
"mit-han-lab/nunchaku-sana/svdq-int4_r32-sana1.6b.safetensors"
"nunchaku-tech/nunchaku-sana/svdq-int4_r32-sana1.6b.safetensors"
)
pipe = SanaPipeline.from_pretrained(
"Efficient-Large-Model/Sana_1600M_1024px_BF16_diffusers",
Expand Down
2 changes: 1 addition & 1 deletion examples/sana1.6b.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from nunchaku import NunchakuSanaTransformer2DModel

transformer = NunchakuSanaTransformer2DModel.from_pretrained(
"mit-han-lab/nunchaku-sana/svdq-int4_r32-sana1.6b.safetensors"
"nunchaku-tech/nunchaku-sana/svdq-int4_r32-sana1.6b.safetensors"
)
pipe = SanaPipeline.from_pretrained(
"Efficient-Large-Model/Sana_1600M_1024px_BF16_diffusers",
Expand Down
2 changes: 1 addition & 1 deletion examples/sana1.6b_pag.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from nunchaku import NunchakuSanaTransformer2DModel

transformer = NunchakuSanaTransformer2DModel.from_pretrained(
"mit-han-lab/nunchaku-sana/svdq-int4_r32-sana1.6b.safetensors", pag_layers=8
"nunchaku-tech/nunchaku-sana/svdq-int4_r32-sana1.6b.safetensors", pag_layers=8
)
pipe = SanaPAGPipeline.from_pretrained(
"Efficient-Large-Model/Sana_1600M_1024px_BF16_diffusers",
Expand Down
Loading