-
Notifications
You must be signed in to change notification settings - Fork 26
[CB] Support pseudo batch size 1 for decode, adjust warmup #287
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
Merged
Changes from 5 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
a52c7ec
:test_tube: add test for cb @ bs 1
joerunde 1797ea3
:bug: update max batch size to 2 for cb abort test
joerunde 9561a9d
remove assertion batch size >= 2 (for warmup)
yannicks1 10aed51
fix batch size 1 warmup
yannicks1 78d864a
sorting imports
yannicks1 ff7b32a
Merge branch 'main' into cb-batch-size-1-test
yannicks1 55f4efa
Merge branch 'main' into cb-batch-size-1-test
yannicks1 b392e23
Merge branch 'main' into cb-batch-size-1-test
yannicks1 3959678
Merge branch 'main' into cb-batch-size-1-test
yannicks1 d55a23f
add test for max_num_seqs = 1
yannicks1 b2c96dd
Merge branch 'main' into cb-batch-size-1-test
yannicks1 c8ebad6
fix! setting VLLM_DT_MAX_BATCH_SIZE env for compiler to 2 !
yannicks1 c423480
Merge branch 'main' into cb-batch-size-1-test
yannicks1 9a2c516
revert adding test to reduce number of runs
yannicks1 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
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.
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.
Alternatively, could the
InputBatchconstruct itself with:since we know that it'll always need at least 2, and then we avoid reconstructing it in the worker here? That way we have a much smaller diff to back out once we can lift this bs>=2 restriction
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.
not sure if I follow here. it has to be >=2 for the warmup. with the min(1,2) we would still fail?
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.
would that work if you directly set
model_runner.input_batch.max_num_reqs = 2, instead of instantiating a newInputBatch?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.
no, because
InputBatchinitialization getsmodel_runner.input_batch.max_num_reqs..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.
max_num_seqsoccurs 17 times in the init of theInputBatch. It is not a single attribute, but used to construct several attributes. So re-initializing is simpler...