Update src/pipeline.py
Browse files- src/pipeline.py +1 -0
src/pipeline.py
CHANGED
|
@@ -33,6 +33,7 @@ def load_pipeline() -> Pipeline:
|
|
| 33 |
pipeline.text_encoder_2.to(memory_format=torch.channels_last)
|
| 34 |
pipeline.transformer.to(memory_format=torch.channels_last)
|
| 35 |
pipeline.vae.to(memory_format=torch.channels_last)
|
|
|
|
| 36 |
pipeline._exclude_from_cpu_offload = ["vae"]
|
| 37 |
pipeline.enable_sequential_cpu_offload()
|
| 38 |
for _ in range(1):
|
|
|
|
| 33 |
pipeline.text_encoder_2.to(memory_format=torch.channels_last)
|
| 34 |
pipeline.transformer.to(memory_format=torch.channels_last)
|
| 35 |
pipeline.vae.to(memory_format=torch.channels_last)
|
| 36 |
+
pipe.vae = torch.compile(pipe.vae)
|
| 37 |
pipeline._exclude_from_cpu_offload = ["vae"]
|
| 38 |
pipeline.enable_sequential_cpu_offload()
|
| 39 |
for _ in range(1):
|