Skip to content

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

@JohnZed

Description

@JohnZed

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"?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions