Skip to content
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

Merge/merge main into staging #496

Merged
merged 3 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,4 @@ wandb
.vscode
api_keys.json
prompting/api/api_keys.json
AutoAWQ
27 changes: 13 additions & 14 deletions neurons/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,25 @@ async def main():
asyncio.create_task(availability_checking_loop.start())

GPUInfo.log_gpu_info()
# start profiling
asyncio.create_task(profiler.print_stats())
if settings.DEPLOY_VALIDATOR:
# start profiling
asyncio.create_task(profiler.print_stats())

# start rotating LLM models
asyncio.create_task(model_scheduler.start())
# start rotating LLM models
asyncio.create_task(model_scheduler.start())

# start creating tasks
asyncio.create_task(task_loop.start())
# start creating tasks
asyncio.create_task(task_loop.start())

# will start checking the availability of miners at regular intervals
asyncio.create_task(availability_checking_loop.start())
# start sending tasks to miners
asyncio.create_task(task_sender.start())

# start sending tasks to miners
asyncio.create_task(task_sender.start())
# sets weights at regular intervals (synchronised between all validators)
asyncio.create_task(weight_setter.start())

# sets weights at regular intervals (synchronised between all validators)
asyncio.create_task(weight_setter.start())
# start scoring tasks in separate loop
asyncio.create_task(task_scorer.start())

# start scoring tasks in separate loop
asyncio.create_task(task_scorer.start())
# # TODO: Think about whether we want to store the task queue locally in case of a crash
# # TODO: Possibly run task scorer & model scheduler with a lock so I don't unload a model whilst it's generating
# # TODO: Make weight setting happen as specific intervals as we load/unload models
Expand Down
Loading