Ok, compile
Browse files- src/pipeline.py +1 -1
src/pipeline.py
CHANGED
@@ -47,7 +47,7 @@ def load_pipeline() -> Pipeline:
|
|
47 |
pipeline.transformer.to(memory_format=torch.channels_last)
|
48 |
# pipeline.vae.to(memory_format=torch.channels_last)
|
49 |
# quantize_(pipeline.vae, int8_weight_only())
|
50 |
-
|
51 |
pipeline.to("cuda")
|
52 |
|
53 |
for _ in range(2):
|
|
|
47 |
pipeline.transformer.to(memory_format=torch.channels_last)
|
48 |
# pipeline.vae.to(memory_format=torch.channels_last)
|
49 |
# quantize_(pipeline.vae, int8_weight_only())
|
50 |
+
pipeline.vae = torch.compile(pipeline.vae, fullgraph=True, mode="max-autotune")
|
51 |
pipeline.to("cuda")
|
52 |
|
53 |
for _ in range(2):
|