ford442 commited on
Commit
5241e5c
·
verified ·
1 Parent(s): 85f24f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -20,7 +20,7 @@ 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-libraries')
24
  os.system(f'{conda_bin}/conda install nvidia/label/cuda-12.4.0::cuda-nvcc')
25
 
26
  import random
@@ -187,8 +187,8 @@ def load_and_prepare_model():
187
 
188
  return pipe
189
 
190
- hidet.option.parallel_build(True)
191
- hidet.option.parallel_tune(2,1.0)
192
  #hidet.torch.dynamo_config.steal_weights(False)
193
  torch._dynamo.config.suppress_errors = True
194
  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-cudart-dev')
24
  os.system(f'{conda_bin}/conda install nvidia/label/cuda-12.4.0::cuda-nvcc')
25
 
26
  import random
 
187
 
188
  return pipe
189
 
190
+ hidet.option.parallel_build(False)
191
+ #hidet.option.parallel_tune(-1,1.75)
192
  #hidet.torch.dynamo_config.steal_weights(False)
193
  torch._dynamo.config.suppress_errors = True
194
  torch._dynamo.disallow_in_graph(diffusers.models.attention.BasicTransformerBlock)