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

Method batch_token_ids

colossalai/inference/batch_bucket.py:116–120  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

114
115 @property
116 def batch_token_ids(self) -> List[List[int]]:
117 out = []
118 for seq in self.seqs_li:
119 out.append(seq.input_token_id + seq.output_token_id)
120 return out
121
122 def streamingllm_update_batch(self, start_token_size: int, generated_token_size: int):
123 """

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected