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

12 upgrade to numpy 2x #23

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

12 upgrade to numpy 2x #23

wants to merge 3 commits into from

Conversation

jmaces
Copy link
Collaborator

@jmaces jmaces commented Jul 18, 2024

Closes #12

We switch our linter from flake8 to ruff to make use of its linting rule "NPY201" checking Numpy v2 compatibility, as described in the migration guide https://numpy.org/devdocs/numpy_2_0_migration_guide.html

@jmaces jmaces self-assigned this Jul 18, 2024
@jmaces jmaces linked an issue Jul 18, 2024 that may be closed by this pull request
@jmaces
Copy link
Collaborator Author

jmaces commented Jul 18, 2024

It looks like the Numpy CI issue mentioned in #12 was not caused by any of our own code but version compatibility issues between Numpy and PyTorch.

According to pytorch/pytorch#107302, PyTorch versions <=2.1 will only be compatible with Numpy 1.x, while PyTorch version >=2.2 will support also Numpy 2.x.

However there currently seems to be an issue with the Windows builds of PyTorch with Numpy 2.0, causing our CI to fail, see pytorch/pytorch#128860.

Since it is not urgent to fix the numpy version pin on our end, I suggest we wait a bit more and check back if the Windows build problems get fixed.

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

Successfully merging this pull request may close these issues.

Upgrade to numpy 2.x
1 participant