From 70d39b13c5ebffab07f2efc09c69b643f0347154 Mon Sep 17 00:00:00 2001 From: opentaco Date: Sat, 10 Dec 2022 09:21:19 +0200 Subject: [PATCH] Update power from subtensor always Since self.config.nucleus.scaling_law_power is updated from default -1 at nucleus init, the condition here at epoch start needs to be removed and has to update from subtensor always. --- bittensor/_neuron/text/core_validator/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bittensor/_neuron/text/core_validator/__init__.py b/bittensor/_neuron/text/core_validator/__init__.py index 22c7fb4416..f4ab595d89 100644 --- a/bittensor/_neuron/text/core_validator/__init__.py +++ b/bittensor/_neuron/text/core_validator/__init__.py @@ -400,8 +400,8 @@ def run_epoch( self ): max_weight_limit = self.subtensor.max_weight_limit blocks_per_epoch = self.subtensor.validator_epoch_length if self.config.neuron.blocks_per_epoch == -1 else self.config.neuron.blocks_per_epoch epochs_until_reset = self.subtensor.validator_epochs_per_reset if self.config.neuron.epochs_until_reset == -1 else self.config.neuron.epochs_until_reset - self.config.nucleus.scaling_law_power = self.subtensor.scaling_law_power if self.config.nucleus.scaling_law_power == -1 else self.config.nucleus.scaling_law_power - self.config.nucleus.synergy_scaling_law_power = self.subtensor.synergy_scaling_law_power if self.config.nucleus.synergy_scaling_law_power == -1 else self.config.nucleus.synergy_scaling_law_power + self.config.nucleus.scaling_law_power = self.subtensor.scaling_law_power + self.config.nucleus.synergy_scaling_law_power = self.subtensor.synergy_scaling_law_power # === Logs Prometheus === self.prometheus_gauges.labels("current_block").set( current_block )