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
Is there a way to fix this? I am asking here because I couldn't find any other source.
I am using the simple example and when I run this code I am getting the error:
38328 segmentation fault pipenv run python3 embedding.py
machine:
Monterey version: 12.6.3
MacBook Pro (14-inch, 2021)
chip Apple M1 Max
example code:
from txtai.embeddings import Embeddings
data = ["US tops 5 million confirmed virus cases",
"Canada's last fully intact ice shelf has suddenly collapsed, forming a Manhattan-sized iceberg",
"Beijing mobilises invasion craft along coast as Taiwan tensions escalate",
"The National Park Service warns against sacrificing slower friends in a bear attack",
"Maine man wins $1M from $25 lottery ticket",
"Make huge profits without work, earn up to $100,000 a day"]
# Create embeddings index with content enabled. The default behavior is to only store indexed vectors.
embeddings = Embeddings({"path": "sentence-transformers/nli-mpnet-base-v2", "content": True})
# Create an index for the list of text
embeddings.index([(uid, text, None) for uid, text in enumerate(data)])
# Run a search
embeddings.search("feel good story", 1)
The text was updated successfully, but these errors were encountered:
Unfortunately, I don't have a great solution on why the latest version of PyTorch have this issue on macOS. The current workarounds can be found in #377
Is there a way to fix this? I am asking here because I couldn't find any other source.
I am using the simple example and when I run this code I am getting the error:
38328 segmentation fault pipenv run python3 embedding.py
machine:
Monterey version: 12.6.3
MacBook Pro (14-inch, 2021)
chip Apple M1 Max
example code:
The text was updated successfully, but these errors were encountered: