Feature Extraction
sentence-transformers
Safetensors
MLX
qwen3
mlx-embeddings
sentence-similarity
text-embeddings-inference
Instructions to use chrisyuan/Qwen3-Embedding-0.6B-mlx-bf16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use chrisyuan/Qwen3-Embedding-0.6B-mlx-bf16 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("chrisyuan/Qwen3-Embedding-0.6B-mlx-bf16") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - MLX
How to use chrisyuan/Qwen3-Embedding-0.6B-mlx-bf16 with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir Qwen3-Embedding-0.6B-mlx-bf16 chrisyuan/Qwen3-Embedding-0.6B-mlx-bf16
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Qwen3-Embedding-0.6B-mlx-bf16
Qwen/Qwen3-Embedding-0.6B converted to MLX format, in the original bfloat16 precision (no quantization).
Usage
import mlx_embeddings
model, tokenizer = mlx_embeddings.load("chrisyuan/Qwen3-Embedding-0.6B-mlx-bf16")
outputs = mlx_embeddings.generate(model, tokenizer, ["What is the capital of China?"])
embeddings = outputs.text_embeds
Conversion
Converted with mlx-embeddings:
uv run python -m mlx_embeddings.convert \
--hf-path Qwen/Qwen3-Embedding-0.6B \
--mlx-path ./Qwen3-Embedding-0.6B-bf16 \
--dtype bfloat16
Environment used:
mlx-embeddings==0.1.0mlx-vlm==0.6.3mlx-lm==0.31.3transformers==5.12.1(pinned to>=5.7.0,<5.13.0—transformers>=5.13.0currently breaksmlx-lm's tokenizer auto-registration on import, see ml-explore/mlx-lm#1458 / #1461)- Python 3.14
Verification
Embeddings were checked against the original PyTorch model (last-token pooling, L2-normalized) on a small set of test sentences. Cosine similarity between the two, per sentence, was consistently between 0.9998 and 0.9999, with the residual gap attributable to bfloat16 quantization noise rather than a conversion error. Relative similarity ordering across sentence pairs also matched the original model.
- Downloads last month
- 170
Model size
0.6B params
Tensor type
BF16
·
Hardware compatibility
Log In to add your hardware
Quantized