Downloads · 30 days
85
11% of all-time downloads
majentik/Qwen3-Embedding-4B-MLX-4bit
Qwen3-Embedding-4B-MLX-4bit is a feature extraction model from majentik. Use it when you need embeddings to search or compare text. It is set up for mlx-embeddings. The card lists the license as apache-2.0.
MLX 4-bit quantization of Qwen/Qwen3-Embedding-4B, produced with mlx-embeddings on Apple Silicon.
Downloads · 30 days
85
11% of all-time downloads
All-time downloads
748
Public
Parameters
4B
2.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.3 GB · 99%
How the weights are stored.
U324B · 100%
From the Hugging Face model README
MLX 4-bit quantization of Qwen/Qwen3-Embedding-4B, produced with mlx-embeddings on Apple Silicon.
Qwen3-Embedding is a decoder-only LLM-style text embedding model from the Qwen3 family, using last-token pooling to produce dense vector representations. It scores near the top of MMTEB multilingual benchmarks while retaining Apache-2.0 licensing.
mlx_embeddings.convert), group_size=64from mlx_embeddings import load
model, tokenizer = load("majentik/Qwen3-Embedding-4B-MLX-4bit")
inputs = tokenizer(
["What is the capital of France?", "Paris is the capital of France."],
padding=True, truncation=True, return_tensors="mlx"
)
outputs = model(inputs["input_ids"], attention_mask=inputs["attention_mask"])
embeddings = outputs.text_embeds # already L2-normalised, shape [batch, dim]
For sentence similarity:
import mlx.core as mx
e = embeddings
scores = (e[0] @ e[1:].T).tolist()
print(scores)
| Property | Value |
|---|---|
| Base Model | Qwen/Qwen3-Embedding-4B |
| Architecture | Decoder-only (Qwen3ForCausalLM) with last-token pooling |
| Parameters | 4B (4.0B) (pre-quantization) |
| Context Length | 32K |
| Embedding Dim | 2560 |
| BF16 Size | ~7.5 GB |
| License | apache-2.0 |
| Languages | 100+ (multilingual) |
Apache 2.0 — inherited from the upstream Qwen3-Embedding model. Free for research and commercial use.