Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -165,6 +165,8 @@ def load_and_prepare_model():
|
|
165 |
return pipe
|
166 |
|
167 |
hidet.option.parallel_build(True)
|
|
|
|
|
168 |
torch._dynamo.config.suppress_errors = True
|
169 |
torch._dynamo.disallow_in_graph(diffusers.models.attention.BasicTransformerBlock)
|
170 |
# Preload and compile both models
|
|
|
165 |
return pipe
|
166 |
|
167 |
hidet.option.parallel_build(True)
|
168 |
+
hidet.option.parallel_tune(-1,4.0)
|
169 |
+
|
170 |
torch._dynamo.config.suppress_errors = True
|
171 |
torch._dynamo.disallow_in_graph(diffusers.models.attention.BasicTransformerBlock)
|
172 |
# Preload and compile both models
|