silencer107
commited on
Commit
•
659d850
1
Parent(s):
59784e6
Update src/pipeline.py
Browse files- src/pipeline.py +1 -0
src/pipeline.py
CHANGED
@@ -12,6 +12,7 @@ def load_pipeline() -> StableDiffusionXLPipeline:
|
|
12 |
torch_dtype=torch.float16,
|
13 |
)
|
14 |
pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taesdxl", torch_dtype=torch.float16)
|
|
|
15 |
pipe.to("cuda")
|
16 |
|
17 |
return pipeline
|
|
|
12 |
torch_dtype=torch.float16,
|
13 |
)
|
14 |
pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taesdxl", torch_dtype=torch.float16)
|
15 |
+
pipeline.unet = torch.compile(pipeline.unet, mode='reduce-overhead', fullgraph=True)
|
16 |
pipe.to("cuda")
|
17 |
|
18 |
return pipeline
|