-
Notifications
You must be signed in to change notification settings - Fork 60
Issue/193: inference_server适配部署需求 #203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
9aaef0e to
89acdcc
Compare
| last_len = getattr(req, "_stream_last_yielded_length", 0) | ||
| token_text = decoded_text[last_len:] | ||
| if token_text: | ||
| req._stream_last_yielded_length = len(decoded_text) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
处理尾部可能存在的不完整字符(max_tokens 导致的finished)
| top_k=int(pick("top_k", self.top_k)), | ||
| max_tokens=int(max_tokens) if max_tokens is not None else None, | ||
| stop=stop, | ||
| stop_token_ids=stop_token_ids, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_check_request_finished中添加stop_token_ids的检查
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
start_time删掉,下面_chat的start_time也删掉
Signed-off-by: Ceng23333 <441651826@qq.com>
Signed-off-by: Ceng23333 <441651826@qq.com>
Signed-off-by: Ceng23333 <441651826@qq.com>
Signed-off-by: Ceng23333 <441651826@qq.com>
Signed-off-by: Ceng23333 <441651826@qq.com>
Signed-off-by: Ceng23333 <441651826@qq.com>
#193