Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -166,7 +166,7 @@ def load_and_prepare_model():
|
|
166 |
return pipe
|
167 |
|
168 |
hidet.option.parallel_build(True)
|
169 |
-
hidet.option.parallel_tune(-1,
|
170 |
hidet.torch.dynamo_config.steal_weights(False)
|
171 |
torch._dynamo.config.suppress_errors = True
|
172 |
torch._dynamo.disallow_in_graph(diffusers.models.attention.BasicTransformerBlock)
|
@@ -174,7 +174,7 @@ torch._dynamo.disallow_in_graph(diffusers.models.attention.BasicTransformerBlock
|
|
174 |
|
175 |
|
176 |
# more search
|
177 |
-
hidet.torch.dynamo_config.search_space(
|
178 |
#hidet.torch.dynamo_config.dump_graph_ir("./local_graph")
|
179 |
hidet.option.cache_dir("local_cache")
|
180 |
# automatically transform the model to use float16 data type
|
|
|
166 |
return pipe
|
167 |
|
168 |
hidet.option.parallel_build(True)
|
169 |
+
hidet.option.parallel_tune(-1,4.0)
|
170 |
hidet.torch.dynamo_config.steal_weights(False)
|
171 |
torch._dynamo.config.suppress_errors = True
|
172 |
torch._dynamo.disallow_in_graph(diffusers.models.attention.BasicTransformerBlock)
|
|
|
174 |
|
175 |
|
176 |
# more search
|
177 |
+
hidet.torch.dynamo_config.search_space(1)
|
178 |
#hidet.torch.dynamo_config.dump_graph_ir("./local_graph")
|
179 |
hidet.option.cache_dir("local_cache")
|
180 |
# automatically transform the model to use float16 data type
|