You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
numpy 2.0 is coming out soon, and has release candidates up.
We should test lightgbm against it, and if any changes are required, try to get them into the next release (#6439).
Motivation
numpy is a hard runtime dependency of lightgbm. It would not be a good experience for users if incompatibility with its new major version leads to needing to manually pin numpy<2 in their environments.
Description
At a minimum, we should manually test lightgbm against the numpy release candidate. See dmlc/treelite#560 for a migration guide.
This issue has been automatically locked since there has not been any recent activity since it was closed.
To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.
Activity
[-][python-package] Support NumPy 2.0[/-][+][python-package] NumPy 2.0 support[/+]jameslamb commentedon May 16, 2024
There will be at least one thing I know needs to change...
np.array(..., copy=False)calls being changed tonp.asarray(...). Reference: https://github.com/dmlc/treelite/pull/562/files#r1603610473[python-package] Add support for NumPy 2.0, test against nightly vers…
github-actions commentedon Jun 18, 2025
This issue has been automatically locked since there has not been any recent activity since it was closed.
To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.