Skip to content

[Misc] Remove deprecated args in v0.10 #21349

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

Conversation

kebe7jun
Copy link
Contributor

These Args are no longer used and will be removed in the v0.10 release.

@kebe7jun kebe7jun marked this pull request as ready for review July 22, 2025 04:52
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a 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 removes two deprecated command-line arguments, --device and --use-v2-block-manager, from vllm/engine/arg_utils.py. The changes are straightforward and correctly implement the stated goal of cleaning up unused arguments for the v0.10 release. The removed arguments were already marked as deprecated and their removal appears safe. I don't see any issues with this change.

Copy link

👋 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 fastcheck CI which starts running only a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of those by going to your fastcheck build on Buildkite UI (linked in the PR checks section) and unblock them. If you do not have permission to unblock, ping simon-mo or khluu to add you in our Buildkite org.

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 ready label to the PR or enable auto-merge.

🚀

Copy link
Member

@DarkLight1337 DarkLight1337 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the cleanup!

@DarkLight1337 DarkLight1337 enabled auto-merge (squash) July 22, 2025 04:56
@DarkLight1337 DarkLight1337 added this to the v0.10.0 milestone Jul 22, 2025
@github-actions github-actions bot added the ready ONLY add when PR is ready to merge/full CI is needed label Jul 22, 2025
auto-merge was automatically disabled July 22, 2025 05:04

Head branch was pushed to by a user without write access

@kebe7jun kebe7jun force-pushed the fix/remove-deprecated-args-in-v0.10 branch from a46b584 to db75c11 Compare July 22, 2025 05:04
@mergify mergify bot added documentation Improvements or additions to documentation speculative-decoding labels Jul 22, 2025
@DarkLight1337
Copy link
Member

Please fix Lint and Deploy Charts CI

@kebe7jun kebe7jun force-pushed the fix/remove-deprecated-args-in-v0.10 branch from db75c11 to 82bd90a Compare July 22, 2025 05:54
@kebe7jun
Copy link
Contributor Author

Please fix Lint and Deploy Charts CI

Fixed.

@DarkLight1337 DarkLight1337 enabled auto-merge (squash) July 22, 2025 06:21
@vllm-bot vllm-bot merged commit bc8a8ce into vllm-project:main Jul 22, 2025
69 of 70 checks passed
@@ -364,7 +363,6 @@ class EngineArgs:
max_prompt_adapter_token: int = \
PromptAdapterConfig.max_prompt_adapter_token

device: Device = DeviceConfig.device
Copy link
Contributor

@yewentao256 yewentao256 Jul 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure this is not longer supported?
Now the upstream caller still pass in the param, and will cause an error

lm_eval   --model vllm   --model_args "pretrained=Qwen/Qwen3-30B-A3B-FP8,max_model_len=32768,enforce_eager=True"   --trust_remote_code   --tasks gsm8k   --num_fewshot 5   --batch_size auto
  File "/home/wentao/.wentao_env/lib/python3.12/site-packages/lm_eval/models/vllm_causallms.py", line 177, in __init__
    self.model = LLM(**self.model_args)
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/wentao/vllm-source/vllm/entrypoints/llm.py", line 244, in __init__
    engine_args = EngineArgs(
                  ^^^^^^^^^^^
TypeError: EngineArgs.__init__() got an unexpected keyword argument 'device'

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, if we are removing this, should we also have removed the Device config from config.py?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yewentao256 See #18301 (comment), the device parameter will not take effect even if it is set. It is a useless parameter. If you want to specify the device, you can specify it through the CUDA_VISIABLE_DEVICES environment variable. If it is cpu mode, you need to recompile it to cpu mode.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hmellor Thanks for your reminder, I will take a closer look at how to safely remove DeviceConfig.device, which requires another PR.

Copy link
Contributor

@yewentao256 yewentao256 Jul 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yewentao256 See #18301 (comment), the device parameter will not take effect even if it is set. It is a useless parameter. If you want to specify the device, you can specify it through the CUDA_VISIABLE_DEVICES environment variable. If it is cpu mode, you need to recompile it to cpu mode.

Make sense, thanks!

mgoin added a commit to mgoin/lm-evaluation-harness that referenced this pull request Jul 22, 2025
Device has been a deprecated arg for a few releases of vLLM and is now removed in 0.10.0 vllm-project/vllm#21349
@kebe7jun kebe7jun deleted the fix/remove-deprecated-args-in-v0.10 branch July 23, 2025 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation ready ONLY add when PR is ready to merge/full CI is needed speculative-decoding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants