Skip to content

Commit

Permalink
fix modelscope
Browse files Browse the repository at this point in the history
  • Loading branch information
irexyc committed Aug 27, 2024
1 parent 97b880b commit 86c9569
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lmdeploy/vl/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ async def _forward_loop(self):
while True:
while record.total == 0 or (self._que.qsize() and
record.total < self.max_batch_size):
while self._que.qsize() == 0:
await asyncio.sleep(0)
# while self._que.qsize() == 0:
# await asyncio.sleep(0)
item = await self._que.get()
record.enqueue(item[0], item[1], item[2])
inputs, kwargs = record.dequeue(self.max_batch_size)
Expand Down

0 comments on commit 86c9569

Please sign in to comment.