Skip to content

Commit

Permalink
vali and subnet update
Browse files Browse the repository at this point in the history
  • Loading branch information
latentvector committed May 21, 2024
1 parent 38b3427 commit a889f16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions commune/vali/vali.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ def run_epoch(cls, network='local', **kwargs):




def epoch(self, batch_size = None, network=None, **kwargs):

self.epochs += 1
Expand Down Expand Up @@ -470,7 +469,7 @@ def leaderboard(self,
'staleness',
'latency'],
path = 'cache/module_infos',
max_age = 3600,
max_age = None,
min_weight = 0,
network = None,
ascending = False,
Expand Down
4 changes: 2 additions & 2 deletions subnet/subnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ def score_module(self, module):


@classmethod
def test(cls, n=3, sleep_time=5):
def test(cls, n=3, sleep_time=4):
test_vali = 'subnet.vali::test'
test_miners = [f'subnet.miner::test_{i}' for i in range(n)]
for miner in test_miners:
c.serve(miner)
c.serve(test_vali, kwargs={'network': 'local', 'search': 'miner::test_'})
c.serve(test_vali, kwargs={'network': 'local', 'search': 'miner::test_', 'min_update_interval': 1})

c.print('Sleeping for 3 seconds')
c.sleep(sleep_time)
Expand Down

0 comments on commit a889f16

Please sign in to comment.