Skip to content

Commit

Permalink
rollback 'end'
Browse files Browse the repository at this point in the history
  • Loading branch information
lvhan028 committed Sep 8, 2023
1 parent eca3c9e commit 59441ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lmdeploy/turbomind/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,11 @@ def main(model_path,
if prompt == 'exit':
exit(0)
elif prompt == 'end':
input_ids = tokenizer.encode('')
prompt = model.get_prompt('', nth_round == 1)
input_ids = tokenizer.encode(prompt)
for outputs in generator.stream_infer(session_id=session_id,
input_ids=[input_ids],
request_output_len=0,
request_output_len=512,
sequence_start=False,
sequence_end=True,
stream_output=stream_output):
Expand Down

0 comments on commit 59441ea

Please sign in to comment.