huggingface / text-clustering

Easily embed, cluster and semantically label text datasets
Apache License 2.0
453 stars 37 forks source link

Segmentation fault: 11 #7

Open mchablani opened 7 months ago

mchablani commented 7 months ago

Anyone hitting the following fault when trying to run the example in readme locally?

INFO:sentence_transformers.SentenceTransformer:Load pretrained SentenceTransformer: all-MiniLM-L6-v2 Segmentation fault: 11 /Users/manish.chablani/.pyenv/versions/3.10.1/lib/python3.10/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown warnings.warn('resource_tracker: There appear to be %d '

mchablani commented 7 months ago

same code works in colab notebook but hits seg fault on m3 pro

aagrawal52 commented 7 months ago

Getting the same error on m3 max.

rasdani commented 6 months ago

Downgrading sentence-transformers==2.2.2 helped for me.

rasdani commented 6 months ago

https://github.com/UKPLab/sentence-transformers/issues/1319#issuecomment-2034615552