You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8a73b41a42
- Before this PR, `ServerState.JOINING` was announced only once. This announcement quickly expires in case of the full-size BLOOM, since loading blocks takes several minutes. This PR fixes it, so `ServerState.JOINING` is announced periodically in a thread until blocks are loaded. - This PR also makes the `Server` class a non-thread, so it runs in the main thread and can catch `KeyboardInterrupt`. This is important, since if we are downloading blocks right now, we need to stop it and send the `ServerState.OFFLINE` message. Note that `ModuleContainer` is still a thread. - (minor) For the sake of readability, I moved the `ModuleContainer.create()` definition, so it is now defined before `Server.__init__()` (this is because `.create()` is invoked first). |
2 years ago | |
---|---|---|
.. | ||
__init__.py | 2 years ago | |
config.json | 2 years ago | |
convert_model.py | 2 years ago | |
deploy_server.sh | 2 years ago | |
inference_one_block.py | 2 years ago | |
local_server_config_example.cfg | 2 years ago | |
remote_server_config_example.cfg | 2 years ago | |
run_local_servers.sh | 2 years ago | |
run_remote_servers.sh | 2 years ago | |
run_server.py | 2 years ago | |
speed_test.py | 2 years ago |