Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi committed Dec 11, 2023
1 parent dafe391 commit 7ed88cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serve/mlc_serve/engine/engine_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def update_sequence(
gen_seq.next_start_position = len(prompt_token_ids) + len(gen_seq.generated_token_ids)
gen_seq.generated_token_ids.extend(new_token_ids)

delta = gen_seq.text_streamer.put([new_token_ids[-1]])
delta = gen_seq.text_streamer.put([gen_seq.generated_token_ids[-1]])
gen_seq.output_text += delta

gen_seq.output_text, delta, gen_seq.is_finished = check_stopping_sequences(
Expand Down

0 comments on commit 7ed88cd

Please sign in to comment.