Skip to content

Commit b368e1e

Browse files
author
Ubuntu
committed
more logging
1 parent 9b28478 commit b368e1e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

validators/text_validator.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,18 @@ async def score_responses(
144144
scores = torch.zeros(len(metagraph.hotkeys))
145145
uid_scores_dict = {}
146146
response_tasks = []
147-
148147
# Decide to score all UIDs this round based on a chance
149148
will_score_all = self.should_i_score()
150-
149+
bt.logging.info("starting wandb logging")
151150
for uid, response in query_responses:
152151
self.wandb_data["responses"][uid] = response
153152
if will_score_all and response:
154153
prompt = uid_to_question[uid]
155154
response_tasks.append((uid, self.call_api(prompt, self.provider)))
156155

156+
bt.logging.info("finished wandb logging and scoring")
157157
api_responses = await asyncio.gather(*[task for _, task in response_tasks])
158+
bt.logging.info("gathered response_tasks for api calls")
158159

159160
scoring_tasks = []
160161
for (uid, _), api_answer in zip(response_tasks, api_responses):

0 commit comments

Comments
 (0)