Skip to content

Commit

Permalink
FIX: fix stop_session func bug (#578)
Browse files Browse the repository at this point in the history
* FIX: fix stop_session func bug

* keep sequence_end = False

---------

Co-authored-by: honglei.yan <[email protected]>
Co-authored-by: AllentDan <[email protected]>
  • Loading branch information
3 people authored Nov 6, 2023
1 parent c15fbf4 commit 85d2f66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lmdeploy/turbomind/turbomind.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def stream_infer(self,
self.model_insts[0].register_callback(self._forward_callback)

if len(input_ids) == 0:
input_ids = []
input_ids = [[]]
if isinstance(input_ids[0], int):
input_ids = [input_ids]

Expand Down Expand Up @@ -383,7 +383,7 @@ def decode(self, input_ids):
"""

if len(input_ids) == 0:
input_ids = []
input_ids = [[]]
if isinstance(input_ids[0], int):
input_ids = [input_ids]

Expand Down

0 comments on commit 85d2f66

Please sign in to comment.