Repository navigation
Extend dynamic inference asynchronous scheduling support #5939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
lmcafee-nvidia
merged 28 commits into
NVIDIA:main
from
lmcafee-nvidia:async-sched-prefill
Jul 28, 2026
Merged
Changes from 14 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
8f70fe7
Add asynchronous prefill scheduling
lmcafee-nvidia cda97a7
Label asynchronous prefill phases
lmcafee-nvidia d4a9758
Reorder controller methods by dependency
lmcafee-nvidia da72be8
Remove serial async scheduling mode
lmcafee-nvidia 1965c8d
Remove obsolete async scheduling events
lmcafee-nvidia 25ff376
Remove redundant async token metadata compaction
lmcafee-nvidia 7739953
Separate async request resolution from token commits
lmcafee-nvidia 529dca3
Move async token count ownership out of resolution
lmcafee-nvidia cc7bc5a
Select async scheduling by overlap
lmcafee-nvidia 661236d
Support lifecycle fallback in async scheduling
lmcafee-nvidia 7164358
Preserve counters across async dummy resets
lmcafee-nvidia c9bb286
Merge remote-tracking branch 'main/main' into async-sched-prefill
lmcafee-nvidia 4c6a1ea
Run autoformat after merging main
lmcafee-nvidia 48ff876
Fix async scheduling step classification
lmcafee-nvidia ddc839a
Simplify async scheduling log labels
lmcafee-nvidia 06f8912
Merge remote-tracking branch 'main/main' into async-sched-prefill
lmcafee-nvidia 61ada4f
Merge remote-tracking branch 'main/main' into async-sched-prefill
lmcafee-nvidia b819e71
Merge remote-tracking branch 'main/main' into async-sched-prefill
lmcafee-nvidia f00aa8d
Fix async sampling buffer test
lmcafee-nvidia d85e283
Remove async resolution forward synchronization
lmcafee-nvidia 19535cc
Support Mamba async scheduling
lmcafee-nvidia 71e2e18
Support async prefix caching and chunked prefill
lmcafee-nvidia b771239
Support sampling modes with async scheduling
lmcafee-nvidia cc4187c
Support log probabilities with async scheduling
lmcafee-nvidia ce7b988
Support stop words with async scheduling
lmcafee-nvidia 5b236ba
Merge remote-tracking branch 'main/main' into async-sched-prefill
lmcafee-nvidia 403b1a9
Remove async scheduling functional test recipe
lmcafee-nvidia 2c957eb
Merge remote-tracking branch 'main/main' into async-sched-prefill
lmcafee-nvidia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
1,060 changes: 789 additions & 271 deletions
1,060
megatron/core/inference/text_generation_controllers/text_generation_controller.py
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
technically this is not strictly backwards compatible, though im not sure how much we care about back compat for inference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we should at least leave a comment. Is
asynca (improved) rename ofoverlap?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes,
asyncis a rename ofoverlap.and @jiemingz , I believe inference has not being enforcing backwards compatibility for a while. also, all of this async stuff has been going in in the last couple weeks, so it's relatively short-lived.