mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-03 18:19:58 +00:00
precision alignment
This commit is contained in:
committed by
FrankLeeeee
parent
62968588d1
commit
9489dc64d8
@@ -230,11 +230,8 @@ class InferenceEngine:
|
||||
self.request_handler.search_tokens(self.generation_config, logits)
|
||||
finished_sequences = self.request_handler.update()
|
||||
|
||||
print("finished_sequences: ", finished_sequences)
|
||||
|
||||
# Decode completed sentences.
|
||||
for seq in finished_sequences:
|
||||
print("seq.output_token_id: ", seq.output_token_id)
|
||||
if seq.prompt:
|
||||
output_str = self.tokenizer.decode(seq.output_token_id, skip_special_tokens=True)
|
||||
output_list.append(seq.prompt + output_str)
|
||||
@@ -242,6 +239,4 @@ class InferenceEngine:
|
||||
output_str = self.tokenizer.decode(seq.input_token_id + seq.output_token_id, skip_special_tokens=True)
|
||||
output_list.append(output_str)
|
||||
|
||||
print("len(output_list): ", len(output_list))
|
||||
|
||||
return output_list
|
||||
|
Reference in New Issue
Block a user