mirror of
https://github.com/allenai/olmocr.git
synced 2025-08-17 21:32:05 +00:00
Adding check for possible sglang livelock
This commit is contained in:
parent
cff97990bf
commit
a95487e44c
@ -437,6 +437,11 @@ async def sglang_server_task(args, semaphore):
|
||||
logger.error("Cannot continue, sampling errors detected, model is probably corrupt")
|
||||
sys.exit(1)
|
||||
|
||||
# TODO, need to trace down this issue in sglang itself, but it will otherwise cause the server to lock up
|
||||
if "IndexError: list index out of range" in line:
|
||||
logger.error("IndexError in model, restarting server")
|
||||
proc.terminate()
|
||||
|
||||
if not server_printed_ready_message and "The server is fired up and ready to roll!" in line:
|
||||
server_printed_ready_message = True
|
||||
last_semaphore_release = time.time()
|
||||
|
@ -2,7 +2,7 @@ _MAJOR = "0"
|
||||
_MINOR = "1"
|
||||
# On main and in a nightly release the patch should be one ahead of the last
|
||||
# released build.
|
||||
_PATCH = "43"
|
||||
_PATCH = "44"
|
||||
# This is mainly for nightly builds which have the suffix ".dev$DATE". See
|
||||
# https://semver.org/#is-v123-a-semantic-version for the semantics.
|
||||
_SUFFIX = ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user