Arpan Tripathi commited on
reset accumulate_score on regs (#102)
Browse files
neurons/validator.py
CHANGED
|
@@ -140,6 +140,9 @@ class Validator(base.BaseValidator):
|
|
| 140 |
)
|
| 141 |
self.miner_manager.session.execute(delete_stmt)
|
| 142 |
|
|
|
|
|
|
|
|
|
|
| 143 |
self.miner_manager.session.commit()
|
| 144 |
|
| 145 |
async def start_synthetic_epoch(self):
|
|
|
|
| 140 |
)
|
| 141 |
self.miner_manager.session.execute(delete_stmt)
|
| 142 |
|
| 143 |
+
delete_stmt = delete(MinerMetadata).where(MinerMetadata.uid.in_(delete_uids))
|
| 144 |
+
self.miner_manager.session.execute(delete_stmt)
|
| 145 |
+
|
| 146 |
self.miner_manager.session.commit()
|
| 147 |
|
| 148 |
async def start_synthetic_epoch(self):
|
vidaio_subnet_core/__init__.py
CHANGED
|
@@ -12,7 +12,7 @@ __all__ = [
|
|
| 12 |
"CONFIG",
|
| 13 |
]
|
| 14 |
|
| 15 |
-
__version__ = "2.1.
|
| 16 |
|
| 17 |
version_split = __version__.split(".")
|
| 18 |
__spec_version__ = (
|
|
|
|
| 12 |
"CONFIG",
|
| 13 |
]
|
| 14 |
|
| 15 |
+
__version__ = "2.1.14"
|
| 16 |
|
| 17 |
version_split = __version__.split(".")
|
| 18 |
__spec_version__ = (
|
vidaio_subnet_core/validating/managing/miner_manager.py
CHANGED
|
@@ -240,6 +240,7 @@ class MinerManager:
|
|
| 240 |
performance_tier="New Miner"
|
| 241 |
)
|
| 242 |
session.add(miner)
|
|
|
|
| 243 |
is_new_miner = True
|
| 244 |
elif miner.hotkey != hotkey:
|
| 245 |
bt.logging.info(f"Hotkey change detected for UID {uid}: {miner.hotkey} -> {hotkey}")
|
|
@@ -409,6 +410,7 @@ class MinerManager:
|
|
| 409 |
performance_tier="New Miner"
|
| 410 |
)
|
| 411 |
session.add(miner)
|
|
|
|
| 412 |
is_new_miner = True
|
| 413 |
elif miner.hotkey != hotkey:
|
| 414 |
bt.logging.info(f"Hotkey change detected for UID {uid}: {miner.hotkey} -> {hotkey}")
|
|
|
|
| 240 |
performance_tier="New Miner"
|
| 241 |
)
|
| 242 |
session.add(miner)
|
| 243 |
+
logger.info(f"New upscaling miner detected for UID {uid}: {hotkey}")
|
| 244 |
is_new_miner = True
|
| 245 |
elif miner.hotkey != hotkey:
|
| 246 |
bt.logging.info(f"Hotkey change detected for UID {uid}: {miner.hotkey} -> {hotkey}")
|
|
|
|
| 410 |
performance_tier="New Miner"
|
| 411 |
)
|
| 412 |
session.add(miner)
|
| 413 |
+
logger.info(f"New compression miner detected for UID {uid}: {hotkey}")
|
| 414 |
is_new_miner = True
|
| 415 |
elif miner.hotkey != hotkey:
|
| 416 |
bt.logging.info(f"Hotkey change detected for UID {uid}: {miner.hotkey} -> {hotkey}")
|