Skip to content

Reasoning parser#4000

Merged
zhaochenyang20 merged 63 commits intosgl-project:mainfrom
xihuai18:reasoning-parser
Mar 4, 2025
Merged

Reasoning parser#4000
zhaochenyang20 merged 63 commits intosgl-project:mainfrom
xihuai18:reasoning-parser

Conversation

@xihuai18
Copy link
Contributor

@xihuai18 xihuai18 commented Mar 2, 2025

Based on #3202 and #3859, I fixed some bugs, simplified the implementations and added new features.

  1. Only support --reasoning-parser server argument now. If users want to separate reasoning content, they must specify this option. The parser is chosen only based on this option, but not the model name.
  2. separate_reasoning and stream_reasoning are set as True by default.
  3. Add support for SGLang native api and offline engine.
  4. Add and .ipynb docs.
  5. Refactor and fix some bugs.

Motivation

Modifications

Checklist

Lucas Pickup and others added 30 commits February 6, 2025 16:08
…model, also handle first response while separating reasoning.
Copy link
Collaborator

@shuaills shuaills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great Job!

@tot0
Copy link

tot0 commented Mar 2, 2025

So is the consensus to not include this change? be03171

I'd like to understand the reason why if so.

@zhaochenyang20
Copy link
Collaborator

So is the consensus to not include this change? be03171

I'd like to understand the reason why if so.

cc @shuaills @XiaotongJiang

@xihuai18
Copy link
Contributor Author

xihuai18 commented Mar 3, 2025

Do we need more things to merge this PR ?

@zhaochenyang20
Copy link
Collaborator

cc @zhyncs could you take a look?

@zhyncs zhyncs mentioned this pull request Mar 3, 2025
12 tasks
@zhaochenyang20 zhaochenyang20 merged commit 95575aa into sgl-project:main Mar 4, 2025
aoshen524 pushed a commit to aoshen524/sglang that referenced this pull request Mar 10, 2025
Co-authored-by: Lucas Pickup <lupickup@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants