-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Additional mypy checking for vllm/executor #11344
Conversation
👋 Hi! Thank you for contributing to the vLLM project. 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 do one of these:
🚀 |
vllm/executor/ray_gpu_executor.py
Outdated
self.use_ray_compiled_dag: bool = envs.VLLM_USE_RAY_COMPILED_DAG | ||
# If the env var is set, then we do not distinguish between the | ||
# "driver worker" vs other workers. Also, the rank 0 worker will | ||
# be executed in a remote Ray worker. Currently this requires | ||
# USE_RAY_COMPILED_DAG=True. | ||
self.use_ray_spmd_worker = envs.VLLM_USE_RAY_SPMD_WORKER | ||
self.use_ray_spmd_worker: bool = envs.VLLM_USE_RAY_SPMD_WORKER |
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.
Is this necessary? I think the types should be annotated in envs
already.
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.
Yes they are, so I suppose this is not necessary
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.
Thanks for adding this! Please fix the lint errors.
c2ac7ee
to
d5f498d
Compare
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.
It looks like you accidentally changed a bunch of other stuff. Please fix your commit history.
Head branch was pushed to by a user without write access
Pull request was closed
300612d
to
47a0b61
Compare
This is a PR to add type checking for variables that map node ids to gpu ids and worker ranks, to clarify that both integers and strings are currently allowed for gpu ids. The
placement_group
type hint is derived fromvllm/config.py
#3680