1 line less
Browse files- src/pipeline.py +1 -2
src/pipeline.py
CHANGED
@@ -47,9 +47,8 @@ def load_pipeline() -> Pipeline:
|
|
47 |
torch_dtype=torch.bfloat16,
|
48 |
).to("cuda")
|
49 |
|
50 |
-
pipeline.
|
51 |
pipeline.transformer = torch.compile(pipeline.transformer, mode="max-autotune", fullgraph=False)
|
52 |
-
pipeline.vae.to(memory_format=torch.channels_last)
|
53 |
quantize_(pipeline.vae, int8_weight_only())
|
54 |
pipeline.vae = torch.compile(pipeline.vae, fullgraph=True, mode="max-autotune")
|
55 |
|
|
|
47 |
torch_dtype=torch.bfloat16,
|
48 |
).to("cuda")
|
49 |
|
50 |
+
pipeline.to(memory_format=torch.channels_last)
|
51 |
pipeline.transformer = torch.compile(pipeline.transformer, mode="max-autotune", fullgraph=False)
|
|
|
52 |
quantize_(pipeline.vae, int8_weight_only())
|
53 |
pipeline.vae = torch.compile(pipeline.vae, fullgraph=True, mode="max-autotune")
|
54 |
|