Skip to content
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

How to specify the GPU used by vllm #2913

Closed
xiaolizh1 opened this issue Feb 20, 2025 · 0 comments
Closed

How to specify the GPU used by vllm #2913

xiaolizh1 opened this issue Feb 20, 2025 · 0 comments
Labels
❓ question Seeking clarification or more information

Comments

@xiaolizh1
Copy link

if vllm_device.split(":")[0] == "cuda" and int(vllm_device.split(":")[1]) >= torch.cuda.device_count():

I have an 8-GPUs server, of which only the last two GPUs are available, and I set CUDA_VISIBLE_DEVICE=6,7, the value of torch.cuda.device_count() is 2. I want to load vllm into GPU 6, and I set vllm_device=cuda:6, but this line of code keeps giving an ValueError. What should I do?

@github-actions github-actions bot added the ❓ question Seeking clarification or more information label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ question Seeking clarification or more information
Projects
None yet
Development

No branches or pull requests

1 participant