Model guide
Qwen3 Embedding 0.6B
Qwen3-Embedding 0.6B is the small text-retrieval model in the Qwen3 Embedding range. It is useful to evaluate before committing to the larger 4B checkpoint or a new vector index. Give it retrieval queries and passages through a supported embedding interface; it does not generate conversational answers.
At a glance
- Parameters
- 0.6B
- Accepts
- Text
- Returns
- Vectors
- Published context limit
- 32,768 tokens
- Model format
- safetensors · GGUF
- Software and download hosts
- Ollama · sentence-transformers · TEI. Follow the exact setup below; this list does not establish support for every format, input type or software version.
- Suggested compression
- Q8_0
- Model-weight download
- Q8_0 weights · 0.64 GBQwen (model publisher)Qwen3-Embedding-0.6B-Q8_0.gguf
- Languages
- 100+ languages, including programming languages
- License
- Apache-2.0
Record memory while indexing a batch of your usual passage length. Time one query separately.
Best for
- Encode one question and a set of passages with the intended query instruction. Inspect whether the passage with the answer ranks first.
Choose something else when
- Use a separate answer generator. The Python example loads 1.19 GB of native weights rather than the listed GGUF.
Using this model for document search
Select this model for the document-search step in an app that supports it. Keep the model that generates answers separate. Check document chunk length and any required query or document prefixes in the model’s instructions.
Changing the embedding model changes the document vectors. Rebuild the document index rather than mixing vectors from different models.
First setup
The Python workflow loads Qwen/Qwen3-Embedding-0.6B (1.19 GB for the safetensors weights, plus tokenizer/configuration files). The 0.64 GB Q8_0 GGUF is a separate download for a compatible GGUF model runner; the Python example does not load it. Loaded memory depends on dtype, input length, batch size and model runner.
Install sentence-transformers with python -m pip install -U sentence-transformers. This example uses CPU and short text.
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("Qwen/Qwen3-Embedding-0.6B", device="cpu")
query = model.encode(["When does the meeting start?"], prompt_name="query", batch_size=1)
documents = model.encode(["The meeting starts at 10:30.", "Lunch is at noon."], batch_size=1)
print(query.shape, documents.shape)
print(model.similarity(query, documents))
Expect one query vector, two document vectors and two similarity values. Check whether the meeting passage ranks above the lunch passage. These values do not establish that a generated answer is correct. Keep query and document prompting consistent when building a real index; rebuild it when changing the model.
Save the Python example as example.py, then run python example.py in the environment where you installed its packages. The first run downloads model files; later local execution still needs the cached files. Start with these short inputs and batch size 1. If loading runs out of memory, close other model processes or use a smaller model; do not interpret missing output as an empty search result. See the publisher model card for the full workflow.
This creates a 4,096-token copy of qwen3-embedding:0.6b named qwen3-embedding-0-6b-short-context. Save the following as a file named Modelfile in your working folder:
FROM qwen3-embedding:0.6b
PARAMETER num_ctx 4096
Then run these commands from that folder:
ollama pull qwen3-embedding:0.6b
ollama create qwen3-embedding-0-6b-short-context -f ./Modelfile
ollama run qwen3-embedding-0-6b-short-context
Run the example in Model-specific setup. While the model is loaded, run ollama ps in another terminal and check CONTEXT and PROCESSOR.
The recorded Ollama package is Q8_0: 0.64 GB of model weights. Use Ollama 0.40.18 or a supporting newer release. A Hugging Face GGUF or MLX checkpoint is a separate representation; choose the matching source and runner in the memory calculator.
See Ollama context settings and the Modelfile instructions.
Time a fixed set of passages at batch size 1, then measure the batch size you plan to use. Indexing time and query time are separate; reranking adds a second model call.
