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
NOTE: I figured out my issue. relik requires numpy==1.26.4 and it isn't pinned as a dependency in the package. This means your package manager is likely to install numpy==2.0.2 which is the latest as of January 30, 2025. This will confuse relik and it will not function. Downgrade to numpy==1.26.4 and all will be well...
My environment is:
Anaconda Python 3.11.11
conda environment
Poetry 2.0.1
relik==1.0.7
Other than some dependencies like black and isort, relik is the only package I have installed via poetry add relik.
fromrelikimportRelikfromrelik.inference.data.objectsimportRelikOutputrelik=Relik.from_pretrained("sapienzanlp/relik-entity-linking-large")
relik_out: RelikOutput=relik("Michael Jordan was one of the best players in the NBA.")
I get this numpy dimension exception, straight away:
It looks like relik expects a certain version of numpy that isn't getting installed correctly when I poetry add relik.
Please advice... I am writing a blog post entitled Three New Information Extraction Models Compared about this project, comparing it with GLiREL and NuExtract. This stopped me straight away. I am going to test the other two and come back here and debug this bad boy. In the meantime maybe you will get back to me :)
The text was updated successfully, but these errors were encountered:
rjurney
changed the title
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
numpy v2.0.2 fail: ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
Jan 31, 2025
rjurney
added a commit
to rjurney/relik
that referenced
this issue
Jan 31, 2025
NOTE: I figured out my issue.
relik
requiresnumpy==1.26.4
and it isn't pinned as a dependency in the package. This means your package manager is likely to installnumpy==2.0.2
which is the latest as of January 30, 2025. This will confuserelik
and it will not function. Downgrade tonumpy==1.26.4
and all will be well...My environment is:
black
andisort
,relik
is the only package I have installed viapoetry add relik
.When I run the hello world:
I get this
numpy
dimension exception, straight away:It looks like
relik
expects a certain version of numpy that isn't getting installed correctly when Ipoetry add relik
.Please advice... I am writing a blog post entitled Three New Information Extraction Models Compared about this project, comparing it with GLiREL and NuExtract. This stopped me straight away. I am going to test the other two and come back here and debug this bad boy. In the meantime maybe you will get back to me :)
The text was updated successfully, but these errors were encountered: