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

fix: logging weights correctly in utils/weight_utils.py #2362

Merged

Conversation

grantdfoster
Copy link
Contributor

Bug

#2361

Description of the Change

Any instances where weights are being logged have been changed to bt.logging.debug("weights", *weights). The bug occurs when we attempt to log with bt.logging.debug("weights", weights)

Alternate Designs

The only other alternative was deleting the logging lines - I chose to keep them, but simply log them correctly.

Possible Drawbacks

None.

Verification Process

I have run my validator on our testnet, starting from a completely fresh state file. This means that I saw the validator correctly set weights when there were NO weights to set (i.e. all 1's), and when there WERE weights to set (i.e. miners have done some work and have been scored).

Release Notes

Fixes logging bug where weights were being logged w/o an *

@thewhaleking thewhaleking requested review from thewhaleking and a team October 17, 2024 21:52
@thewhaleking
Copy link
Contributor

Please update this to merge into staging.

@thewhaleking thewhaleking changed the base branch from master to staging October 17, 2024 21:54
@grantdfoster grantdfoster force-pushed the fix--logging-weights-correctly branch from 7f17b20 to 89860e9 Compare October 17, 2024 22:15
@grantdfoster grantdfoster force-pushed the fix--logging-weights-correctly branch from 191574f to 05eaf8a Compare October 17, 2024 22:25
@thewhaleking thewhaleking merged commit 570f38a into opentensor:staging Nov 6, 2024
21 checks passed
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