Skip to content

Commit

Permalink
commune vali
Browse files Browse the repository at this point in the history
  • Loading branch information
latentvector committed Jun 5, 2024
1 parent a7bea9d commit 5ff8042
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions commune/vali/vali.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ Run the validator on the subspace network
```python
import commune as c
c.serve('vali.text.realfake::tang', network='subspace', netuid=0)
# or
c.serve('vali.text.realfake::tang', network='subspace.0')
```

Ensure you have the module registered on the network
Expand Down
1 change: 1 addition & 0 deletions commune/vali/vali.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ def process_response(self, response:dict, info:dict ):
# resolve the alph
info['latency'] = c.time() - info['timestamp']
info['w'] = info['w'] * info['alpha'] + info['past_w'] * (1 - info['alpha'])
info['history'] = info.get('history', []) + [{'w': info['w'], 'timestamp': info['timestamp']}]
info['count'] = info.get('count', 0) + 1
# store modules that have a minimum weight to save storage of stale modules
if info['w'] > self.config.min_leaderboard_weight:
Expand Down
2 changes: 1 addition & 1 deletion commune/vali/vali.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
alpha: 0.5
alpha: 0.9
batch_size: 64
fn: null
initial_sleep: 5
Expand Down

0 comments on commit 5ff8042

Please sign in to comment.