CoolFace
Modelpublic

mlx-community/jina-reranker-v3-4bit-mxfp4

sourceHugging Facecc-by-nc-4.0updated 8mo agoView on Hugging Face
3likes216downloads
Model Card

mlx-community/jina-reranker-v3-4bit-mxfp4

The Model mlx-community/jina-reranker-v3-4bit-mxfp4 was converted to MLX format from jinaai/jina-reranker-v3 using mlx-embeddings version 0.0.3.

Use with mlx

bash
pip install mlx-embeddings
python
from mlx_embeddings import load, generate
import mlx.core as mx

model, tokenizer = load("mlx-community/jina-reranker-v3-4bit-mxfp4")

# 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)