CoolFace
Modelpublic

mlx-community/Qwen3-VL-Embedding-2B-6bit

sourceHugging Faceapache-2.0updated 6mo agoView on Hugging Face
0likes65downloads
Model Card

mlx-community/Qwen3-VL-Embedding-2B-6bit

The Model mlx-community/Qwen3-VL-Embedding-2B-6bit was converted to MLX format from Qwen/Qwen3-VL-Embedding-2B using mlx-lm version 0.1.0.

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/Qwen3-VL-Embedding-2B-6bit")

# For image-text embeddings
images = [
    "./images/cats.jpg",  # cats
]
texts = ["a photo of cats", "a photo of a desktop setup", "a photo of a person"]

# Process all image-text pairs
outputs = generate(model, processor, texts, images=images)
logits_per_image = outputs.logits_per_image
probs = mx.sigmoid(logits_per_image) # probabilities for this image
for i, image in enumerate(images):
    print(f"Image {i+1}:")
    for j, text in enumerate(texts):
        print(f"  {probs[i][j]:.1%} match with '{text}'")
    print()