Skip to content

Commit

Permalink
add more logging for scoring process
Browse files Browse the repository at this point in the history
  • Loading branch information
acer-king committed Oct 21, 2024
1 parent 34d96b8 commit 89d91f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion validators/weight_setter.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,8 @@ async def process_queries_from_database(self):
self.query_database.clear()

self.synthetic_task_done = False
bt.logging.info("start scoring process")
start_time = time.time()

# with all query_respones, select one per uid, provider, model randomly and score them.
score_tasks = self.get_scoring_tasks_from_query_responses(queries_to_process)
Expand All @@ -607,6 +609,7 @@ async def process_queries_from_database(self):
if self.total_scores.get(uid) is not None:
self.total_scores[uid] += score
self.score_counts[uid] += 1
bt.logging.info(f"current total score are {self.total_scores}")
bt.logging.info(
f"current total score are {self.total_scores}. total time of scoring is {time.time() - start_time}")
self.saving_datas = queries_to_process.copy()
await self.update_and_refresh()

0 comments on commit 89d91f0

Please sign in to comment.