Skip to content
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

Merged
merged 4 commits into from
Apr 27, 2023
Merged

validator update #1304

merged 4 commits into from
Apr 27, 2023

Conversation

Eugene-hu
Copy link
Contributor

  • added loading weights
  • fixes moving average
  • adds additional features for logging
  • reduces the memory of the history

- loading weights
- fixing moving average
Copy link
Contributor

@isabella618033 isabella618033 left a 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
Copy link
Contributor

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)

Copy link
Contributor Author

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:
Copy link
Contributor

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?

@shibshib shibshib self-requested a review April 27, 2023 15:55
@Eugene-hu Eugene-hu merged commit 92ccdfc into text_prompting Apr 27, 2023
@mrseeker mrseeker mentioned this pull request May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants