Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tensorrt_llm/bench/benchmark/utils/asynchronous.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ async def iteration_worker(self, iteration_addr: str) -> None:
while not self._stop.is_set():
async for stats in self.llm.get_stats_async(2):
await socket.send_json(stats)
# NOTE: This is a WAR to force this loop to relinquish control
# that was preventing other async tasks from holding the event
# loop. If we don't
await asyncio.sleep(0)

# Wrap up by sending any remaining statistics data
logger.debug("Iteration log worker wrapping up...")
Expand Down