-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Improve configs - TokenizerPoolConfig + DeviceConfig
#16603
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
DarkLight1337
merged 15 commits into
vllm-project:main
from
hmellor:improve-tokenizer-and-device-config
Apr 17, 2025
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
caf1446
Improve `TokenizerPoolConfig`
hmellor 51ec40e
Improve `DeviceConfig`
hmellor b5781e6
Better type hint for `get_kwargs`
hmellor d7c2d11
Fix default_factory defaults and use for `extra_config`
hmellor cdce5e4
Add dict parsing
hmellor 1eb5233
`model_loader_extra_config` can no longer be `None`
hmellor cd81a46
Fix errors
hmellor 0e778b8
Fix error
hmellor 88932e5
Fix `get_default` to get the field instead for proper `default_factor…
hmellor 7628722
Create new `field` to handle when field names are different
hmellor 5a9a7ec
Make mypy happy
hmellor dada73d
Improve docstring
hmellor 3b08655
Add whitespace
hmellor f2786af
Better typing for `optional_arg`
hmellor 91279d5
`get_default_factory_field` -> `get_field` and add test
hmellor 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
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.
We can't really hard code this because OOT platforms may use different names
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 is already hard coded by
EngineArgsusingchoices=DEVICE_OPTIONSThere 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.
cc @youkaichao is that intended?
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.
To summarise:
Literaltype hinting (no validation of the input occurrs)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.
usually people just use
device="auto"and let thecurrent_platformresolve the device, so i think it should be fine.i don't see lots of usage with explicitly adding
--device=xxx