John6666 commited on
Commit
2184e74
·
verified ·
1 Parent(s): fb6d062

Upload handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -15,7 +15,7 @@ if IS_COMPILE:
15
 
16
  def compile_pipeline(pipe) -> Any:
17
  pipe.transformer.to(memory_format=torch.channels_last)
18
- pipe.transformer = torch.compile(pipe.transformer, mode="default", fullgraph=False, dynamic=False, backend="inductor")
19
  #pipe.vae.to(memory_format=torch.channels_last)
20
  #pipe.vae = torch.compile(pipe.vae, mode="reduce-overhead", fullgraph=False, dynamic=False, backend="inductor")
21
  return pipe
 
15
 
16
  def compile_pipeline(pipe) -> Any:
17
  pipe.transformer.to(memory_format=torch.channels_last)
18
+ pipe.transformer = torch.compile(pipe.transformer, mode="reduce-overhead", fullgraph=False, dynamic=False, backend="inductor")
19
  #pipe.vae.to(memory_format=torch.channels_last)
20
  #pipe.vae = torch.compile(pipe.vae, mode="reduce-overhead", fullgraph=False, dynamic=False, backend="inductor")
21
  return pipe