Skip to content

Commit

Permalink
Merge pull request #31 from RaoFoundation/dev
Browse files Browse the repository at this point in the history
Hotfix 2.1.1
  • Loading branch information
Sid-Data-Universe authored Jan 5, 2024
2 parents 2aac764 + 9958cd4 commit 9cb69dc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions neurons/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@


class Validator:
TRACKER_FILENAME = "model_tracker.pickle"
UIDS_FILENAME = "uids.pickle"
TRACKER_FILENAME = "model_tracker_2.pickle"
UIDS_FILENAME = "uids_2.pickle"

@staticmethod
def config():
Expand Down Expand Up @@ -426,14 +426,14 @@ async def run_step(self):
7. Logs all relevant data for the step, including model IDs, pages, batches, wins, win rates, and losses.
"""

# Pull relevant uids for step. If they aren't found in the model tracker on eval they will be skipped.
uids = list(self.uids_to_eval)

# Add uids with newly updated models to the upcoming batch of evaluations.
with self.pending_uids_to_eval_lock:
self.uids_to_eval.update(self.pending_uids_to_eval)
self.pending_uids_to_eval.clear()

# Pull relevant uids for step. If they aren't found in the model tracker on eval they will be skipped.
uids = list(self.uids_to_eval)

if not uids:
bt.logging.debug(
"No uids to eval. Waiting 5 minutes to download some models."
Expand Down

0 comments on commit 9cb69dc

Please sign in to comment.