memory last
Browse files- src/pipeline.py +1 -1
src/pipeline.py
CHANGED
@@ -49,7 +49,7 @@ def load_pipeline() -> Pipeline:
|
|
49 |
torch_dtype=torch.bfloat16,
|
50 |
)
|
51 |
|
52 |
-
|
53 |
# quantize_(pipeline.vae, int8_weight_only())
|
54 |
# pipeline.vae = torch.compile(pipeline.vae, mode="reduce-overhead")
|
55 |
pipeline.to("cuda")
|
|
|
49 |
torch_dtype=torch.bfloat16,
|
50 |
)
|
51 |
|
52 |
+
pipeline.transformer.to(memory_format=torch.channels_last)
|
53 |
# quantize_(pipeline.vae, int8_weight_only())
|
54 |
# pipeline.vae = torch.compile(pipeline.vae, mode="reduce-overhead")
|
55 |
pipeline.to("cuda")
|