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

txtai gives Illegal instruction (core dumped) #31

Closed
mohsin-ashraf opened this issue Oct 13, 2020 · 4 comments
Closed

txtai gives Illegal instruction (core dumped) #31

mohsin-ashraf opened this issue Oct 13, 2020 · 4 comments

Comments

@mohsin-ashraf
Copy link

Hi, I have successfully installed the txtai in my linux server. When I run python and do from txtai.embeddings import Embeddings it terminates the python process and gives Illegal instruction (core dumped) error. Following are the details of my linux server, can anybody help me figureout the problem and fix it. Thanks.

Linux-4.15.0-45-generic-x86_64-with-Ubuntu-18.04-bionic
Number of cores: 40
RAM: 126GB
Python 3.6.9 (default, Nov  7 2019, 10:44:02) 
[GCC 8.3.0]
@davidmezzetti
Copy link
Member

Thank you for reporting this. This is most likely an issue with a native package.

Can you try opening a python shell and running the following:

import numpy
from annoy import AnnoyIndex
from hnswlib import Index
import faiss
import fasttext

Do you get a core dump from any of those statements above? Usually this error occurs with a precompiled native package having a CPU instruction not supported on the executing platform.

@mohsin-ashraf
Copy link
Author

Everything statement from the above works fine except
import faiss
as soon as I do import faiss in the shell I get core dumped. I'll report this issue to the relevant repository thanks for giving directions. Anyhow if you can give some further instructions that would be great.

@davidmezzetti
Copy link
Member

This is the repo for the faiss-wheels - https://github.com/kyamagu/faiss-wheels

If you run pip uninstall faiss and try to import txtai, does that work?

@mohsin-ashraf
Copy link
Author

mohsin-ashraf commented Oct 13, 2020

@davidmezzetti thanks for the hints, I did pip uninstall faiss but found that faiss was not installed (but why I got core dumped when I first imported it here not sure). I ran the following two commands and txtai is working very fine.

  1. pip install faiss
  2. pip3 install ray[rllib]

I am using its embeddings module just FYI.

EDIT: It gives a lot of warnings though, but I believe we don't care about warnings ;)

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

2 participants