Minor cleanup across multiple modules

This commit is contained in:
oobabooga 2026-03-19 08:02:23 -07:00
parent 5453b9f30e
commit e0e20ab9e7
6 changed files with 28 additions and 82 deletions

View file

@ -500,9 +500,8 @@ class LlamaServer:
health_url = f"http://127.0.0.1:{self.port}/health"
while True:
# Check if process is still alive
if self.process.poll() is not None:
# Process has terminated
exit_code = self.process.poll()
exit_code = self.process.poll()
if exit_code is not None:
raise RuntimeError(f"Server process terminated unexpectedly with exit code: {exit_code}")
try: