Downloads · 30 days
17
2% of all-time downloads
alibayram/embeddingmagibu-200m-mlx
embeddingmagibu-200m-mlx is a sentence similarity model from alibayram. Use it when you need a score for how close two texts are. It is set up for sentence-transformers. The card lists the license as mit.
The Model alibayram/embeddingmagibu-200m-mlx was converted to MLX format from alibayram/embeddingmagibu-200m using mlx-lm version 0.0.5.
Downloads · 30 days
17
2% of all-time downloads
All-time downloads
684
Public
Parameters
207M
16.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors117 MB · 89%
How the weights are stored.
U32207M · 100%
From the Hugging Face model README
The Model alibayram/embeddingmagibu-200m-mlx was converted to MLX format from alibayram/embeddingmagibu-200m using mlx-lm version 0.0.5.
pip install mlx-embeddings
from mlx_embeddings import load, generate
import mlx.core as mx
model, tokenizer = load("alibayram/embeddingmagibu-200m-mlx")
# For text embeddings
output = generate(model, processor, texts=["I like grapes", "I like fruits"])
embeddings = output.text_embeds # Normalized embeddings
# Compute dot product between normalized embeddings
similarity_matrix = mx.matmul(embeddings, embeddings.T)
print("Similarity matrix between texts:")
print(similarity_matrix)