-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Reasoning parser #3859
base: main
Are you sure you want to change the base?
Reasoning parser #3859
Conversation
self.think_start_token = "<think>" | ||
self.think_end_token = "</think>" |
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.
Can we extend this to all reasoning models? Not just dpsk R1. There might be different thinking tokens.
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.
I think different reasoning models need different parers, and I add docs for it.
|
However, I can not pass my tests with |
…m:xihuai18/sglang into reasoning-parser
Motivation
Rewrite #3202
Modifications
--enable-reasoning
and--reasoning-parser
options for deepseek r1 series models.reasoning_content
as in official api, ref: https://api-docs.deepseek.com/zh-cn/guides/reasoning_model, in both streaming and non-streaming chat completions.Example:
Get response:
Docs with be updated as soon as possible.
Checklist