From 1553c3eecc45728ff6af6a1956cfd61a686a4bff Mon Sep 17 00:00:00 2001 From: Eugene-hu <85906264+Eugene-hu@users.noreply.github.com> Date: Mon, 11 Dec 2023 14:53:54 -0500 Subject: [PATCH] Hyperparams get update (#1614) * fixes `btcli sudo get` * black --- bittensor/chain_data.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bittensor/chain_data.py b/bittensor/chain_data.py index 3f44a66a01..eeb946e20f 100644 --- a/bittensor/chain_data.py +++ b/bittensor/chain_data.py @@ -174,6 +174,8 @@ ["max_burn", "Compact"], ["bonds_moving_avg", "Compact"], ["max_regs_per_block", "Compact"], + ["serving_rate_limit", "Compact"], + ["max_validators", "Compact"], ], }, } @@ -963,6 +965,8 @@ class SubnetHyperparameters: max_burn: int bonds_moving_avg: int max_regs_per_block: int + serving_rate_limit: int + max_validators: int @classmethod def from_vec_u8(cls, vec_u8: List[int]) -> Optional["SubnetHyperparameters"]: @@ -1013,6 +1017,8 @@ def fix_decoded_values(cls, decoded: Dict) -> "SubnetHyperparameters": max_burn=decoded["max_burn"], bonds_moving_avg=decoded["bonds_moving_avg"], max_regs_per_block=decoded["max_regs_per_block"], + max_validators=decoded["max_validators"], + serving_rate_limit=decoded["serving_rate_limit"], ) def to_parameter_dict(self) -> "torch.nn.ParameterDict":