Skip to content

Commit

Permalink
fix: remove hotkey to accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvis8x7b committed May 6, 2024
1 parent 88e1d77 commit 8277ae2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions commons/data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ async def validator_save(cls, scores):
torch.save(
{
"scores": scores,
# "hotkey_to_accuracy": nonzero_hotkey_to_accuracy,
},
config.neuron.full_path + "/validator_state.pt",
)
Expand All @@ -166,7 +165,7 @@ async def validator_load(cls):
try:
# Load the state of the validator from file.
state = torch.load(config.neuron.full_path + "/validator_state.pt")
return True, state["scores"], state["hotkey_to_accuracy"]
return True, state["scores"]
except FileNotFoundError:
bt.logging.error("Validator state file not found.")
return False, None, None

0 comments on commit 8277ae2

Please sign in to comment.