Open JackMurphy97 opened 5 months ago
Hello!
This is related to #2291. Others have experienced similar issues re. segmentation faults, but I've been unable to reproduce it locally myself, making it very challenging to resolve. I also cannot reproduce it on Google Colab. There are a lot of issues online about faiss causing segmentation faults, standalone or in combination with sentence-transformers or transformers.
Hey @tomaarsen,
Thanks for the response and the link to the related issue, indeed seems like exactly the same problem as others are facing.
Will keep an eye on this thread in case anything comes up
@tomaarsen I had similar issue after did a poetry update. I have to stay with the 2.2.2 and older versions of transformers and torch. After upgrading sentence-transformer, it gave me segmentation crash. Only downgrading the sentence-transformers and transformers would not solved the issue though. Might relates to torch or even more packages. If you need a working project.toml and poetry.lock, I can share them with you.
Any further updates on this front? I am also having faiss and sentence transformers issues.
Following https://github.com/facebookresearch/faiss/issues/2099, it might be worth a shot to install faiss-cpu 1.6.5 or 1.7.0?
It's likely a compatibility issue between faiss-cpu and torch, as those are the only related packages that interact on the C-level, i.e. where Segmentation Faults can occur.
Getting segmentation fault errors
zsh: segmentation fault poetry run python3 jack_debug/test.py
when I try to instantiate a SentenceTransformer model. Only happens when the imports are this way round:whereas everything works fine when the imports are this way round:
Here is my poetry toml:
I've tried changing the versions of faiss and sentence_transformers but wasn't able to resolve this.
Anyone able to help? Please let me know if I can provide any further information that would be helpful. Thanks :)