Upload src/pipeline.py with huggingface_hub
Browse files- src/pipeline.py +2 -1
src/pipeline.py
CHANGED
@@ -54,9 +54,10 @@ def load_pipeline() -> Pipeline:
|
|
54 |
pipeline.to(memory_format=torch.channels_last)
|
55 |
quantize_(pipeline.vae, int8_weight_only())
|
56 |
pipeline.vae = my_partial_compile(pipeline.vae)
|
|
|
57 |
with torch.inference_mode():
|
58 |
for _ in range(2):
|
59 |
-
pipeline("
|
60 |
|
61 |
return pipeline
|
62 |
|
|
|
54 |
pipeline.to(memory_format=torch.channels_last)
|
55 |
quantize_(pipeline.vae, int8_weight_only())
|
56 |
pipeline.vae = my_partial_compile(pipeline.vae)
|
57 |
+
pipeline.transformer = torch.compile(pipeline.transformer)
|
58 |
with torch.inference_mode():
|
59 |
for _ in range(2):
|
60 |
+
pipeline("cats running on a road with a dog chasing", num_inference_steps=4)
|
61 |
|
62 |
return pipeline
|
63 |
|