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

Upgrade to NumPy 2.1 #3560

Open
MaximilianHess opened this issue Sep 9, 2024 · 5 comments
Open

Upgrade to NumPy 2.1 #3560

MaximilianHess opened this issue Sep 9, 2024 · 5 comments

Comments

@MaximilianHess
Copy link

Problem description

We're planning to use NumPy 2.1 in our project due to its performance improvements. However, Gensim currently depends on NumPy 1.26.4. Are there any plans to update Gensim's dependencies to support NumPy 2.1? Currently, attempting to use Gensim with NumPy 2.1 results in a failure.

@mpenkov
Copy link
Collaborator

mpenkov commented Sep 9, 2024

Closing as duplicate of #3535

@mpenkov mpenkov closed this as completed Sep 9, 2024
@gojomo
Copy link
Collaborator

gojomo commented Sep 10, 2024

#3535 was a quickie investigational PR into the effort required for Numpy 2.x support – & it might not get much attention. It's probably not the right place to discuss project plans, if any, for Numpy 2.x support - an issue which might spawn many other PRs, bug reports, &
frequent-questions.

@mpenkov
Copy link
Collaborator

mpenkov commented Sep 11, 2024

OK, let's make this the discussion place instead of #3535.

@hechth
Copy link

hechth commented Nov 6, 2024

@mpenkov @YoungMind1 and @piskvorky I've had a quick look at the numpy update and building the package seems fine and only few tests are broken. I'll give it a go tomorrow and see if I can fix the tests.

@knevan
Copy link

knevan commented Nov 9, 2024

I'm also having trouble with my project because it uses spacy which blis and thinc use numpy>2.0 while gensim is still with numpy 1.26.4.

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

No branches or pull requests

5 participants