How to use mlx-community/multilingual-e5-large-mlx with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("mlx-community/multilingual-e5-large-mlx") 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-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir multilingual-e5-large-mlx mlx-community/multilingual-e5-large-mlx