[Fix] Fix the case where prompt_len = 0 (#1593)
This commit is contained in:
@@ -526,7 +526,7 @@ class TokenizerManager:
|
||||
async with self.model_update_lock:
|
||||
# wait for the previous generation requests to finish
|
||||
while len(self.rid_to_state) > 0:
|
||||
await asyncio.sleep(0)
|
||||
await asyncio.sleep(0.001)
|
||||
self.send_to_scheduler.send_pyobj(obj)
|
||||
self.model_update_result = asyncio.Future()
|
||||
result = await self.model_update_result
|
||||
|
||||
Reference in New Issue
Block a user