ford442 commited on
Commit
3d9b0e7
·
verified ·
1 Parent(s): ce19181

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -172,7 +172,7 @@ def load_and_prepare_model():
172
  return pipe
173
 
174
  hidet.option.parallel_build(True)
175
- #hidet.option.parallel_tune(-1,1.0)
176
  #hidet.torch.dynamo_config.steal_weights(False)
177
  torch._dynamo.config.suppress_errors = True
178
  torch._dynamo.disallow_in_graph(diffusers.models.attention.BasicTransformerBlock)
@@ -187,7 +187,7 @@ hidet.option.cache_dir("local_cache")
187
  #hidet.torch.dynamo_config.use_fp16_reduction(True)
188
  # use tensorcore
189
  hidet.torch.dynamo_config.use_tensor_core()
190
- #hidet.torch.dynamo_config.steal_weights(False)
191
 
192
  # Preload and compile both models
193
 
 
172
  return pipe
173
 
174
  hidet.option.parallel_build(True)
175
+ hidet.option.parallel_tune(2,2.0)
176
  #hidet.torch.dynamo_config.steal_weights(False)
177
  torch._dynamo.config.suppress_errors = True
178
  torch._dynamo.disallow_in_graph(diffusers.models.attention.BasicTransformerBlock)
 
187
  #hidet.torch.dynamo_config.use_fp16_reduction(True)
188
  # use tensorcore
189
  hidet.torch.dynamo_config.use_tensor_core()
190
+ hidet.torch.dynamo_config.steal_weights(False)
191
 
192
  # Preload and compile both models
193