Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -20,8 +20,8 @@ os.environ["PATH"] = conda_bin + os.pathsep + os.environ["PATH"]
|
|
20 |
# Activate the base environment (adjust if needed)
|
21 |
os.system(f'{conda_bin}/conda init --all')
|
22 |
os.system(f'{conda_bin}/conda activate base')
|
23 |
-
os.system(f'{conda_bin}/conda install nvidia/label/cuda-12.4.0::cuda-
|
24 |
-
os.system(f'{conda_bin}/conda install nvidia/label/cuda-12.4.0::cuda-
|
25 |
os.system(f'{conda_bin}/conda install nvidia/label/cuda-12.4.0::cuda-cudart')
|
26 |
os.system(f'{conda_bin}/conda install nvidia/label/cuda-12.4.0::cuda-cudart-dev')
|
27 |
os.system(f'{conda_bin}/conda install nvidia/label/cuda-12.4.0::cuda-nvcc')
|
@@ -192,7 +192,7 @@ def load_and_prepare_model():
|
|
192 |
return pipe
|
193 |
|
194 |
hidet.option.parallel_build(True)
|
195 |
-
hidet.option.parallel_tune(2,
|
196 |
#hidet.torch.dynamo_config.steal_weights(False)
|
197 |
torch._dynamo.config.suppress_errors = True
|
198 |
torch._dynamo.disallow_in_graph(diffusers.models.attention.BasicTransformerBlock)
|
|
|
20 |
# Activate the base environment (adjust if needed)
|
21 |
os.system(f'{conda_bin}/conda init --all')
|
22 |
os.system(f'{conda_bin}/conda activate base')
|
23 |
+
os.system(f'{conda_bin}/conda install nvidia/label/cuda-12.4.0::cuda-libraries')
|
24 |
+
os.system(f'{conda_bin}/conda install nvidia/label/cuda-12.4.0::cuda-libraries-dev')
|
25 |
os.system(f'{conda_bin}/conda install nvidia/label/cuda-12.4.0::cuda-cudart')
|
26 |
os.system(f'{conda_bin}/conda install nvidia/label/cuda-12.4.0::cuda-cudart-dev')
|
27 |
os.system(f'{conda_bin}/conda install nvidia/label/cuda-12.4.0::cuda-nvcc')
|
|
|
192 |
return pipe
|
193 |
|
194 |
hidet.option.parallel_build(True)
|
195 |
+
hidet.option.parallel_tune(2,1.5)
|
196 |
#hidet.torch.dynamo_config.steal_weights(False)
|
197 |
torch._dynamo.config.suppress_errors = True
|
198 |
torch._dynamo.disallow_in_graph(diffusers.models.attention.BasicTransformerBlock)
|