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

💡[feat] the request to add a feature that releases resources automatically in case of a timeout or if the GPU utilization falls below a certain threshold #9555

Open
KyanChen opened this issue Jun 24, 2024 · 4 comments
Labels
feature Feature requests

Comments

@KyanChen
Copy link

Describe the problem

Please implement a functionality in both the command prompt (cmd) and the shell environment that allows for automatic resource release in the event of a timeout or if the GPU utilization is too low.

Describe the solution you'd like

Please implement a functionality in both the command prompt (cmd) and the shell environment that allows for automatic resource release in the event of a timeout or if the GPU utilization is too low.

Describe alternatives you've considered

No response

Additional context

No response

@KyanChen KyanChen added the feature Feature requests label Jun 24, 2024
@ioga
Copy link
Contributor

ioga commented Jun 24, 2024

hello,

we do not have this as a built-in feature. One of our engineers developed an unofficial script which can terminate a process if it's not utilizing GPU. you can integrate it into your CMDs to do what you want. doing that with interactive shells or notebooks would probably be a bit trickier.

@KyanChen
Copy link
Author

Can you offer a implementation?

@KyanChen
Copy link
Author

@ioga
Copy link
Contributor

ioga commented Jun 25, 2024

I cannot offer a reference implementation besides the script I've already shared.
your code looks fine at a quick glance. it does not seem like it's going to handle the case when you have multiple GPUs per node. but hey, if it works for you, I see no problem with you using it.

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

No branches or pull requests

2 participants