From af58dce8ee2b805c05b0f4ace8114bb95564b9c0 Mon Sep 17 00:00:00 2001 From: nautilus Date: Mon, 13 Jan 2025 13:36:48 +0100 Subject: [PATCH] feat: update scoring logic in calculate_pow_score.py and bump versions --- compute/__init__.py | 4 ++-- neurons/Validator/calculate_pow_score.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/compute/__init__.py b/compute/__init__.py index 9f7dd0ea..c97ca237 100644 --- a/compute/__init__.py +++ b/compute/__init__.py @@ -18,9 +18,9 @@ import string # Define the version of the template module. -__version__ = "1.7.2" +__version__ = "1.7.3" __minimal_miner_version__ = "1.6.0" -__minimal_validator_version__ = "1.6.1" +__minimal_validator_version__ = "1.7.3" version_split = __version__.split(".") __version_as_int__ = (100 * int(version_split[0])) + (10 * int(version_split[1])) + (1 * int(version_split[2])) diff --git a/neurons/Validator/calculate_pow_score.py b/neurons/Validator/calculate_pow_score.py index 7f7b2a84..d2b4aee4 100644 --- a/neurons/Validator/calculate_pow_score.py +++ b/neurons/Validator/calculate_pow_score.py @@ -39,7 +39,7 @@ def calc_score_pog(gpu_specs, hotkey, allocated_hotkeys, config_data, mock=False # Get the GPU with the maximum score max_gpu = max(gpu_scores, key=gpu_scores.get) max_score = gpu_scores[max_gpu]*8 - score_factor = 50/max_score + score_factor = 100/max_score gpu_name = gpu_specs.get("gpu_name") num_gpus = min(gpu_specs.get("num_gpus"), 8) @@ -47,9 +47,9 @@ def calc_score_pog(gpu_specs, hotkey, allocated_hotkeys, config_data, mock=False # Get GPU score score = gpu_scores.get(gpu_name) * num_gpus * score_factor - # Add allocation score, multiplier = 2 + # Allocation score multiplier = 1 (no allocation bonus) if hotkey in allocated_hotkeys: - score = score * 2 + score = score * 1 # Logging score bt.logging.info(f"Score - {hotkey}: {score:.2f}/100")