Skip to content

Commit

Permalink
πŸ› fix assert
Browse files Browse the repository at this point in the history
Signed-off-by: Prashant Gupta <[email protected]>
  • Loading branch information
prashantgupta24 committed Jul 1, 2024
1 parent 595a317 commit afe4de5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vllm_tgis_adapter/grpc/grpc_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ async def post_init(self) -> None:
assert self.tokenizer is not None

# Swap in the special TGIS stats logger
assert hasattr(self.engine.engine, "stat_logger")
assert self.engine.engine.stat_logger
assert hasattr(self.engine.engine, "stat_loggers")
assert self.engine.engine.stat_loggers

vllm_stat_logger = self.engine.engine.stat_loggers["prometheus"]
tgis_stats_logger = TGISStatLogger(
Expand Down

0 comments on commit afe4de5

Please sign in to comment.