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

Feature request: allow predict to output on GPU device memory #5207

Closed
JohnZed opened this issue Jan 15, 2020 · 0 comments · Fixed by #5512
Closed

Feature request: allow predict to output on GPU device memory #5207

JohnZed opened this issue Jan 15, 2020 · 0 comments · Fixed by #5512

Comments

@JohnZed
Copy link
Contributor

JohnZed commented Jan 15, 2020

For users whose whole pipeline is in GPU memory, having predict return results on GPU device memory would be optimal. This particularly comes up in the case of hyperparameter sweeps, where a GPU-based scoring function is available (and fast), but we have to bring predictions to host memory.

Perhaps something like booster.predict(test_dmatrix, device="gpu0") would work as an API, with a default to device="cpu"?

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

Successfully merging a pull request may close this issue.

2 participants