-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
[Core] Support serving encoder/decoder models #7258
Merged
Merged
Changes from 6 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
33c9e25
Introduce `is_list_of`
DarkLight1337 e6dd6f5
Avoid circular imports
DarkLight1337 f938c86
Refactor prompt parsing and extend this to async engine
DarkLight1337 6332d1e
Remove unnecessary comments
DarkLight1337 07b4d21
Enable full async
DarkLight1337 e29864c
grammar
DarkLight1337 c9dfb40
Add description
DarkLight1337 1233192
Fix wrong type annotations
DarkLight1337 f332275
Merge branch 'upstream' into inputs-parser
DarkLight1337 dcdebee
Remove redundant docs
DarkLight1337 65db3f1
Be more strict
DarkLight1337 9ffeb22
Fix docs
DarkLight1337 c9e0b08
Fix 2
DarkLight1337 14bca1f
Disallow multi-modal data for enc/dec models
DarkLight1337 8fc7099
Improve type narrowing behavior using `TypeIs`
DarkLight1337 3a8a072
Avoid sequential await
DarkLight1337 ef5327c
Fix type annotations based on test files
DarkLight1337 8a835cc
Properly handle `inputs["decoder_prompt"]=None`
DarkLight1337 e0024c2
Clean
DarkLight1337 76af172
Clean
DarkLight1337 5c16f2e
Fix incorrect decoder inputs in singleton case
DarkLight1337 e239ba9
Clean
DarkLight1337 4b0e3df
Move functions to a more appropriate place
DarkLight1337 53f7f50
Remove outdated comment
DarkLight1337 3afdbc5
Fix mismatch between hf and vllm output text
DarkLight1337 c61b01f
Factor out duplicate code
DarkLight1337 f8ed373
Factor out more duplicate code
DarkLight1337 a4df70a
Remove default values to avoid accidentally miss those arguments
DarkLight1337 5240bb3
Add test for serving encoder/decoder model with OpenAI server
DarkLight1337 d321c82
Use two type variables
DarkLight1337 931d1f6
Merge branch 'upstream' into inputs-parser
DarkLight1337 a06c67f
Merge branch 'upstream' into inputs-parser
DarkLight1337 9f64a05
Merge branch 'upstream' into inputs-parser
DarkLight1337 e4c5c21
Update error message
DarkLight1337 68fbf5a
Merge branch 'upstream' into inputs-parser
DarkLight1337 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 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 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 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 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 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 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 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 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.
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.
This should not change in this PR
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.
Sorry, I don't quite get what you mean by this. Could you elaborate?
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.
I don't think this function needs changes in this PR - just a nit
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.
I see - this is just to keep the order of arguments consistent with the new ordering of parameters in
process_model_inputs_async
(which has been updated alongsideprocess_model_inputs
).