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

V7 bittensor: commit/reveal weights #75

Merged
merged 29 commits into from
Jun 26, 2024
Merged

V7 bittensor: commit/reveal weights #75

merged 29 commits into from
Jun 26, 2024

Conversation

toilaluan
Copy link
Collaborator

@toilaluan toilaluan commented Jun 18, 2024

Replace subtensor.set_weights by subtensor.commit_weights and subtensor.reveal_weights

Add Validator's variables with initial values:

self.last_commit_weights_block = self.block - 1000
self.need_reveal = False

Basic Rules

  • Commit
  • Wait interval (1000) blocks to reveal
  • If reveal success, commit new weight

@toilaluan toilaluan merged commit 7886870 into main Jun 26, 2024
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.

None yet

1 participant