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

Method remove_sequence

lmdeploy/pytorch/messages.py:319–324  ·  view source on GitHub ↗

Remove sequence.

(self, seq: 'SchedulerSequence')

Source from the content-addressed store, hash-verified

317 return seq
318
319 def remove_sequence(self, seq: 'SchedulerSequence'):
320 """Remove sequence."""
321 assert seq.seq_id in self.sequences
322 seq.state.free()
323 self.sequences.pop(seq.seq_id)
324 self.seq_manager.remove_sequence(seq)
325
326
327def _div_up(x, n):

Callers

nothing calls this directly

Calls 3

freeMethod · 0.45
popMethod · 0.45
remove_sequenceMethod · 0.45

Tested by

no test coverage detected