Downloads · 30 days
18
6% of all-time downloads
thoddnn/colqwen2-v1.0-mlx
colqwen2-v1.0-mlx is a visual document retrieval model from thoddnn. Use it for the visual document retrieval task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
The Model thoddnn/colqwen2-v1.0-mlx was converted to MLX format from vidore/colqwen2-v1.0-hf using mlx-lm version 0.0.3.
Downloads · 30 days
18
6% of all-time downloads
All-time downloads
282
Public
Parameters
2.2B
4.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors4.4 GB · 100%
From the Hugging Face model README
The Model thoddnn/colqwen2-v1.0-mlx was converted to MLX format from vidore/colqwen2-v1.0-hf using mlx-lm version 0.0.3.
pip install mlx-embeddings
from mlx_embeddings import load, generate
import mlx.core as mx
model, tokenizer = load("thoddnn/colqwen2-v1.0-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)