gabboud commited on
Commit
4e40dbe
·
1 Parent(s): bcc516a

reduce GPU time to 240s

Browse files
Files changed (1) hide show
  1. utils/pipelines.py +3 -3
utils/pipelines.py CHANGED
@@ -10,7 +10,7 @@ from utils.handle_files import *
10
  import sys
11
  import shutil
12
 
13
- @spaces.GPU(duration=300)
14
  def test_rfd3_from_notebook():
15
  # Set seed for reproducibility
16
  seed_everything(0)
@@ -44,7 +44,7 @@ def test_rfd3_from_notebook():
44
 
45
 
46
  # Initialize engine and run generation
47
- @spaces.GPU(duration=300)
48
  def unconditional_generation(num_batches, num_designs_per_batch, length):
49
  """
50
  Runs an unconditional generation with the specified parameters for number of batches, number of designs per batch, and length of the generated proteins. Saves the generated structures to a timestamped directory in the outputs folder and returns the path to the directory along with a list of the generated structures' file paths.
@@ -99,7 +99,7 @@ def unconditional_generation(num_batches, num_designs_per_batch, length):
99
  except Exception as e:
100
  raise RuntimeError(f"Error during generation: {str(e)}")
101
 
102
- @spaces.GPU(duration=300)
103
  def generation_with_input_config(input_file, pdb_file, num_batches, num_designs_per_batch, extra_args):
104
  """
105
  Runs an unconditional generation with the specified input config file. Saves the generated structures to a timestamped directory in the outputs folder and returns the path to the directory along with a list of the generated structures' file paths.
 
10
  import sys
11
  import shutil
12
 
13
+ @spaces.GPU(duration=240)
14
  def test_rfd3_from_notebook():
15
  # Set seed for reproducibility
16
  seed_everything(0)
 
44
 
45
 
46
  # Initialize engine and run generation
47
+ @spaces.GPU(duration=240)
48
  def unconditional_generation(num_batches, num_designs_per_batch, length):
49
  """
50
  Runs an unconditional generation with the specified parameters for number of batches, number of designs per batch, and length of the generated proteins. Saves the generated structures to a timestamped directory in the outputs folder and returns the path to the directory along with a list of the generated structures' file paths.
 
99
  except Exception as e:
100
  raise RuntimeError(f"Error during generation: {str(e)}")
101
 
102
+ @spaces.GPU(duration=240)
103
  def generation_with_input_config(input_file, pdb_file, num_batches, num_designs_per_batch, extra_args):
104
  """
105
  Runs an unconditional generation with the specified input config file. Saves the generated structures to a timestamped directory in the outputs folder and returns the path to the directory along with a list of the generated structures' file paths.