File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 49
49
class GenieValidator :
50
50
def __init__ (self , neuron : BaseNeuron ):
51
51
self .neuron = neuron
52
- self .lock = neuron . lock
52
+ self .lock = threading . Lock ()
53
53
self .config = neuron .config
54
54
self .miner_results = []
55
55
self .synthetic_tasks = []
Original file line number Diff line number Diff line change 1
1
import bittensor as bt
2
2
import copy
3
3
import numpy as np
4
-
4
+ import threading
5
5
from io import StringIO
6
6
from rich .console import Console
7
7
from rich .table import Table
10
10
from webgenie .base .neuron import BaseNeuron
11
11
12
12
from webgenie .challenges .challenge import Challenge , RESERVED_WEIGHTS
13
- from webgenie .constants import CONSIDERING_SESSION_COUNTS , __STATE_VERSION__ , WORK_DIR
13
+ from webgenie .constants import (
14
+ CONSIDERING_SESSION_COUNTS ,
15
+ __STATE_VERSION__ ,
16
+ WORK_DIR ,
17
+ MAX_UNANSWERED_TASKS
18
+ )
14
19
from webgenie .helpers .weights import save_file_to_wandb
15
20
16
21
class ScoreManager :
17
22
def __init__ (self , neuron : BaseNeuron ):
18
23
self .neuron = neuron
19
24
self .state_path = self .neuron .config .neuron .full_path + "/state.npz"
20
- self .lock = neuron . lock
25
+ self .lock = threading . Lock ()
21
26
22
27
self .hotkeys = copy .deepcopy (self .neuron .metagraph .hotkeys )
23
28
self .current_session = - 1
You can’t perform that action at this time.
0 commit comments