MCPcopy
hub / github.com/hpcaitech/ColossalAI / append

Method append

colossalai/inference/core/request_handler.py:57–61  ·  view source on GitHub ↗
(self, seq: Sequence)

Source from the content-addressed store, hash-verified

55 return self.prefill_seq_num + self.decoding_seq_num
56
57 def append(self, seq: Sequence):
58 assert (seq.request_id not in self._prefill) and (
59 seq.request_id not in self._decoding
60 ), f"Sequence uid {seq.request_id} already exists."
61 self._prefill[seq.request_id] = seq
62
63 def extend(self, seqs: List[Sequence]):
64 for seq in seqs:

Callers 15

check_running_listFunction · 0.95
batch_token_idsMethod · 0.45
pop_seqsMethod · 0.45
pop_n_seqsMethod · 0.45
pop_finishedMethod · 0.45
apply_repetition_penaltyFunction · 0.45
beam_search_sampleFunction · 0.45
convert_kvcacheFunction · 0.45
_load_from_state_dictMethod · 0.45
_load_from_state_dictMethod · 0.45

Calls

no outgoing calls

Tested by 1

check_running_listFunction · 0.76