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 use MPS to share GPUs in multiple Docker containers? #714

Open
zbk2012 opened this issue Sep 26, 2024 · 1 comment
Open

How to use MPS to share GPUs in multiple Docker containers? #714

zbk2012 opened this issue Sep 26, 2024 · 1 comment

Comments

@zbk2012
Copy link

zbk2012 commented Sep 26, 2024

os: redhat7.9
docker version: 20.10.21
nvidia-container-runtime: 3.13.0-1
nvidia-container-toolkit: 1.13.5-1

I performed the following steps:

  1. Open MPS on the physical machine. nvidia-cuda-mps-control -d
  2. Start the container. docker run -it --ipc=true --gpus device=7 vllm
  3. Run the script. python3 -m vllm.entrypoints.openai.api_server...

report errors:
RuntimeError: Unexpected error from cudaGetDeviceCount(). Did you run some cuda functions before calling NumCudaDevices() that might have already set an error? Error 805: MPS client failed to connect to the MPS control daemon or the MPS server.

Is it supported to open MPS on a physical machine and use MPS to share GPUs in multiple containers?

@zbk2012
Copy link
Author

zbk2012 commented Sep 29, 2024

I can now use MPS after starting the MPS server in the container. Is the failure to connect to the MPS server on the physical machine because CUDA is not installed on the physical machine?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant