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

Neuron pruning from the subnets is unfair and always favors low UID numbers. #697

Closed
mutexlocker opened this issue Jul 30, 2024 · 3 comments · Fixed by #726
Closed

Neuron pruning from the subnets is unfair and always favors low UID numbers. #697

mutexlocker opened this issue Jul 30, 2024 · 3 comments · Fixed by #726
Labels
bug Something isn't working

Comments

@mutexlocker
Copy link

Describe the bug

Some subnets, have almost 90% of their miners with 0 emission. It seems that this logic will always pick the last UID from the UID indexes unless they are immune or have emission. What I am observing is that we are constantly pruning UIDs from the last UIDs, and since we don't have a lot of registrations in the Subnet, this creates a safe haven for UID 0 (or all low UID miners) with 0 emission that will never get pruned and can always try its chance to mine the subnet. We are constantly replacing UIDs between 250 and 255 right now and when they come off immunity then we go beck to 255 again.

To Reproduce

The logic that needs to be fixed is here :

for neuron_uid_i in 0..neurons_n {

Expected behavior

UID pruning and deregistration in the subnets, when there are a lot of UIDs with zero emissions, should be based on the registration date of the UID or selected randomly among all those that are candidates for pruning.

Screenshots

No response

Environment

Subtensor

Additional context

No response

@mutexlocker mutexlocker added the bug Something isn't working label Jul 30, 2024
@VectorChat
Copy link
Contributor

Hey @mutexlocker, I made a PR to attempt to fix this, let me know if it was what you were looking for

@mutexlocker
Copy link
Author

for

Thanks for the fix! This was a huge issue in our subnet.

@distributedstatemachine
Copy link
Collaborator

closed in #726

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants