-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Deprecation][2/N] Replace --task
with --runner
and --convert
#21470
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
Conversation
Signed-off-by: DarkLight1337 <[email protected]>
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can either: Add 🚀 |
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.
Code Review
This pull request refactors the model configuration, replacing the overloaded --task
argument with --runner
and --convert
. The changes are consistently applied across documentation, examples, and tests. The review focuses on vllm/config.py
, identifying leftover debug print
statements and a potential regression in configuration validation. A validation check is suggested to address the potential regression.
Signed-off-by: DarkLight1337 <[email protected]>
if self.runner_type in ("draft", | ||
"generate") and self.task != "transcription": | ||
self.truncation_side = "left" | ||
else: | ||
self.truncation_side = "right" |
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 has been moved to transformers_utils/tokenizer_group.py
Signed-off-by: DarkLight1337 <[email protected]>
Signed-off-by: DarkLight1337 <[email protected]>
Also cc @maxdebayser in case it is related to your PRs. Those failing tests are all V1 only |
Signed-off-by: DarkLight1337 <[email protected]>
Signed-off-by: DarkLight1337 <[email protected]>
Signed-off-by: DarkLight1337 <[email protected]>
Signed-off-by: DarkLight1337 <[email protected]>
Signed-off-by: DarkLight1337 <[email protected]>
Signed-off-by: DarkLight1337 <[email protected]>
…llm-project#21470) Signed-off-by: DarkLight1337 <[email protected]> Signed-off-by: Harry Mellor <[email protected]> Co-authored-by: Harry Mellor <[email protected]>
…llm-project#21470) Signed-off-by: DarkLight1337 <[email protected]> Signed-off-by: Harry Mellor <[email protected]> Co-authored-by: Harry Mellor <[email protected]>
…llm-project#21470) Signed-off-by: DarkLight1337 <[email protected]> Signed-off-by: Harry Mellor <[email protected]> Co-authored-by: Harry Mellor <[email protected]> Signed-off-by: shuw <[email protected]>
…llm-project#21470) Signed-off-by: DarkLight1337 <[email protected]> Signed-off-by: Harry Mellor <[email protected]> Co-authored-by: Harry Mellor <[email protected]>
…llm-project#21470) Signed-off-by: DarkLight1337 <[email protected]> Signed-off-by: Harry Mellor <[email protected]> Co-authored-by: Harry Mellor <[email protected]>
…llm-project#21470) Signed-off-by: DarkLight1337 <[email protected]> Signed-off-by: Harry Mellor <[email protected]> Co-authored-by: Harry Mellor <[email protected]>
…llm-project#21470) Signed-off-by: DarkLight1337 <[email protected]> Signed-off-by: Harry Mellor <[email protected]> Co-authored-by: Harry Mellor <[email protected]> Signed-off-by: Jinzhen Lin <[email protected]>
…llm-project#21470) Signed-off-by: DarkLight1337 <[email protected]> Signed-off-by: Harry Mellor <[email protected]> Co-authored-by: Harry Mellor <[email protected]> Signed-off-by: Paul Pak <[email protected]>
…llm-project#21470) Signed-off-by: DarkLight1337 <[email protected]> Signed-off-by: Harry Mellor <[email protected]> Co-authored-by: Harry Mellor <[email protected]>
…llm-project#21470) Signed-off-by: DarkLight1337 <[email protected]> Signed-off-by: Harry Mellor <[email protected]> Co-authored-by: Harry Mellor <[email protected]> Signed-off-by: Boyuan Feng <[email protected]>
…llm-project#21470) Signed-off-by: DarkLight1337 <[email protected]> Signed-off-by: Harry Mellor <[email protected]> Co-authored-by: Harry Mellor <[email protected]> Signed-off-by: Diego-Castan <[email protected]>
Essential Elements of an Effective PR Description Checklist
supported_models.md
andexamples
for a new model.Purpose
Follow-up to #21227
--task
(model_config.task
) is now deprecated. Users are expected to pass--runner
and/or--convert
instead, according to the logic of https://github.com/vllm-project/vllm/pull/21470/files#diff-7eaad0b7dee0626bf29d10081b0f0c5e3ea15a4af97e7b182a4e0d35f8346953R610-R670This PR also makes it a lot easier to add new converters without having to wrestle with model registry, since
registry.is_pooling_model
is now based on the un-converted architecture.FIX #21514
cc @maxdebayser @noooop @22quinn
Test Plan
Added new tests to check the handling of passing custom
--pooling
.The existing tests, especially those that are updated in this PR, should pass.
Test Result
(Optional) Documentation Update
Updated all documentation to stop referring to
--task
.