Qwen3-Embedding-0.6B
The smallest member of the Qwen3 Embedding series, a 0.6B dense model built on the Qwen3 foundation for text embedding and retrieval tasks, supporting efficient single-card deployment on Ascend NPUs.
Single-node single-card pooling deployment on Atlas 800I A2 / Atlas 300I DUO with vLLM-Ascend
Preparation
The Qwen3 Embedding model series is the latest proprietary model family of the Qwen series, specifically designed for text embedding and ranking tasks. Built upon the dense foundational models of the Qwen3 series, it provides a comprehensive range of text embeddings and reranking models in various sizes (0.6B, 4B, and 8B). Qwen3-Embedding-0.6B is the smallest variant, optimized for fast, low-cost embedding serving.
vLLM Ascend 0.9.2rc1 and higher versions support this model.
Deployment Guide
Select NPU type and deployment options to view the corresponding deployment instructions.
Verification
Once your server is started, you can verify by the following command:
curl -X POST http://localhost:<port>/v1/embeddings -H "Content-Type: application/json" -d '{
"input": [
"The capital of China is Beijing.",
"Gravity is a force that attracts two bodies towards each other. It gives weight to physical objects and is responsible for the movement of planets around the sun."
]
}'- URL: Replacelocalhostwith your server IP and use the port from thevllm servecommand.
Expected result: The service returns HTTP 200 OK with a JSON response containing the embedding field. Example output:
{
"id": "embd-8136155c01e8411d",
"object": "list",
"created": 1784538286,
"model": "Qwen/Qwen3-Embedding-0.6B",
"data": [
{
"index": 0,
"object": "embedding",
"embedding": [-0.04725276678800583, -0.021066857501864433]
},
{
"index": 1,
"object": "embedding",
"embedding": [-0.053165290504693985, -0.01480848714709282]
}
],
"usage": {
"prompt_tokens": 39,
"total_tokens": 39,
"completion_tokens": 0,
"prompt_tokens_details": null
}
}For more usage examples, please reference the embedding examples.
More Info
Accuracy
The official tutorial does not publish fixed accuracy numbers for this model. Run the MTEB evaluation in the "More Info" tab to measure retrieval accuracy on your own deployment.
Accuracy
Using MTEB
Refer to MTEB for details.
Run the following code to execute the accuracy evaluation:
import os
import mteb
from mteb.models.vllm_wrapper import VllmEncoderWrapper
if __name__ == "__main__":
data_path = "/home/data/mteb_data"
os.environ["HF_DATASETS_CACHE"] = data_path
os.environ["HF_ENDPOINT"] = "https://hf-mirror.com"
model = VllmEncoderWrapper("/root/.cache/Qwen3-Embedding-0.6B",
revision="norm",
dtype="float16",
max_model_len=10240,
)
cache = mteb.ResultCache(data_path)
tasks = mteb.get_tasks(tasks=["LeCaRDv2"])
results = mteb.evaluate(model, tasks=tasks, cache=cache, encode_kwargs={"batch_size": 2}, overwrite_strategy="always")
df = results.to_dataframe()
print(df)After execution, you can get the evaluation result.
Benchmark
No fixed throughput/latency numbers are published for this model; results depend on hardware resources, input length, concurrency, and runtime configuration.
Use the reproducible vllm bench serve --backend openai-embeddings command in the "More Info" tab to measure embedding throughput and latency on your own deployment.
Benchmark
Using vLLM Benchmark
Run performance of Qwen3-Embedding-0.6B as an example. Refer to vllm benchmark for more details.
Take the serve subcommand as an example. Run the code as follows:
vllm bench serve \
--model Qwen/Qwen3-Embedding-0.6B \
--backend openai-embeddings \
--port 8000 \
--dataset-name random \
--endpoint /v1/embeddings \
--random-input 200 \
--save-result \
--result-dir ./After about several minutes, you can get the performance evaluation result.