Skip to content

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

Merged
thewhaleking merged 10 commits intoopentensor:stagingfrom
grantdfoster:fix--logging-weights-correctly
Nov 6, 2024
Merged

fix: logging weights correctly in utils/weight_utils.py#2362
thewhaleking merged 10 commits intoopentensor:stagingfrom
grantdfoster:fix--logging-weights-correctly

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 a team and thewhaleking 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
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