Skip to content

Commit 594b080

Browse files
committed
fix
1 parent 75b87fa commit 594b080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightllm/server/detokenization/decode_req.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(
3232
self.input_len = self.req.input_len
3333
self.prefix_str = ""
3434
self.stop_strs: List[str] = self.req.sample_params.stop_sequences.to_strings()
35-
self.stop_str_max_len = max([len(e) for e in self.stop_strs])
35+
self.stop_str_max_len = max([len(e) for e in self.stop_strs] + [0])
3636

3737
def init_token_healing_prefix_str(self, token_id_to_token: Dict[int, str], tokenizer):
3838
tokens = [token_id_to_token[token_id] for token_id in self.req.prefix_token_ids.get_token_ids()]

0 commit comments

Comments
 (0)