mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-10 05:20:33 +00:00
[DOC] Update inference readme (#5280)
* add readme * add readme * 1 * update engine * finish readme * add readme
This commit is contained in:
@@ -242,6 +242,7 @@ class InferenceEngine:
|
||||
finished_sequences = self.request_handler.update()
|
||||
|
||||
# Decode completed sentences.
|
||||
# TODO : update decoding step
|
||||
for seq in finished_sequences:
|
||||
output_str = self.tokenizer.decode(seq.input_token_id + seq.output_token_id, skip_special_tokens=True)
|
||||
output_list.append(output_str)
|
||||
|
Reference in New Issue
Block a user