Upload folder using huggingface_hub 93a0a51 verified
Wabifocus commited on
How to use mlx-community/multilingual-e5-large with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("mlx-community/multilingual-e5-large")
sentences = [
"The weather is lovely today.",
"It's so sunny outside!",
"He drove to the stadium."
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]How to use mlx-community/multilingual-e5-large with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir multilingual-e5-large mlx-community/multilingual-e5-large