Qwen3-VL-Reranker-2B
A 2B vision-language reranker in the Qwen3 series, producing relevance scores for query-document pairs across text and multimodal inputs, with single-card deployment on Ascend NPUs.
Single-node single-card pooling deployment on Atlas 800I A3 / Atlas 800I A2 / Atlas 300I DUO with vLLM-Ascend
Preparation
The Qwen3-VL-Reranker-2B is a vision-language reranking model in the Qwen3 series. It produces relevance scores for query-document pairs across text and multimodal inputs, and is suitable for search, retrieval, and RAG pipelines. vLLM Ascend 0.9.2rc1 and higher supports 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 http://localhost:<port>/v1/rerank \
-X POST \
-d '{"query":"What is the capital of China?", "documents": ["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."]}' \
-H 'Content-Type: application/json'Expected result: The service returns HTTP 200 OK with a JSON response containing the relevance_score field. The capital-of-China document should receive a much higher score than the gravity document. Example output:
{
"id": "score-xxxxx",
"model": "Qwen/Qwen3-VL-Reranker-2B",
"usage": {
"prompt_tokens": 179,
"total_tokens": 179
},
"results": [
{
"index": 0,
"document": {
"text": "The capital of China is Beijing.",
"multi_modal": null
},
"relevance_score": 0.7209711670875549
},
{
"index": 1,
"document": {
"text": "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.",
"multi_modal": null
},
"relevance_score": 0.18871910870075226
}
]
}For more usage examples, please reference the score 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
from mteb.models.vllm_wrapper import VllmCrossEncoderWrapper
if __name__ == "__main__":
import mteb
data_path = "/home/data/mteb_data"
os.environ["HF_DATASETS_CACHE"] = data_path
os.environ["HF_ENDPOINT"] = "https://hf-mirror.com"
model = VllmCrossEncoderWrapper("/root/.cache/models/Qwen3-VL-Reranker-2B",
revision="norm",
dtype="float16",
enforce_eager=True,
max_model_len=1024,
hf_overrides={"architectures": ["Qwen3VLForSequenceClassification"],"classifier_from_token": ["no", "yes"],"is_original_qwen3_reranker": True})
cache = mteb.ResultCache(data_path)
tasks = mteb.get_tasks(
task_types=["Reranking"],
languages=["zho"]
) + mteb.get_tasks(tasks=["MultiLongDocReranking"])
results = mteb.evaluate(model, tasks=tasks, cache=cache, overwrite_strategy="always")
print(results)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 vllm-rerank command in the "More Info" tab to measure rerank throughput and latency on your own deployment.
Benchmark
Using vLLM Benchmark
Run performance of Qwen3-VL-Reranker-2B as an example. Refer to vllm benchmark for more details.
Take the serve as an example. Run the code as follows:
vllm bench serve --model Qwen/Qwen3-VL-Reranker-2B --backend vllm-rerank --port 8000 --dataset-name random-rerank --endpoint /v1/rerank --random-input 200 --save-result --result-dir ./After about several minutes, you can get the performance evaluation result.