jokerbit commited on
Commit
3cfed3c
·
verified ·
1 Parent(s): a69274c

Get backend - 3

Browse files
Files changed (1) hide show
  1. src/pipeline.py +3 -3
src/pipeline.py CHANGED
@@ -55,9 +55,9 @@ def load_pipeline() -> Pipeline:
55
  ).to("cuda")
56
 
57
  pipeline.to(memory_format=torch.channels_last)
58
- pipeline.transformer = torch.compile(pipeline.transformer)
59
- # quantize_(pipeline.vae, int8_weight_only())
60
- pipeline.vae = torch.compile(pipeline.vae, backend="tensorrt")
61
  # pipeline.set_progress_bar_config(disable=True)
62
 
63
  PROMPT = 'semiconformity, peregrination, quip, twineless, emotionless, tawa, depickle'
 
55
  ).to("cuda")
56
 
57
  pipeline.to(memory_format=torch.channels_last)
58
+ pipeline.transformer = torch.compile(pipeline.transformer, mode="max-autotune")
59
+ quantize_(pipeline.vae, int8_weight_only())
60
+ pipeline.vae = torch.compile(pipeline.vae, mode="max-autotune")
61
  # pipeline.set_progress_bar_config(disable=True)
62
 
63
  PROMPT = 'semiconformity, peregrination, quip, twineless, emotionless, tawa, depickle'