Skip to content

Commit

Permalink
decrease capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
acer-king committed Oct 19, 2024
1 parent 4e51b92 commit 4ddc0b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion validators/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def setup_max_capacity(item):
if isinstance(value, dict): # If the value is another dictionary, recurse
setup_max_capacity(value)
elif isinstance(value, (int, float)): # If the value is a number, increment by 5
item[key] = min(value, 50)
item[key] = min(value, 10)


def get_bandwidth(data, uid, provider, model):
Expand Down
2 changes: 0 additions & 2 deletions validators/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from pathlib import Path
from dotenv import load_dotenv
import bittensor as bt
import uvloop

import wandb
import cortext
Expand Down Expand Up @@ -128,7 +127,6 @@ def main():

init_wandb(config)
loop = asyncio.get_event_loop()
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
weight_setter = WeightSetter(config=config, cache=cache_service, loop=loop)
state_path = os.path.join(config.full_path, "state.json")
utils.get_state(state_path)
Expand Down

0 comments on commit 4ddc0b8

Please sign in to comment.