Upload src/pipeline.py with huggingface_hub
Browse files- src/pipeline.py +2 -1
src/pipeline.py
CHANGED
@@ -50,8 +50,9 @@ def load_pipeline() -> Pipeline:
|
|
50 |
|
51 |
pipeline.transformer.to(memory_format=torch.channels_last)
|
52 |
pipeline.vae.to(memory_format=torch.channels_last)
|
|
|
|
|
53 |
quantize_(pipeline.vae, int8_weight_only())
|
54 |
-
pipeline.transformer = torch.compile(pipeline.transformer, backend="tensorrt")
|
55 |
pipeline.vae = torch.compile(pipeline.vae, fullgraph=True, backend="tensorrt")
|
56 |
|
57 |
PROMPT = 'semiconformity, peregrination, quip, twineless, emotionless, tawa, depickle'
|
|
|
50 |
|
51 |
pipeline.transformer.to(memory_format=torch.channels_last)
|
52 |
pipeline.vae.to(memory_format=torch.channels_last)
|
53 |
+
pipeline.text_encoder.to(memory_format=torch.channels_last)
|
54 |
+
pipeline.text_encoder = torch.compile(pipeline.text_encoder)
|
55 |
quantize_(pipeline.vae, int8_weight_only())
|
|
|
56 |
pipeline.vae = torch.compile(pipeline.vae, fullgraph=True, backend="tensorrt")
|
57 |
|
58 |
PROMPT = 'semiconformity, peregrination, quip, twineless, emotionless, tawa, depickle'
|