-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Fix the AMD weight loading tests #8390
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
👋 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:
🚀 |
@@ -876,8 +876,8 @@ def __init__( | |||
from vllm.executor import ray_utils | |||
backend = "mp" | |||
ray_found = ray_utils.ray_is_available() | |||
if (torch.cuda.is_available() | |||
and cuda_device_count_stateless() < self.world_size): |
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 use if current_platform.is_cuda()
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.
cuda_device_count_stateless()
can raise error in other platforms
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, this is definitely better to use and seems to work locally
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 the fix!
weight loading passed, considering the emergence, let's directly merge it. |
Signed-off-by: Alvant <[email protected]>
Signed-off-by: LeiWang1999 <[email protected]>
FIX #8392
FIX #8397