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

Method _send_resps

lmdeploy/pytorch/engine/engine_loop.py:232–242  ·  view source on GitHub ↗

Send response callback.

(self, step_outputs: list[InferOutput])

Source from the content-addressed store, hash-verified

230 logprobs.extend(cur_logprobs)
231
232 def _send_resps(self, step_outputs: list[InferOutput]):
233 """Send response callback."""
234 self._log_resps(step_outputs)
235 self._update_logprobs(step_outputs)
236
237 is_done = set()
238 for out in reversed(step_outputs):
239 if out.session_id in is_done:
240 continue
241 is_done.add(out.session_id)
242 self._send_resp(out)
243
244 async def send_response_loop(self):
245 """Send response to client."""

Callers 1

send_response_loopMethod · 0.95

Calls 4

_log_respsMethod · 0.95
_update_logprobsMethod · 0.95
_send_respMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected