Skip to content

[cherry-pick][XPU] fix thinking bug where output only contains reasoning_content - #4760

Merged
plusNew001 merged 2 commits into
PaddlePaddle:release/2.3from
ddchenhao66:fix_thinking_eos_release
Nov 4, 2025
Merged

plusNew001 merged 2 commits into
PaddlePaddle:release/2.3from
ddchenhao66:fix_thinking_eos_release

Conversation

@ddchenhao66

Copy link
Copy Markdown
Collaborator

Motivation

  1. 在模型效果导致输出只有思考没有正常回复内容的场景,推理引擎兜底处理,强制将eos token改为think end token;
  2. limit_thinking_content_length_v1/2算子增加CPU实现。

Modifications

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

paddle-bot Bot commented Nov 3, 2025

Copy link
Copy Markdown

Thanks for your contribution!

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


ddchenhao66 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@plusNew001
plusNew001 merged commit 78a1451 into PaddlePaddle:release/2.3 Nov 4, 2025
13 of 15 checks passed
@ddchenhao66
ddchenhao66 deleted the fix_thinking_eos_release branch November 4, 2025 05:58
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.

4 participants