Skip to content

Commit

Permalink
Fix the problem with "vllm + chatglm3" (lm-sys#2845)
Browse files Browse the repository at this point in the history
  • Loading branch information
姚峰 committed Dec 30, 2023
1 parent 1368f3f commit 7ef8e43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fastchat/serve/vllm_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ async def generate_stream(self, params):

for tid in stop_token_ids:
if tid is not None:
stop.add(self.tokenizer.decode(tid))
s = self.tokenizer.decode(tid)
if s != "":
stop.add(s)

# make sampling params in vllm
top_p = max(top_p, 1e-5)
Expand Down

0 comments on commit 7ef8e43

Please sign in to comment.