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

[RFC] [CUDA] distribute Python wheels with CUDA support #6828

Open
jameslamb opened this issue Feb 15, 2025 · 2 comments
Open

[RFC] [CUDA] distribute Python wheels with CUDA support #6828

jameslamb opened this issue Feb 15, 2025 · 2 comments

Comments

@jameslamb
Copy link
Collaborator

Summary

Using the lightgbm Python package with CUDA support currently requires either installing it with conda or building it from source.

LightGBM should provide pre-compiled wheels supporting at least the latest major version of CUDA (CUDA 12 as of this writing).

I am opening this as a tracking issue for this feature, and to have a public discussion about this topic.

Benefits of this work

  • would make it easier for users who do not want to use conda to use the CUDA version, without needing a build toolchain
  • would help encourage more migration away from the (currently unmaintained) OpenCL-based version to the newer, better-maintained CUDA version

Acceptance Criteria

  • CUDA wheels for at least Linux (and ideally both x86_64 and aarch64) are:
    • built and tested in CI
    • published to PyPI

Approach

Some design choices need to be made:

See some prior discussions from xgboost on implementation details

Notes

Issues people have had with building from source:

@StrikerRUS
Copy link
Collaborator

Related: #6539 (comment)

@shiyu1994
Copy link
Collaborator

Thanks for bringing this up. I agree that we should constrain our supported CUDA version range. For now, the built CUDA version could be larger than 500M.

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

No branches or pull requests

3 participants