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

Add support for PyTorch GPU memory limit #41

Merged
merged 11 commits into from
Jan 18, 2023
Merged

Add support for PyTorch GPU memory limit #41

merged 11 commits into from
Jan 18, 2023

Conversation

kcm
Copy link
Contributor

@kcm kcm commented Jan 3, 2023

Set CUDA_MEMORY_PCT between 0.0-1.0 inclusive to limit memory use in PyTorch. Defaults to 1.0.

This is useful, for example, in shared environments such as AWS's Virtual GPU device plugin.

Addresses #39

@kcm
Copy link
Contributor Author

kcm commented Jan 4, 2023

Tested on local Linux running PyTorch 1.13.0 with CUDA12. Should be similar in EKS et al.

app.py Outdated Show resolved Hide resolved
@kcm kcm requested a review from a team as a code owner January 17, 2023 16:58
@StefanBogdan StefanBogdan merged commit 4a38a7b into main Jan 18, 2023
@StefanBogdan StefanBogdan deleted the GH-39 branch January 18, 2023 08:57
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.

4 participants