ford442 commited on
Commit
670f5d9
·
verified ·
1 Parent(s): f12865f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -6,8 +6,6 @@
6
  # copies of the Software, and to permit persons to whom the Software is
7
  import spaces
8
  import os
9
- import subprocess
10
- subprocess.run(['prlimit', '--stack=536870912'])
11
 
12
  import random
13
  import uuid
@@ -174,14 +172,14 @@ def load_and_prepare_model():
174
  return pipe
175
 
176
  hidet.option.parallel_build(True)
177
- hidet.option.parallel_tune(-1,2.0)
178
  #hidet.torch.dynamo_config.steal_weights(False)
179
  torch._dynamo.config.suppress_errors = True
180
  torch._dynamo.disallow_in_graph(diffusers.models.attention.BasicTransformerBlock)
181
 
182
 
183
  # more search
184
- hidet.torch.dynamo_config.search_space(2)
185
  #hidet.torch.dynamo_config.dump_graph_ir("./local_graph")
186
  hidet.option.cache_dir("local_cache")
187
  # automatically transform the model to use float16 data type
 
6
  # copies of the Software, and to permit persons to whom the Software is
7
  import spaces
8
  import os
 
 
9
 
10
  import random
11
  import uuid
 
172
  return pipe
173
 
174
  hidet.option.parallel_build(True)
175
+ hidet.option.parallel_tune(-1,4.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)
179
 
180
 
181
  # more search
182
+ hidet.torch.dynamo_config.search_space(0)
183
  #hidet.torch.dynamo_config.dump_graph_ir("./local_graph")
184
  hidet.option.cache_dir("local_cache")
185
  # automatically transform the model to use float16 data type