Skip to content

Commit 1c97360

Browse files
committed
Make float16 inference work with FLUX on 24GB GPU.
1 parent 74d6fce commit 1c97360

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

invokeai/app/invocations/flux_text_to_image.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ def _run_diffusion(
147147
transformer=transformer,
148148
)
149149

150+
t5_embeddings = t5_embeddings.to(dtype=transformer.dtype)
151+
clip_embeddings = clip_embeddings.to(dtype=transformer.dtype)
152+
150153
latents = flux_pipeline_with_transformer(
151154
height=self.height,
152155
width=self.width,

0 commit comments

Comments
 (0)