Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,8 @@ import gradio as gr
|
|
12 |
import numpy as np
|
13 |
from PIL import Image
|
14 |
import torch
|
|
|
|
|
15 |
import hidet
|
16 |
import diffusers
|
17 |
|
@@ -123,7 +125,7 @@ hidet.option.parallel_build(True)
|
|
123 |
torch._dynamo.config.suppress_errors = True
|
124 |
torch._dynamo.disallow_in_graph(diffusers.models.attention.BasicTransformerBlock)
|
125 |
# more search
|
126 |
-
hidet.torch.dynamo_config.search_space(
|
127 |
#hidet.torch.dynamo_config.dump_graph_ir("./local_graph")
|
128 |
hidet.option.cache_dir("local_cache")
|
129 |
# automatically transform the model to use float16 data type
|
|
|
12 |
import numpy as np
|
13 |
from PIL import Image
|
14 |
import torch
|
15 |
+
import torch._dynamo
|
16 |
+
|
17 |
import hidet
|
18 |
import diffusers
|
19 |
|
|
|
125 |
torch._dynamo.config.suppress_errors = True
|
126 |
torch._dynamo.disallow_in_graph(diffusers.models.attention.BasicTransformerBlock)
|
127 |
# more search
|
128 |
+
hidet.torch.dynamo_config.search_space(2)
|
129 |
#hidet.torch.dynamo_config.dump_graph_ir("./local_graph")
|
130 |
hidet.option.cache_dir("local_cache")
|
131 |
# automatically transform the model to use float16 data type
|