-
-
Notifications
You must be signed in to change notification settings - Fork 11.8k
[mypy] Enable following imports for entrypoints #7248
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
youkaichao
merged 107 commits into
vllm-project:main
from
DarkLight1337:typing-entrypoints
Aug 21, 2024
Merged
Changes from 100 commits
Commits
Show all changes
107 commits
Select commit
Hold shift + click to select a range
51a4628
Add entrypoints to stricter checks
DarkLight1337 8ab3ba9
Fix `swap_space` and `cpu_offload_gb` only accepting ints; clean up c…
DarkLight1337 7efaa82
Update mypy version
DarkLight1337 e5b6784
Improve typing of tokenizer and hf config
DarkLight1337 2e0fa85
Fix `encoding_format`
DarkLight1337 e1f6d4f
Fix misc.
DarkLight1337 625e11f
[Bugfix][TPU] Set readonly=True for non-root devices (#6980)
WoosukKwon fb19d3e
[Bugfix] fix logit processor excceed vocab size issue (#6927)
FeiDeng ad9358c
Fix errors when construct sampling params
DarkLight1337 ba499d0
Improve types + format
DarkLight1337 c596ac9
Handle `decoded_token=None` + format
DarkLight1337 fcf734f
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 711f0ad
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 112224b
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 bebad8c
Fix type errors
DarkLight1337 50a1136
Make decorators typed
DarkLight1337 3b0ac79
Format
DarkLight1337 eba3863
Fix type errors
DarkLight1337 3ba6c44
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 ff49909
Fix type errors from merged commits
DarkLight1337 f348958
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 4f80738
Use more flexible tokenizer type
DarkLight1337 ffe97d6
Fix arg
DarkLight1337 1e1db1c
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 109cb1f
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 0e4c97d
Fix merge
DarkLight1337 c959a1d
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 8291a9d
Remove unnecessary type annotations
DarkLight1337 46732b8
Simplify code
DarkLight1337 37ab834
Cleanup
DarkLight1337 2da334c
Fix type errors
DarkLight1337 475d84a
Fix type error
DarkLight1337 937a8ca
Clean
DarkLight1337 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 58ca741
Merge branch 'upstream' into typing-entrypoints
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 31d82c6
Merge branch 'upstream' into typing-entrypoints
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 394a360
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 e4c5c21
Update error message
DarkLight1337 9bbafe1
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 f138f31
Merge branch 'inputs-parser' into typing-entrypoints
DarkLight1337 68fbf5a
Merge branch 'upstream' into inputs-parser
DarkLight1337 f912f25
Format
DarkLight1337 ed04adf
Merge branch 'inputs-parser' into typing-entrypoints
DarkLight1337 7da52f5
Fix circular import problem
DarkLight1337 f475a58
Fix incorrect assertion
DarkLight1337 f03b939
format
DarkLight1337 8291068
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 47baabd
Fix newly-introduced type errors
DarkLight1337 b8e69b7
fix
DarkLight1337 0a893a5
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 eb7312e
Simplify
DarkLight1337 e367e95
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 c924607
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 83fba8a
Avoid circular import
DarkLight1337 d08c826
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 4e3f014
Fix incorrect assertion
DarkLight1337 06114b6
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 c108f40
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 9066218
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 1e14f12
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 b9e8f00
Add type annotation
DarkLight1337 019981b
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 516aa3b
Clean up validation logic
DarkLight1337 f4af304
Update tests
DarkLight1337 1a81806
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 9cd8fb5
Fix type error
DarkLight1337 7e09fc8
Clean up parsing logic
DarkLight1337 b7dc954
format
DarkLight1337 78161b4
Remote quotes
DarkLight1337 0a9274a
Add fallback
DarkLight1337 1e89169
Update tests
DarkLight1337 e2ec43c
Move chat tests to the correct file
DarkLight1337 72145fe
Merge branch 'upstream' into typing-entrypoints
DarkLight1337 1f9ea92
Update pydantic version
DarkLight1337 60b8aeb
Merge branch 'upstream' into typing-entrypoints
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 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
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
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.