Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -172,7 +172,7 @@ def load_and_prepare_model():
|
|
172 |
return pipe
|
173 |
|
174 |
hidet.option.parallel_build(True)
|
175 |
-
|
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 |
-
|
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 |
|