Skip to content

Zero out weights when champion's chute is cold#407

Open
catoneone wants to merge 1 commit into
mainfrom
zero-weight-on-cold-champion
Open

Zero out weights when champion's chute is cold#407
catoneone wants to merge 1 commit into
mainfrom
zero-weight-on-cold-champion

Conversation

@catoneone

Copy link
Copy Markdown
Collaborator

Summary

  • After calculate_scores, look up the champion's hotkey in MinersDAO. If chute_status == 'cold', zero result.final_weights and every miner's normalized_weight.
  • Champion is the sole weight recipient, so zeroing it makes weight_setter.process_weights return an empty payload and the validator skips the on-chain set this round — avoiding rewarding an offline model.

Test plan

  • Force the active champion's chute to cold and run af -v servers scorer once: expect the warning log and all-zero weights in the snapshot.
  • Verify validator's set_weights short-circuits (no on-chain push) when all weights are 0.
  • Hot champion path unchanged: regular run still assigns 1.0 to champion.

Skip weight set when the active champion's chute_status is 'cold' so
the validator doesn't reward an offline model. Looks up the champion
hotkey in MinersDAO after scoring; if cold, zeroes final_weights and
each miner's normalized_weight, which makes weight_setter return an
empty payload and skip the on-chain set this round.
@catoneone catoneone requested review from Tobias10086 and angosr April 29, 2026 12:39
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.

1 participant