-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release/v1.7.4 #258
Release/v1.7.4 #258
Conversation
nauttiilus
commented
Jan 21, 2025
- Fixes: Resolves the low vtrust issue for some validators.
- Features: Introduces WandB logging for PgG stats.
feature/CSN-399-consensus-scoring-mechanism-wandb
fix: correct display for miner stats
import hashlib | ||
import json |
Check notice
Code scanning / CodeQL
Unused import Note
bt.logging.info(f"Run ID: {run.id}, Name: {run.name}, Error: {e}") | ||
|
||
# Helper function: pick the single "dominant" dict from valid_entries | ||
def pick_dominant_dict(valid_entries): |
Check notice
Code scanning / CodeQL
Explicit returns mixed with implicit (fall through) returns Note
from ipwhois import IPWhois | ||
import threading | ||
import time | ||
import asyncio |
Check notice
Code scanning / CodeQL
Module is imported more than once Note
on line 30
import random | ||
from concurrent.futures import ThreadPoolExecutor | ||
|
||
from neurons.Validator.database.pog import get_pog_specs |
Check notice
Code scanning / CodeQL
Unused import Note
@@ -2744,7 +2786,7 @@ | |||
|
|||
return {"status": False, "msg": "Requested resource is not available."} | |||
|
|||
def _allocate_container_hotkey(self, requirements, hotkey, timeline, public_key, docker_requirement: dict): | |||
async def _allocate_container_hotkey(self, requirements, hotkey, timeline, public_key, docker_requirement: dict): |
Check notice
Code scanning / CodeQL
Explicit returns mixed with implicit (fall through) returns Note
if register_response and register_response["status"] is False: | ||
|
||
response = await self._notify_allocation_status( |
Check warning
Code scanning / CodeQL
Variable defined multiple times Warning
redefined
This assignment to 'response' is unnecessary as it is
redefined
This assignment to 'response' is unnecessary as it is
redefined
finally: | ||
cursor.close() | ||
|
||
def get_hotkey_lock(self, hotkey): |
Check notice
Code scanning / CodeQL
Explicit returns mixed with implicit (fall through) returns Note
# for hotkey, specs in specs_dict.values(): | ||
# gpu_info = specs.get("gpu", {}) | ||
# gpu_details = gpu_info.get("details", []) | ||
# if gpu_details: | ||
# gpu_name = gpu_details[0].get("name", "Unknown GPU") | ||
# gpu_count = gpu_info.get("count", 1) # Assuming 'count' reflects the number of GPUs | ||
# bt.logging.info(f"{hotkey}: {gpu_name} x {gpu_count}") | ||
# else: | ||
# bt.logging.info(f"{hotkey}: No GPU details available") |
Check notice
Code scanning / CodeQL
Commented-out code Note
@@ -142,7 +142,7 @@ | |||
hardware_specs_cache = await loop.run_in_executor(executor, fetch_hardware_specs, api, hotkeys) | |||
allocated_hotkeys_cache = await loop.run_in_executor(executor, get_allocated_hotkeys, api) | |||
#penalized_hotkeys_cache = await loop.run_in_executor(executor, get_penalized_hotkeys, api) | |||
penalized_hotkeys_cache = await loop.run_in_executor(executor, get_penalized_hotkeys_id, api, "neuralinternet/opencompute/dvgtj3dr") | |||
penalized_hotkeys_cache = await loop.run_in_executor(executor, get_penalized_hotkeys_id, api, "neuralinternet/opencompute/0djlnjjs") |
Check notice
Code scanning / CodeQL
Unused global variable Note
@nauttiilus |
Merge pull request #258 from neuralinternet/release/v1.7.4