[Model Runner] Support overlap schedule#6259
Merged
zhoutianzi666 merged 11 commits intoPaddlePaddle:developfrom Feb 4, 2026
Merged
[Model Runner] Support overlap schedule#6259zhoutianzi666 merged 11 commits intoPaddlePaddle:developfrom
zhoutianzi666 merged 11 commits intoPaddlePaddle:developfrom
Conversation
|
Thanks for your contribution! |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6259 +/- ##
==========================================
Coverage ? 67.93%
==========================================
Files ? 389
Lines ? 51886
Branches ? 8077
==========================================
Hits ? 35250
Misses ? 14067
Partials ? 2569
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:
|
zhoutianzi666
approved these changes
Feb 4, 2026
StareAtYou
added a commit
to StareAtYou/FastDeploy
that referenced
this pull request
Feb 4, 2026
yuanlehome
pushed a commit
that referenced
this pull request
Feb 4, 2026
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
当前 FD step 之间存在较大的时间间隙,主要瓶颈来自前后处理阶段引入的 DtoH 同步拷贝。该同步操作会阻塞上层调度线程的 CPU 执行,进而延迟后续 kernel 的 launch,导致 GPU 计算与调度流程被迫串行化。
本 PR 及相关改动的目标是引入 GPU 异步调度优化:通过使用异步拷贝与事件同步机制,消除不必要的 CPU–GPU 强同步点,使模型执行与上层调度以及 token 写回并行执行,从而实现 FD step 间隙的缩短,提升整体推理吞吐。
Modifications
相关PR:
本PR:
效果:
端到端提升10%
TODO:
Usage or Command
--enable-overlap-schedule: 开启异步调度,默认关闭;由于当前未适配MTP,MTP开启后此开关失效Accuracy Tests
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.