mlx-community/modernbert-embed-base-bf16

The Model mlx-community/nomicai-modernbert-embed-base-8bit was converted to MLX format from nomic-ai/modernbert-embed-base using mlx-lm version 0.0.3.

Use with mlx

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

model, tokenizer = load("mlx-community/nomicai-modernbert-embed-base-8bit")

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

Downloads last month
51
Safetensors
Model size
41.9M params
Tensor type
FP16
·
U32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for mlx-community/nomicai-modernbert-embed-base-8bit

Finetuned
(511)
this model

Collection including mlx-community/nomicai-modernbert-embed-base-8bit

Evaluation results