Upload src/pipeline.py with huggingface_hub
Browse files- src/pipeline.py +1 -1
src/pipeline.py
CHANGED
@@ -52,7 +52,7 @@ def load_pipeline() -> Pipeline:
|
|
52 |
pipeline.transformer.to(memory_format=torch.channels_last)
|
53 |
# quantize_(pipeline.vae, int8_weight_only())
|
54 |
pipeline.vae.to(memory_format=torch.channels_last)
|
55 |
-
pipeline.vae = torch.compile(pipeline.vae)
|
56 |
pipeline.to("cuda")
|
57 |
|
58 |
for _ in range(2):
|
|
|
52 |
pipeline.transformer.to(memory_format=torch.channels_last)
|
53 |
# quantize_(pipeline.vae, int8_weight_only())
|
54 |
pipeline.vae.to(memory_format=torch.channels_last)
|
55 |
+
pipeline.vae = torch.compile(pipeline.vae, mode="max-autotune", fullgraph=True)
|
56 |
pipeline.to("cuda")
|
57 |
|
58 |
for _ in range(2):
|