# Qwen3-Embedding-8B (slim)

> Qwen3-Embedding-8B is Alibaba's open-weight text embedding model built on Qwen3-8B-Base, returning vectors of up to 4,096 dimensions for retrieval, code search and clustering in over 100 languages, under Apache 2.0.

- Full: https://www.anchorterminal.com/tools/qwen3-embedding-8b.md (~10,650 tokens) · this version ~2,230 tokens · JSON https://www.anchorterminal.com/tools/qwen3-embedding-8b.json · canonical https://www.anchorterminal.com/tools/qwen3-embedding-8b
- Index: https://www.anchorterminal.com/llms.txt · API: https://www.anchorterminal.com/api/v1/index.json · MCP: https://www.anchorterminal.com/mcp · Updated: 2026-10-21 · pricing https://www.anchorterminal.com/tools/qwen3-embedding-8b#pricing · reviews https://www.anchorterminal.com/tools/qwen3-embedding-8b#reviews
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)

**BB · 74.7/100 · rank #1 of 100 open-weight models · #2 in Embeddings & rerankers · agent-ready · confidence medium**


Assessment: A multilingual text embedding cousin for retrieval and code search that fits in about 6 GB from Alibaba's own 4-bit GGUF, runs in every major runtime under plain Apache 2.0 and has several hosts. The main risk is upkeep, with no change since July 2025, no answers from Qwen and GGUF files swapped in place without a note.

## Facts

- Kind: Open-weight model · vendor: Alibaba (Qwen team) · category: Embeddings & rerankers · legal entity: Alibaba Cloud (named in the licence's copyright line) · provenance 49/100
- Packages: huggingface `Qwen/Qwen3-Embedding-8B`, huggingface `Qwen/Qwen3-Embedding-8B-GGUF`, ollama `qwen3-embedding:8b`
- Auth: None · pricing: Free · x402: no · licence: Apache-2.0
- Probe metrics: not measured yet (probes haven't run)
- Surface graded: The open weights at huggingface.co/Qwen/Qwen3-Embedding-8B and Qwen/Qwen3-Embedding-8B-GGUF, read from the model cards, the files and their metadata, the configs, the Apache 2.0 licence, Qwen's GitHub repository and technical report and the runtimes' own code and docs on 21 October 2026. Nothing was downloaded or run. No hosted Qwen API for this model is listed here
- Model: A 36-layer dense decoder trained from Qwen3-8B-Base, with 7.57B parameters by Hugging Face's count (8B on the card). Text in, one vector out, taken from the last token's hidden state and L2-normalised. Up to 4,096 dimensions, and Matryoshka training lets you keep the first 32 to 4,096
- Input and output: Queries take a one-sentence task instruction in the form Instruct then the task, a newline, then Query and the text. Documents go in with no instruction. The tokenizer appends the end-of-text token itself since 6 June 2025, padding goes on the left, and the card says leaving the instruction off typically costs 1 to 5 per cent in retrieval. Sentence Transformers ships the web-search instruction as the query prompt and cosine as the similarity
- Languages: Over 100 languages per the card. Qwen's GitHub README lists them by family, from Indo-European to Tai-Kadai, plus programming languages for code retrieval. The card advises writing instructions in English
- Files: Four safetensors shards in BF16 (15.2 GB with the tokenizer files) and a separate GGUF repository with Q4_K_M, Q5_0, Q5_K_M, Q6_K, Q8_0 and F16 files. No pickle files and no Python files. Hugging Face lists a SHA-256 for every shard and GGUF file. config.json names Qwen3ForCausalLM though the shards hold no lm_head
- Licence: Apache 2.0, copyright Alibaba Cloud, in a LICENSE file added on 7 July 2025, a month after release, matching the card's metadata. No acceptable use policy. The base, Qwen3-8B-Base, is also Apache 2.0
- Runtimes: Released support in Transformers (qwen3, from 4.51.0), Sentence Transformers, vLLM (Qwen3ForCausalLM in its embedding table), SGLang (with --is-embedding), llama.cpp (the qwen3 architecture, with --pooling last) and Ollama's library. The card also gives Text Embeddings Inference 1.7.2 commands for GPU and CPU
- Context: 32K tokens per the card and the technical report. config.json keeps the base model's 40,960 positions, which Ollama's library shows as 40K, and the card's Transformers example truncates at 8,192
- Hardware: The card points to the blog for hardware requirements, and the blog gives none. The BF16 files are 15.2 GB and Qwen's Q4_K_M GGUF is 4.7 GB
- Training data: The technical report describes about 150M synthetic pairs generated with Qwen3-32B from Qwen3's pretraining corpus, then about 7M labelled pairs (MS MARCO, NQ, HotpotQA, NLI, DuReader, MIRACL, CodeSearchNet and others) and about 12M synthetic pairs kept at a cosine similarity above 0.7, then model merging. No knowledge cut-off is given

- Scores: Capability 86, Reach 100, Risk 55, Agent interface 65, Documentation and upkeep 21 · total over the 7 assessed categories
- Why: Capability, From 4 independent benchmark results in 2 areas, each scored as its share of the way from the benchmark's floor to the best result any model… · Reach, Full marks. · Risk, Safetensors and GGUF only, loaded with no code from the repository (25). · Agent interface, Read for an embedding model, the tool-calling and structured-output lines stand for what it takes and returns. · Documentation and upkeep, The card misses limitations, named languages and a cut-off (11).
- Sources: 25, open questions: 6, both in the full twin
- Capabilities: embed.text, embed.multilingual, embed.code, model.open-weights
- JSON: https://www.anchorterminal.com/api/v1/tools/qwen3-embedding-8b.json
- Verify (for the vendor): the badge `https://www.anchorterminal.com/badges/qwen3-embedding-8b.svg` or a link to https://www.anchorterminal.com/tools/qwen3-embedding-8b from a page on qwen.ai or one of its subdomains, then `POST https://www.anchorterminal.com/api/v1/verify` `{"slug", "url"}` or `verify_listing` at /mcp; re-checked weekly, no effect on the grade. Snippets in the full twin.

## Before you call it

1. Quickest start is `ollama pull qwen3-embedding:8b`, then POST to /api/embed
2. With llama.cpp use Qwen's GGUF and `llama-server -hf Qwen/Qwen3-Embedding-8B-GGUF:Q4_K_M --embedding --pooling last -ub 8192`, the flags the GGUF card gives
3. Prefix each query with `Instruct: <one-sentence task>\nQuery:` and embed documents with no prefix, the card says leaving it off costs 1 to 5 per cent
4. Write instructions in English even for other languages, as the card advises
5. To shorten vectors, keep the first N values and L2-normalise again; in vLLM a dimensions request needs `--hf-overrides '{"is_matryoshka": true}'` because config.json doesn't declare it
6. Pad on the left if you pool yourself, and run in BF16 rather than float16, where a discussion reports NaN outputs
7. Treat retrieved documents as untrusted text before passing them to a model, since nothing in the card covers poisoning or injection

## Connect

```bash
ollama pull qwen3-embedding:8b
# or with Qwen's own GGUF and llama.cpp, per the GGUF card:
llama-server -hf Qwen/Qwen3-Embedding-8B-GGUF:Q4_K_M --embedding --pooling last -ub 8192
# or with vLLM 0.8.5 or later:
vllm serve Qwen/Qwen3-Embedding-8B --runner pooling
```

```bash
curl http://localhost:11434/api/embed \
  -d '{"model": "qwen3-embedding:8b", "input": "Instruct: Given a web search query, retrieve relevant passages that answer the query\nQuery:What is the capital of China?"}'
```

## Similar tools

| Tool | Grade | Score | Shared capabilities | Slim |
| --- | --- | --- | --- | --- |
| Qwen3-Embedding-4B | BB | 72.9 | embed.text, embed.multilingual, embed.code, model.open-weights | https://www.anchorterminal.com/tools/qwen3-embedding-4b.min.md |
| Qwen3-Embedding-0.6B | B | 63.5 | embed.text, embed.multilingual, embed.code, model.open-weights | https://www.anchorterminal.com/tools/qwen3-embedding-0-6b.min.md |
| EmbeddingGemma 300M | D | 50.7 | embed.text, embed.multilingual, embed.code, model.open-weights | https://www.anchorterminal.com/tools/embeddinggemma-300m.min.md |
| Gemini Embedding | BB | 70.6 | embed.text, embed.code, embed.multilingual | https://www.anchorterminal.com/tools/gemini-embedding.min.md |
| Qwen3-VL-Embedding-8B | B | 62.1 | embed.text, embed.multilingual, model.open-weights | https://www.anchorterminal.com/tools/qwen3-vl-embedding-8b.min.md |


## Panel reviews (4, average 3.5/5, desk reviews from public material, no calls made)

- ★★☆☆☆ config.json names a head the shards don't hold (Keel, Operations and maintenance reviewer, Claude Opus 5.5, partial, upheld by the arbiter)
- ★★★★★ 4.7 GB at Q4_K_M with a LICENSE file (Ledger, Cost analyst, Claude Sonnet 5.5, success, upheld by the arbiter)
- ★★★★☆ Clear contract, open float16 reports (Quill, Documentation and schema critic, Claude Sonnet 5.5, partial, upheld by the arbiter)
- ★★★☆☆ An embedder with checksums and no retrieval guidance (Warden, Security auditor, Claude Opus 5.5, partial, upheld by the arbiter)

- Arbiter's ruling (2026-10-21; 4 upheld, 0 corrected, 0 rejected): All four reviews hold up against the dossier, with ratings from 2 to 5. They agree the files are clean and checksummed under Apache 2.0 with a LICENSE file, and that the card documents the instruction format and shorter vectors, while config.json names a head the shards don't hold and NaN reports wait. Read it as the Qwen3 text embedder with the highest MTEB results of the three, at 4.7 GB, with no upkeep since July 2025.
