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

Setting max_gpu_fraction as in Tensorflow backend #108

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

FabianSchuetze
Copy link

This PR permits setting the a max_gpu_fraction for the pytorch backend.

Pytorch allows setting the max gpu fraction through the CUDACachingAllocator . The user of the pytorch_backend can set the memory fraction in the same fashion as in the tensorflow backend. The memory fraction applies to all models.

I am a bit uncertain about how to handle the case with multiple GPUs and would appreciate feedback about desired behavior in this case.

@whateverforever
Copy link

any update on this?

@FabianSchuetze
Copy link
Author

I haven't heard from the owners of the repo yet. Is someone available for a code review?

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

Successfully merging this pull request may close these issues.

2 participants