[Feature] Support ThinkingBudget Logits processor to control thinking content length#6367
Open
jackyYang6 wants to merge 4 commits intoPaddlePaddle:developfrom
Open
[Feature] Support ThinkingBudget Logits processor to control thinking content length#6367jackyYang6 wants to merge 4 commits intoPaddlePaddle:developfrom
jackyYang6 wants to merge 4 commits intoPaddlePaddle:developfrom
Conversation
|
Thanks for your contribution! |
adc6dbd to
6934693
Compare
1c8ee27 to
f3741ce
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #6367 +/- ##
==========================================
Coverage ? 67.64%
==========================================
Files ? 392
Lines ? 52628
Branches ? 8240
==========================================
Hits ? 35602
Misses ? 14382
Partials ? 2644
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
466ad5d to
6f185d2
Compare
2e0d651 to
6f7ab95
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
引入 ThinkingBudget logits processor 用于限制 段长度,同时补充中英文使用文档与单测。
Modifications
ThinkingBudgetLogitsProcessor并注册为内置 logits processor,用于控制思考长度。<think>prompt 状态预计算,避免首步 GPU 扫描 prompt。Usage or Command
启动服务:
请求示例:
Accuracy Tests
不涉及 kernel 或模型 forward 逻辑变更,暂无精度回归需求。
Checklist
[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]]pre-commitbefore commit.releasebranch, make sure the PR has been submitted to thedevelopbranch, then cherry-pick it to thereleasebranch with the[Cherry-Pick]PR tag.