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

Add compatibility for numpy 2 while preserving numpy 1 compatibility #1265

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

neilmehta24
Copy link

Check the numpy major version number before deciding which file to import methods from.

I have not benchmarked numpy 1 vs numpy 2 performance for outlines, but I have verified that outlines works as intended when using numpy 2 for the examples in the README.

Closes #1104

@ur4t
Copy link

ur4t commented Nov 24, 2024

@rlouf Could you please review and merge this PR? Torch has moved to Numpy 2.0 for quite a long time and there might be potential breakages to downgrade Numpy.

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.

Numpy > 1.26.4
2 participants