ford442 commited on
Commit
e9dad0b
·
verified ·
1 Parent(s): e19e2a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -196,7 +196,7 @@ def load_and_prepare_model():
196
  #pipe.unet.to(memory_format=torch.channels_last)
197
  #pipe.enable_vae_tiling()
198
  #pipe.unet = torch.compile(pipe.unet, backend="hidet")
199
- pipe.unet = torch.compile(pipe.unet, backend="tensorrt", dynamic=False)
200
  pipe.to(device=device, dtype=torch.bfloat16)
201
 
202
  return pipe
 
196
  #pipe.unet.to(memory_format=torch.channels_last)
197
  #pipe.enable_vae_tiling()
198
  #pipe.unet = torch.compile(pipe.unet, backend="hidet")
199
+ pipe.unet = torch.compile(pipe.unet, backend="cudagraphs", dynamic=False)
200
  pipe.to(device=device, dtype=torch.bfloat16)
201
 
202
  return pipe