Skip to content

Commit

Permalink
Merge pull request #12 from IlyasMoutawwakil/ignore-sentinel
Browse files Browse the repository at this point in the history
update sentinel
  • Loading branch information
IlyasMoutawwakil authored Sep 4, 2024
2 parents a2aba7a + 0b4dc6a commit f114db7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions py_txi/inference_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ def __init__(self, config: InferenceServerConfig) -> None:
LOGGER.info(f"\t+ {log}")
break
elif self.FAILURE_SENTINEL.lower() in log.lower():
LOGGER.info(f"\t+ {log}")
raise Exception(f"{self.NAME} server failed to start")
raise Exception(f"{self.NAME} server failed to start with failure message: {log}")
else:
LOGGER.info(f"\t+ {log}")

Expand Down
2 changes: 1 addition & 1 deletion py_txi/text_generation_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __post_init__(self) -> None:
class TGI(InferenceServer):
NAME: str = "Text-Generation-Inference"
SUCCESS_SENTINEL: str = "Connected"
FAILURE_SENTINEL: str = "Error"
FAILURE_SENTINEL: str = "Traceback"

def __init__(self, config: TGIConfig) -> None:
super().__init__(config)
Expand Down

0 comments on commit f114db7

Please sign in to comment.