simonduerr commited on
Commit
27d3bf1
·
1 Parent(s): d402869

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -95,7 +95,6 @@ def run_protgpt2(startsequence, length, repetitionPenalty, top_k_poolsize, max_s
95
  )
96
  print("Cleaning up after protGPT2")
97
  print(gpu_usage())
98
- del protgpt2
99
  #torch.cuda.empty_cache()
100
  device = cuda.get_current_device()
101
  device.reset()
@@ -105,8 +104,6 @@ def run_protgpt2(startsequence, length, repetitionPenalty, top_k_poolsize, max_s
105
 
106
  def run_alphafold(startsequence):
107
  print(gpu_usage())
108
- device = cuda.get_current_device()
109
- device.reset()
110
  model_runners = {}
111
  models = ["model_1"] # ,"model_2","model_3","model_4","model_5"]
112
  for model_name in models:
 
95
  )
96
  print("Cleaning up after protGPT2")
97
  print(gpu_usage())
 
98
  #torch.cuda.empty_cache()
99
  device = cuda.get_current_device()
100
  device.reset()
 
104
 
105
  def run_alphafold(startsequence):
106
  print(gpu_usage())
 
 
107
  model_runners = {}
108
  models = ["model_1"] # ,"model_2","model_3","model_4","model_5"]
109
  for model_name in models: