simonduerr commited on
Commit
0c3c182
1 Parent(s): 8c44199

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -21,7 +21,7 @@ import gc
21
  import jax
22
  from numba import cuda
23
  print('GPU available',torch.cuda.is_available())
24
- print('__CUDA Device Name:',torch.cuda.get_device_name(0))
25
  print(os.getcwd())
26
  if "/home/user/app/alphafold" not in sys.path:
27
  sys.path.append("/home/user/app/alphafold")
@@ -81,7 +81,7 @@ def predict_structure(prefix, feature_dict, model_runners, random_seed=0):
81
  f.write(protein.to_pdb(unrelaxed_protein))
82
  return plddts
83
 
84
- @ray.remote(num_gpus=1, max_calls=1)
85
  def run_protgpt2(startsequence, length, repetitionPenalty, top_k_poolsize, max_seqs):
86
  print("running protgpt2")
87
  print(gpu_usage())
@@ -103,7 +103,7 @@ def run_protgpt2(startsequence, length, repetitionPenalty, top_k_poolsize, max_s
103
  #print(gpu_usage())
104
  return sequences
105
 
106
- @ray.remote(num_gpus=1, max_calls=1)
107
  def run_alphafold(startsequence):
108
  print(gpu_usage())
109
  model_runners = {}
 
21
  import jax
22
  from numba import cuda
23
  print('GPU available',torch.cuda.is_available())
24
+ #print('__CUDA Device Name:',torch.cuda.get_device_name(0))
25
  print(os.getcwd())
26
  if "/home/user/app/alphafold" not in sys.path:
27
  sys.path.append("/home/user/app/alphafold")
 
81
  f.write(protein.to_pdb(unrelaxed_protein))
82
  return plddts
83
 
84
+ @ray.remote(num_gpus=0, max_calls=1)
85
  def run_protgpt2(startsequence, length, repetitionPenalty, top_k_poolsize, max_seqs):
86
  print("running protgpt2")
87
  print(gpu_usage())
 
103
  #print(gpu_usage())
104
  return sequences
105
 
106
+ @ray.remote(num_gpus=0, max_calls=1)
107
  def run_alphafold(startsequence):
108
  print(gpu_usage())
109
  model_runners = {}