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

use deploy_rank to allocate gpus #234

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tulika612
Copy link

No description provided.

@@ -74,6 +74,15 @@ def _create_lb_config(self, mii_config):
replica_pool = _allocate_processes(mii_config.hostfile,
mii_config.tensor_parallel,
mii_config.replica_num)
if mii_config.deploy_rank!=-1 and mii_config.replica_num==1:
if isinstance(mii_config.deploy_rank, int):
replica_pool = [(replica_pool[0][0], [mii_config["deploy_rank"]])]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tulika612 - could you fix merge conflicts and we can work on getting this PR reviewed if you still think it is valuable?

@loadams loadams requested review from adk9 and lekurile and removed request for jeffra, samyam and mrwyattii July 25, 2024 17:42
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

Successfully merging this pull request may close these issues.

2 participants