Downloads · 30 days
196
8% of all-time downloads
cstr/qwen3-embed-4b-GGUF
qwen3-embed-4b-GGUF is a feature extraction model from cstr. Use it when you need embeddings to search or compare text. The card lists the license as apache-2.0.
GGUF format of Qwen/Qwen3-Embedding-4B for use with CrispEmbed.
Downloads · 30 days
196
8% of all-time downloads
All-time downloads
2.5K
Public
Repo size
35.4 GB
Likes
0
Public
Click a slice to open those files.
.gguf30.6 GB · 100%
From the Hugging Face model README
GGUF format of Qwen/Qwen3-Embedding-4B for use with CrispEmbed.
Qwen3 Embedding 4B. Official Alibaba embedding model, 2560-dimensional last-token pooling.
| File | Quantization | Size |
|---|---|---|
| qwen3-embed-4b-q4_k.gguf | Q4_K | 2349 MB |
| qwen3-embed-4b-q5_k.gguf | Q5_K | 2782 MB |
| qwen3-embed-4b-q8_0.gguf | Q8_0 | 4081 MB |
| qwen3-embed-4b.gguf | F32 | 15348 MB |
Cosine similarity vs the upstream sentence-transformers reference on a fixed test set (text):
| Quant | Text |
|---|---|
| q4_k | 0.9744 |
Note: below the 0.99 retrieval-quality bar — text: q4_k (0.974). Embeddings are still functionally usable (>0.9 = directionally correct for similarity ranking) but expect small differences in nearest-neighbor results vs the upstream f32 reference.
# Download
huggingface-cli download cstr/qwen3-embed-4b-GGUF qwen3-embed-4b-q4_k.gguf --local-dir .
# Run with CrispEmbed
./crispembed -m qwen3-embed-4b-q4_k.gguf "Hello world"
# Or with auto-download
./crispembed -m qwen3-embed-4b "Hello world"
| Property | Value |
|---|---|
| Architecture | Qwen3 |
| Parameters | 4B |
| Embedding Dimension | 2560 |
| Layers | 36 |
| Pooling | last-token |
| Tokenizer | GPT-2 BPE |
| Base Model | Qwen/Qwen3-Embedding-4B |
Verified bit-identical to HuggingFace sentence-transformers (cosine similarity >= 0.999 on test texts).
CrispEmbed is a lightweight C/C++ text embedding inference engine using ggml. No Python runtime, no ONNX. Supports BERT, XLM-R, Qwen3, and Gemma3 architectures.
# Build CrispEmbed
git clone https://github.com/CrispStrobe/CrispEmbed
cd CrispEmbed
cmake -S . -B build && cmake --build build -j
# Encode
./build/crispembed -m qwen3-embed-4b-q4_k.gguf "query text"
# Server mode
./build/crispembed-server -m qwen3-embed-4b-q4_k.gguf --port 8080
curl -X POST http://localhost:8080/v1/embeddings \
-d '{"input": ["Hello world"], "model": "qwen3-embed-4b"}'
convert-decoder-embed-to-gguf.pyQwen.apache-2.0. This repository redistributes under the same terms; it grants no rights the upstream licence does not.