From dd1e42aa7a933b0074ad539834a0689cb6d96b21 Mon Sep 17 00:00:00 2001 From: acer-king Date: Tue, 15 Oct 2024 10:50:17 -0700 Subject: [PATCH] batch size issue fix. --- validators/weight_setter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validators/weight_setter.py b/validators/weight_setter.py index 4306f0fe..6013e235 100644 --- a/validators/weight_setter.py +++ b/validators/weight_setter.py @@ -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: