Skip to content

Commit

Permalink
batch size issue fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
acer-king committed Oct 15, 2024
1 parent 107a658 commit dd1e42a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validators/weight_setter.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,10 @@ def pop_synthetic_tasks_max_100_per_miner(self, synthetic_tasks):
uid_to_task_cnt = defaultdict(int)
for uid, synthetic_task in synthetic_tasks:
if uid_to_task_cnt[uid] < max_query_cnt_per_miner:
batch_tasks.append(synthetic_task)
if len(batch_tasks) > batch_size:
remain_tasks.append((uid, synthetic_task))
continue
batch_tasks.append(synthetic_task)
uid_to_task_cnt[uid] += 1
continue
else:
Expand Down

0 comments on commit dd1e42a

Please sign in to comment.