Views
No views yet
bfloat16 precision (no quantization).1import mlx_embeddings
2
3model, tokenizer = mlx_embeddings.load("chrisyuan/Qwen3-Embedding-0.6B-mlx-bf16")
4outputs = mlx_embeddings.generate(model, tokenizer, ["What is the capital of China?"])
5embeddings = outputs.text_embedsmlx-embeddings:1uv run python -m mlx_embeddings.convert \
2 --hf-path Qwen/Qwen3-Embedding-0.6B \
3 --mlx-path ./Qwen3-Embedding-0.6B-bf16 \
4 --dtype bfloat16mlx-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.0 currently breaks mlx-lm's tokenizer auto-registration on import, see ml-explore/mlx-lm#1458 / #1461)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.