Skip to content

Commit db43630

Browse files
authoredDec 10, 2022
[BIT-602] Update scaling power from subtensor (#1027)
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.
1 parent 671fd9f commit db43630

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎bittensor/_neuron/text/core_validator/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ def run_epoch( self ):
400400
max_weight_limit = self.subtensor.max_weight_limit
401401
blocks_per_epoch = self.subtensor.validator_epoch_length if self.config.neuron.blocks_per_epoch == -1 else self.config.neuron.blocks_per_epoch
402402
epochs_until_reset = self.subtensor.validator_epochs_per_reset if self.config.neuron.epochs_until_reset == -1 else self.config.neuron.epochs_until_reset
403-
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
404-
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
403+
self.config.nucleus.scaling_law_power = self.subtensor.scaling_law_power
404+
self.config.nucleus.synergy_scaling_law_power = self.subtensor.synergy_scaling_law_power
405405

406406
# === Logs Prometheus ===
407407
self.prometheus_gauges.labels("current_block").set( current_block )

0 commit comments

Comments
 (0)