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
# pip install sentence-transformersfromsentence_transformersimportSentenceTransformermodel=SentenceTransformer("sentence-transformers/all-MiniLM-L6-v2")
sentences= [
"That is a happy person",
"That is a happy dog",
"That is a very happy person",
"Today is a sunny day"
]
embeddings=model.encode(sentences)
similarities=model.similarity(embeddings, embeddings)
print(similarities.shape)
# [4, 4]
will this be able to run locally on macbook air m1 2020 model or we would need to deploy it on cloud?
The text was updated successfully, but these errors were encountered: