-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[Inference] Optimize and Refactor Inference Batching/Scheduling #5367
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
yuanheng-zhao
merged 29 commits into
hpcaitech:feature/colossal-infer
from
yuanheng-zhao:opt/batching
Feb 19, 2024
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
0e9fc31
add kvcache manager funcs for batching
yuanheng-zhao 9c9d199
(trivial) remove print
yuanheng-zhao 1244546
add batch bucket for batching
yuanheng-zhao 5ed7f1e
revise RunningList struct in handler
yuanheng-zhao b947131
add kvcache/batch funcs for compatibility
yuanheng-zhao 3e411f3
use new batching methods
yuanheng-zhao 4882943
fix indexing bugs
yuanheng-zhao de59c2a
(trivial) modify comments
yuanheng-zhao 632d5df
revise abort logic
yuanheng-zhao ca7820f
use cpu seq lengths/block tables
yuanheng-zhao 8ff3615
rm unused attr in Sequence
yuanheng-zhao 734de9b
fix type conversion/default arg
yuanheng-zhao 183d4cf
add and revise pytests
yuanheng-zhao 0b512a3
revise pytests, rm unused tests
yuanheng-zhao 2d7550f
rm unused statements
yuanheng-zhao b4d913a
fix pop finished indexing issue
yuanheng-zhao a5e74a5
trivial revise
yuanheng-zhao 5a8a12b
fix: use index in batch when retrieving inputs/update seqs
yuanheng-zhao 3494374
use dict instead of odict in batch struct
yuanheng-zhao a99f399
arg type hinting
yuanheng-zhao 5323428
fix make compress
yuanheng-zhao 7293e09
refine comments
yuanheng-zhao 6df7714
fix: pop_n_seqs to pop the first n seqs
yuanheng-zhao 0e70068
(trivial) type hints
yuanheng-zhao 07a25d3
add check in request handler
yuanheng-zhao 78cc43a
remove redundant conversion
yuanheng-zhao b3dcb18
fix test for request handler
yuanheng-zhao d2e156b
fix pop method in batch bucket
yuanheng-zhao e1ff72f
fix prefill adding
yuanheng-zhao 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
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
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.
Uh oh!
There was an error while loading. Please reload this page.