masa-finance / masa-bittensor

Bittensor Subnet Config
https://masa.ai
MIT License
9 stars 11 forks source link

Hyperparameters Testing Subnet #77

Closed hide-on-bush-x closed 3 months ago

hide-on-bush-x commented 3 months ago

This is a follow up task from #61

Since the hyperparameters research spike came from some difficulties at the time of setting weights:

Where to watch:

Acceptance criteria:

How to validate/test that weights are being stored:

You should be able to see your weighs in your corresponding row of the matrix

import bittensor as bt
wallet = bt.wallet(<WALLET_NAME>)
subnet = bt.metagraph(<NETUID>, 'ws://54.205.45.3:9945', lite=False)
subtensor = bt.subtensor('ws://54.205.45.3:9945')

### To set weights
subtensor.set_weights(wallet=wallet, netuid=<NETUID>, uids=[1], weights=[0.1])

### To read the matrix of weights
subnet.sync()
print(subnet.W)
hide-on-bush-x commented 3 months ago

@mudler any insights here?

mudler commented 3 months ago

A validator can set weights every after 5 blocks

This is not completely clear to me (why? is this a limitation?)

@mudler any insights here?

Ticket looks good here :+1:

hide-on-bush-x commented 3 months ago

It would be awesome if some of us could open ports and test this with at least a few validators and miners on testnet

juanmanso commented 3 months ago

It would be awesome if some of us could open ports and test this with at least a few validators and miners on testnet

Sure, I'll help out running a miner. Need to setup the port opening but that should be simple enough 😅

Luka-Loncar commented 3 months ago

@teslashibe can you help with testing here? @5u6r054 same question for you?

Luka-Loncar commented 3 months ago

Closing this task since we don't care about scalability in v0.5.

I'm creating follow up task to test scalability later: