Skip to content

Conversation

@kxz2002
Copy link
Contributor

@kxz2002 kxz2002 commented Oct 29, 2025

Motivation

The registered names for tool_parser and reasoning_parser currently use either “-” or “_”; they need to be standardized.

Modifications

The registered names for tool_parser and reasoning_parser uniformly use the hyphen (-). When retrieving parsers via their names in the base class, the underscore is replaced with a hyphen.

Usage or Command

Accuracy Tests

Checklist

  • Add at least a tag in the PR title.
    • Tag list: [[FDConfig],[APIServer],[Engine], [Scheduler], [PD Disaggregation], [Executor], [Graph Optimization], [Speculative Decoding], [RL], [Models], [Quantization], [Loader], [OP], [KVCache], [DataProcessor], [BugFix], [Docs], [CI], [Optimization], [Feature], [Benchmark], [Others], [XPU], [HPU], [GCU], [DCU], [Iluvatar], [Metax]]
    • You can add new tags based on the PR content, but the semantics must be clear.
  • Format your code, run pre-commit before commit.
  • Add unit tests. Please write the reason in this PR if no unit tests.
  • Provide accuracy results.
  • If the current PR is submitting to the release branch, make sure the PR has been submitted to the develop branch, then cherry-pick it to the release branch with the [Cherry-Pick] PR tag.

@paddle-bot
Copy link

paddle-bot bot commented Oct 29, 2025

Thanks for your contribution!

@paddle-bot paddle-bot bot added the contributor External developers label Oct 29, 2025
luukunn
luukunn previously approved these changes Oct 29, 2025
LiqinruiG
LiqinruiG previously approved these changes Oct 29, 2025
Copy link
Collaborator

@LiqinruiG LiqinruiG left a comment

Choose a reason for hiding this comment

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

LGTM

gongshaotian
gongshaotian previously approved these changes Oct 30, 2025
Copy link
Collaborator

@gongshaotian gongshaotian left a comment

Choose a reason for hiding this comment

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

LGTM

@kxz2002 kxz2002 dismissed stale reviews from gongshaotian, LiqinruiG, and luukunn via 1498fda October 30, 2025 03:54
yuanlehome
yuanlehome previously approved these changes Oct 30, 2025
LiqinruiG
LiqinruiG previously approved these changes Oct 30, 2025
Copy link
Collaborator

@LiqinruiG LiqinruiG left a comment

Choose a reason for hiding this comment

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

LGTM

@kxz2002 kxz2002 dismissed stale reviews from LiqinruiG and yuanlehome via 0de54f6 October 30, 2025 07:31
@LiqinruiG LiqinruiG merged commit a2870ed into PaddlePaddle:develop Oct 31, 2025
23 of 29 checks passed
kxz2002 added a commit to kxz2002/FastDeploy that referenced this pull request Oct 31, 2025
… reasoning_parser to “-” (PaddlePaddle#4668)

* parser register name unify

* change ernie_x1 to ernie-x1

* change ernie4_5_vl to ernie-45-vl

* fix unit test
Jiang-Jia-Jun pushed a commit that referenced this pull request Oct 31, 2025
… and reasoning_parser to “-” (#4668) (#4737)

* [Feature] add a new reasoning parser (#4571)

* add new reasoning_parser initial commit

* add parser file content

* add register

* ernie_test_reasoning_parser

* support <tool_call> token and add tool_parser

* add and fix unit tests

* modify reasoning_parser

* modify reasoning parser and tool parser

* modify unit tests

* modify reasoning_parser and tool_parser

* modify unit tests

* fix tool_parser

* modify the logic of reasoning_parser and tool_parser

* add and modify unit tests

* standardize code style

* simplify reasoning_parser and tool_parser

* modify unit test

* [BugFix] Fix finish reason in _create_chat_completion_choice  (#4582)

* fix n_param _create_chat_completion_choicel

* fix unit test

* fix final_res

* modify unit tests

* [BugFix] fix offline llm chat "enable_thinking" is always "False" (#4686)

* fix enable_thinking

* recover ernie4_5_vl_processor

* [Feature] Unify the registration name recognition for tool_parser and reasoning_parser to “-” (#4668)

* parser register name unify

* change ernie_x1 to ernie-x1

* change ernie4_5_vl to ernie-45-vl

* fix unit test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants