-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
validator update #1304
validator update #1304
Conversation
Eugene-hu
commented
Apr 25, 2023
- added loading weights
- fixes moving average
- adds additional features for logging
- reduces the memory of the history
- loading weights - fixing moving average
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -135,6 +134,9 @@ def __init__( self ): | |||
self.uid = self.wallet.get_uid( subtensor = self.subtensor, netuid = self.config.netuid ) | |||
self.tokenizer = AutoTokenizer.from_pretrained( 'EleutherAI/gpt-j-6b' ) | |||
|
|||
self.moving_averaged_scores = torch.zeros((self.metagraph.n)).to( self.device ) | |||
self.alpha = 0.99 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alpha = 0.99 seems a bit high, think we used to have alpha = 0.1 (0.9)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm good point, this might need to change as we increase the number of uids. Lets put in a ticket and do deeper analysis once the network is stable
@@ -416,9 +434,12 @@ def train( self ): | |||
) | |||
|
|||
# Resync metagraph before returning. (sync every 15 min or ~75 blocks) | |||
if last_epoch_block % 10 == 0: | |||
if self.subtensor.block % 10 == 0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think %10 would be syncing every 2 mins, wouldnt that be a bit frequent?
…ing_fix_validator