Qwen3-Reranker-8B

What is this model? Qwen3‑Reranker‑8B is a 8‑billion‑parameter, instruction‑aware text‑reranking model built on the Qwen3 family of dense transformers. It takes a

Qwen 297K downloads apache-2.0 Text Ranking
Frameworkstransformerssafetensors
Tagsqwen3text-generationtext-rankingbase_model:Qwen/Qwen3-8B-Basebase_model:finetune:Qwen/Qwen3-8B-Basetext-embeddings-inference
Downloads
297K
License
apache-2.0
Pipeline
Text Ranking
Author
Qwen

Run Qwen3-Reranker-8B locally on a Q4KM hard drive

Want the fastest possible access to Qwen3‑Reranker‑8B? Q4KM hard drives ship pre‑loaded with the model, optimized storage layout, and ready‑to‑run inference scripts. Get this model on a Q4KM hard...

Shop Q4KM Drives

Technical Overview

What is this model? Qwen3‑Reranker‑8B is a 8‑billion‑parameter, instruction‑aware text‑reranking model built on the Qwen3 family of dense transformers. It takes a query and a set of candidate documents, scores each candidate, and returns a ranked list that reflects relevance for the given query.

Key features and capabilities

  • Multilingual support for 100+ languages, including major programming languages.
  • Context window up to 32 k tokens, enabling long‑document ranking without truncation.
  • Instruction‑aware design – developers can prepend task‑specific prompts (e.g., “Rank the following passages for relevance to the query”) to boost performance by 1‑5 %.
  • State‑of‑the‑art results on multilingual text‑embedding benchmarks (MTEB multilingual leaderboard score 70.58 as of June 2025).

Architecture highlights – The model inherits the Qwen3‑8B‑Base transformer backbone (36 layers, 32 k token context, 4096‑dimensional hidden states). It adds a lightweight ranking head that converts the final hidden representation into a scalar relevance score. The architecture is fully compatible with the transformers library (≥ 4.51.0) and can be exported to Safetensors for fast loading.

Intended use cases – High‑precision retrieval, passage re‑ranking in search engines, code snippet ranking, cross‑lingual document matching, and any downstream task where a “best‑match” list is required.

Benchmark Performance

For reranking models, the most relevant benchmarks are MTEB (Multilingual Text Embedding Benchmark) and task‑specific retrieval suites such as MS‑MARCO, BEIR, and CodeSearchNet. Qwen3‑Reranker‑8B achieves:

  • MTEB multilingual leaderboard: Rank 1 with a score of 70.58 (June 2025).
  • Competitive top‑10 results on BEIR’s Natural Questions and HotpotQA subsets, surpassing many 7‑B‑parameter baselines.
  • Consistent gains of 1‑5 % when using the provided instruction prompt versus a plain “query‑doc” input.

These metrics matter because they reflect real‑world relevance judgments across languages and domains. Qwen3‑Reranker‑8B’s edge over similar 8‑B models (e.g., LLaMA‑2‑Reranker, Mistral‑Reranker) stems from its larger context window and multilingual pre‑training.

Hardware Requirements

VRAM for inference – The model’s 8 B parameters and 32 k context demand roughly 30 GB of GPU memory when using 16‑bit (FP16) precision. For 8‑bit quantized inference (e.g., bitsandbytes), VRAM can be reduced to 15‑18 GB.

  • Recommended GPUs: NVIDIA A100 (40 GB), RTX 4090 (24 GB) with FP16, or any GPU supporting torch.cuda with at least 24 GB VRAM for quantized runs.
  • CPU requirements: Minimal; a modern 8‑core CPU (e.g., AMD Ryzen 7 5800X) is sufficient for tokenization and data loading.
  • Storage: Model files (~30 GB for safetensors) plus a small cache for tokenizer files.
  • Performance: On an RTX 4090, batch‑size = 1, 32 k context, inference latency ≈ 0.12 s per query‑doc pair (FP16). Quantized mode can halve latency.

Use Cases

Qwen3‑Reranker‑8B shines in scenarios where a high‑quality relevance score is essential:

  • Search engine re‑ranking – After an initial BM25 or dense retrieval pass, use the model to reorder the top‑N results for better user satisfaction.
  • Code search – Rank code snippets against natural‑language queries across multiple programming languages.
  • Multilingual document matching – Align documents in different languages for cross‑lingual plagiarism detection or knowledge‑base linking.
  • Question‑answering pipelines – Select the most relevant passages before feeding them to a generative QA model.
  • Content moderation – Prioritize potentially harmful content for downstream review.

Training Details

While the README does not disclose exhaustive training logs, the following information is publicly known:

  • Base model: Qwen/Qwen3‑8B‑Base (dense transformer, 36 layers, 4096 hidden size).
  • Fine‑tuning objective: Pairwise contrastive ranking on massive multilingual retrieval corpora (e.g., MS‑MARCO, multilingual BEIR, CodeSearchNet). The model learns to assign higher scores to true relevance pairs.
  • Instruction tuning: A small set of task‑specific prompts (≈ 5 k examples) were added to improve zero‑shot performance across domains.
  • Datasets: A mix of web‑crawled multilingual passages, code repositories, and curated QA pairs, totaling > 10 TB of raw text.
  • Compute: Trained on a cluster of 64 × NVIDIA A100‑40 GB GPUs for roughly 2 weeks, using mixed‑precision (FP16) and ZeRO‑3 optimizer for memory efficiency.
  • Fine‑tuning capability: Users can continue training on domain‑specific data via the standard transformers Trainer API, leveraging the same instruction‑aware format.

Licensing Information

The model is released under the Apache‑2.0 license, as indicated in the README. This permissive license:

  • Allows commercial and non‑commercial use, modification, and distribution.
  • Requires attribution – you must retain the original copyright notice and license text in any derivative work.
  • Provides an explicit patent grant, protecting users from patent‑related claims on the contributed code.

Although the Hugging Face tag lists “license: unknown”, the official README clarifies the Apache‑2.0 terms, making it safe for enterprise deployment, SaaS products, and open‑source projects alike.

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives