MCPcopy Index your code
hub / github.com/InternLM/lmdeploy / preprocess_loop

Method preprocess_loop

lmdeploy/pytorch/engine/engine_loop.py:149–153  ·  view source on GitHub ↗

Preprocess request.

(self)

Source from the content-addressed store, hash-verified

147 assert self.engine_conn is not None, 'Engine connection must be provided for non-hybrid engine role.'
148
149 async def preprocess_loop(self):
150 """Preprocess request."""
151 while not self.stop_event.is_set():
152 await self.req_manager.step()
153 self.has_runable_event.set()
154
155 async def drain_for_sleep(self):
156 """Pause scheduling after the current forward step drains."""

Callers 1

startMethod · 0.95

Calls 2

stepMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected