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

Make use_cuda parametric for CPU use #13

Open
devrimcavusoglu opened this issue Feb 17, 2022 · 1 comment
Open

Make use_cuda parametric for CPU use #13

devrimcavusoglu opened this issue Feb 17, 2022 · 1 comment

Comments

@devrimcavusoglu
Copy link

I'm currently adding Prism to Jury. Current implementation forces using GPU if cuda.is_available() returns True; however, this behavior is problematic as a user is unable to use CPU e.g if VRAM is not sufficient for loading the underlying prism model. It'd be very good if use_cuda is exposed as an option to user, so the user can decide whether to use CPU/GPU.

Refer to note on obss/jury#79.

@thompsonb
Copy link
Owner

I don't think the default behavior should change but an override makes sense. I have limited time to work on this now, but I can try to review a PR.

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