Downloads · 30 days
47
5% of all-time downloads
thoddnn/colqwen2-v1.0-mlx-4bit
colqwen2-v1.0-mlx-4bit 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-4bit was converted to MLX format from vidore/colqwen2-v1.0-hf using mlx-lm version 0.0.3.
Downloads · 30 days
47
5% of all-time downloads
All-time downloads
860
Public
Parameters
2.2B
2.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.2 GB · 99%
How the weights are stored.
U321.5B · 70%
From the Hugging Face model README
The Model thoddnn/colqwen2-v1.0-mlx-4bit 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-4bit")
# 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)