Skip to content

Commit 9afb335

Browse files
authored
Merge pull request #363 from macrocosm-os/staging
Staging
2 parents 7fecd18 + 33b985b commit 9afb335

File tree

6 files changed

+37
-367
lines changed

6 files changed

+37
-367
lines changed

folding/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "2.0.1"
1+
__version__ = "2.1.1"
22
version_split = __version__.split(".")
33
__spec_version__ = (
44
(10000 * int(version_split[0]))

folding/utils/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def add_args(cls, parser):
7171
"--neuron.epoch_length",
7272
type=int,
7373
help="The default epoch length (how often we set weights, measured in 12 second blocks).",
74-
default=300,
74+
default=150,
7575
)
7676

7777
parser.add_argument(

folding/validators/forward.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ async def run_step(
5757
job_type: str,
5858
job_id: str,
5959
best_submitted_energy: float = None,
60+
first: bool = False,
6061
) -> Dict:
6162
start_time = time.time()
6263

@@ -78,9 +79,9 @@ async def run_step(
7879
synapse = JobSubmissionSynapse(
7980
pdb_id=protein.pdb_id,
8081
job_id=job_id,
81-
best_submitted_energy=0
82-
if np.isinf(best_submitted_energy)
83-
else best_submitted_energy,
82+
best_submitted_energy=(
83+
0 if np.isinf(best_submitted_energy) else best_submitted_energy
84+
),
8485
)
8586

8687
# Make calls to the network with the prompt - this is synchronous.
@@ -101,6 +102,8 @@ async def run_step(
101102
"energies": [],
102103
**response_info,
103104
}
105+
if first:
106+
return event
104107

105108
energies, energy_event = get_energies(
106109
protein=protein, responses=responses, uids=uids, job_type=job_type

0 commit comments

Comments
 (0)