ford442 commited on
Commit
c0f0875
·
verified ·
1 Parent(s): ae60cc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -212,7 +212,7 @@ def load_and_prepare_model():
212
  #pipe.unet = torch.compile(pipe.unet, dynamic=False)
213
  #pipe.unet = torch.compile(pipe.unet, backend="hidet", dynamic=False, options={"search_space": 0})
214
  #pipe.unet = torch.compile(pipe.unet, backend="torch_tensorrt", dynamic=False, options={"precision": torch.bfloat16,"optimization_level": 4,})
215
- pipe.to(device=device, dtype=torch.bfloat16)
216
 
217
  return pipe
218
 
 
212
  #pipe.unet = torch.compile(pipe.unet, dynamic=False)
213
  #pipe.unet = torch.compile(pipe.unet, backend="hidet", dynamic=False, options={"search_space": 0})
214
  #pipe.unet = torch.compile(pipe.unet, backend="torch_tensorrt", dynamic=False, options={"precision": torch.bfloat16,"optimization_level": 4,})
215
+ pipe.to(torch.device('cuda:0'), torch.bfloat16)
216
 
217
  return pipe
218