diff --git a/neurons/validator/core/serving_queue.py b/neurons/validator/core/serving_queue.py index 382c4acb..026d6090 100644 --- a/neurons/validator/core/serving_queue.py +++ b/neurons/validator/core/serving_queue.py @@ -90,12 +90,14 @@ def get_batch_query(self, batch_size: int): yield category, uids_to_query, should_rewards, time_to_sleep def random_should_reward(self, uid): - if uid not in self.synthentic_rewarded: + if uid not in self.synthentic_rewarded or self.synthentic_rewarded[uid] <= 10: return True - if self.synthentic_rewarded[uid] <= 10: + if self.synthentic_rewarded[uid] <= 20: return random.random() < 0.5 ## 50% chance of rewarding elif self.synthentic_rewarded[uid] <= 30: return random.random() < 0.3 ## 30% chance of rewarding + elif self.synthentic_rewarded[uid] <= 40: + return random.random() < 0.2 ## 20% chance of rewarding else: return random.random() < 0.1 ## 10% chance of rewarding