Skip to content

Commit

Permalink
Making a nicer warning message when waiting for sglang server
Browse files Browse the repository at this point in the history
  • Loading branch information
jakep-allenai committed Mar 4, 2025
1 parent 03ef353 commit ecac384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion olmocr/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ async def sglang_server_ready():
else:
logger.info(f"Attempt {attempt}: Unexpected status code {response.status_code}")
except Exception as e:
logger.warning(f"Attempt {attempt}: {e}")
logger.warning(f"Attempt {attempt}: Please wait for sglang server to become ready...")

await asyncio.sleep(delay_sec)

Expand Down

0 comments on commit ecac384

Please sign in to comment.