jokerbit commited on
Commit
1562e58
·
verified ·
1 Parent(s): 2369321

Upload src/pipeline.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. src/pipeline.py +1 -1
src/pipeline.py CHANGED
@@ -48,7 +48,7 @@ def load_pipeline() -> Pipeline:
48
  ).to("cuda")
49
 
50
  pipeline.transformer.to(memory_format=torch.channels_last)
51
- pipeline.transformer = torch.compile(pipeline.transformer, mode="max-autotune", fullgraph=True)
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")
 
48
  ).to("cuda")
49
 
50
  pipeline.transformer.to(memory_format=torch.channels_last)
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")