ford442 commited on
Commit
8478fc7
·
verified ·
1 Parent(s): 75458ee

Update app.py

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