Update app.py
Browse files
app.py
CHANGED
|
@@ -170,7 +170,7 @@ def load_and_prepare_model():
|
|
| 170 |
return pipe
|
| 171 |
|
| 172 |
hidet.option.parallel_build(True)
|
| 173 |
-
#hidet.option.parallel_tune(-1,
|
| 174 |
|
| 175 |
torch._dynamo.config.suppress_errors = True
|
| 176 |
torch._dynamo.disallow_in_graph(diffusers.models.attention.BasicTransformerBlock)
|
|
@@ -178,7 +178,7 @@ torch._dynamo.disallow_in_graph(diffusers.models.attention.BasicTransformerBlock
|
|
| 178 |
|
| 179 |
|
| 180 |
# more search
|
| 181 |
-
hidet.torch.dynamo_config.search_space(
|
| 182 |
#hidet.torch.dynamo_config.dump_graph_ir("./local_graph")
|
| 183 |
hidet.option.cache_dir("local_cache")
|
| 184 |
# automatically transform the model to use float16 data type
|
|
|
|
| 170 |
return pipe
|
| 171 |
|
| 172 |
hidet.option.parallel_build(True)
|
| 173 |
+
#hidet.option.parallel_tune(-1,2.0)
|
| 174 |
|
| 175 |
torch._dynamo.config.suppress_errors = True
|
| 176 |
torch._dynamo.disallow_in_graph(diffusers.models.attention.BasicTransformerBlock)
|
|
|
|
| 178 |
|
| 179 |
|
| 180 |
# more search
|
| 181 |
+
hidet.torch.dynamo_config.search_space(0)
|
| 182 |
#hidet.torch.dynamo_config.dump_graph_ir("./local_graph")
|
| 183 |
hidet.option.cache_dir("local_cache")
|
| 184 |
# automatically transform the model to use float16 data type
|