-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
[P/D] Move FakeNixlWrapper to test dir #21328
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: Rui Qiao <[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 🚀 |
Hi @njhill @kouroshHakha please take a look, thanks |
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 correctly moves the FakeNixlWrapper
from the main source tree to the test directory, which is a good practice for separating test code from the library package. The approach of dynamically creating a mock package for Ray workers using inspect.getsource
is clever. I've identified a couple of areas for improvement in the test utility to enhance robustness and prevent potential issues in CI environments, mainly concerning resource cleanup and maintainability of the dynamic module generation.
Signed-off-by: Rui Qiao <[email protected]>
Signed-off-by: Rui Qiao <[email protected]>
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.
LGTM
} | ||
ray.init(runtime_env=runtime_env) | ||
|
||
llm = LLM( |
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.
nit: you can dedup this part of the code.
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.
you could do
llm_kwargs = dict(
model=model_name,
enforce_eager=True,
gpu_memory_utilization=0.5,
kv_transfer_config=kv_transfer_config,
distributed_executor_backend=distributed_executor_backend)
# ...
llm = LLM(**llm_kwargs)
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, refactored
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 @ruisearch42. Unlikely that the CI failures are related but we should make sure of that before merging.
} | ||
ray.init(runtime_env=runtime_env) | ||
|
||
llm = LLM( |
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.
you could do
llm_kwargs = dict(
model=model_name,
enforce_eager=True,
gpu_memory_utilization=0.5,
kv_transfer_config=kv_transfer_config,
distributed_executor_backend=distributed_executor_backend)
# ...
llm = LLM(**llm_kwargs)
Signed-off-by: Rui Qiao <[email protected]>
Signed-off-by: Rui Qiao <[email protected]> Signed-off-by: shuw <[email protected]>
Signed-off-by: Rui Qiao <[email protected]> Signed-off-by: x22x22 <[email protected]>
Signed-off-by: Rui Qiao <[email protected]>
Signed-off-by: Rui Qiao <[email protected]>
Signed-off-by: Rui Qiao <[email protected]> Signed-off-by: Jinzhen Lin <[email protected]>
Signed-off-by: Rui Qiao <[email protected]> Signed-off-by: Paul Pak <[email protected]>
Signed-off-by: Rui Qiao <[email protected]>
Signed-off-by: Rui Qiao <[email protected]> Signed-off-by: Boyuan Feng <[email protected]>
Signed-off-by: Rui Qiao <[email protected]> Signed-off-by: Diego-Castan <[email protected]>
Signed-off-by: Rui Qiao <[email protected]>
Signed-off-by: Rui Qiao <[email protected]>
Essential Elements of an Effective PR Description Checklist
supported_models.md
andexamples
for a new model.Purpose
Move FakeNixlWrapper to test dir so it is not included in vllm package
Follow up for https://github.com/vllm-project/vllm/pull/21072/files#r2216855130
Test Plan
Rerun test_nixl_connector.py
Test Result
passed
(Optional) Documentation Update