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 run multiple mixtral in one machine #3406

Closed
ToheartZhang opened this issue Mar 14, 2024 · 3 comments
Closed

How to run multiple mixtral in one machine #3406

ToheartZhang opened this issue Mar 14, 2024 · 3 comments

Comments

@ToheartZhang
Copy link

I have an 8xA100 GPU machine. I noticed that one Mixtral instance requires at least 2 GPUs. However, when I attempt to run two Mixtral instances on the machine, each allocated 2 GPUs, the second one hangs at Started a local Ray instance. Additionally, the terminal reports fork: retry: Resource temporarily unavailable. It appears that the two Ray instances are causing a conflict. Is there any solution to resolve this issue?

@thesues
Copy link
Contributor

thesues commented Mar 14, 2024

may be you can se env variable CUDA_VISIBLE_DEVICES before starting a LLM instance?

CUDA_VISIBLE_DEVICES="0,1" python llm.py
CUDA_VISIBLE_DEVICES="2,3" python llm.py

@ToheartZhang
Copy link
Author

Thanks for your help. I have specified CUDA_VISIBLE_DEVICES. Besides, multiple vllm process works when each model only needs one GPU, where Ray is not used. So I believe the issue is about setting Ray.

@ToheartZhang
Copy link
Author

Problem solved by #1058

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

2 participants