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

Unable to Create Multiple Agents on Specified GPU #207

Open
konstantinator opened this issue Jun 1, 2024 · 2 comments
Open

Unable to Create Multiple Agents on Specified GPU #207

konstantinator opened this issue Jun 1, 2024 · 2 comments

Comments

@konstantinator
Copy link

Hi!

I'm trying to create multiple agents on different GPUs. When I don’t specify a particular GPU, I can create many agents as shown below:

clearml-agent daemon --detached --queue hello_queue --docker hello_image
{worker created with worker ID "agent:0"}
clearml-agent daemon --detached --queue hello_queue --docker hello_image
{worker created with worker ID "agent:1"}

This creates two worker agents with different worker IDs:

However, the issue is that they both use the first of my two available GPUs.

But when I try to create multiple agents on a specific GPU like this:

clearml-agent daemon --detached --queue hello_queue --docker hello_image --gpus 1 # creating the first worker
{worker created with worker ID "agent:gpu1"}
clearml-agent daemon --detached --queue hello_queue --docker hello_image --gpus 1 # creating the second worker

I encounter an error while creating the second worker; the system reports that the worker ID "agent:gpu1" is already in use. Is there a way to automatically assign indices to such workers, perhaps like "agent:0-gpu1"?

Or is there another way to create multiple agents using a specific GPU?

@ainoam
Copy link

ainoam commented Jun 2, 2024

@konstantinator can you elaborate on the use case that leads you to running multiple agents running concurrently on the same GPU?

@konstantinator
Copy link
Author

@konstantinator can you elaborate on the use case that leads you to running multiple agents running concurrently on the same GPU?

Hi, @ainoam ! I have 2 GPUs, and my current data training configuration uses just under half of the video memory of one GPU. I've calculated that I can run 4 workers for training to tune optimal training parameters (like tuning the learning rate).

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