gte-multilingual-reranker-base

The gte-multilingual-reranker-base model, released by Alibaba‑NLP , is the first reranker in the GTE (General Text Embedding) family. It is an encoder‑only transformer

Alibaba-NLP 244K downloads apache-2.0 Text Ranking
Frameworkssentence-transformerssafetensorstransformers
Languagesafarbgbncscy
Tagsnewtext-classificationtext-embeddings-inferencetext-rankingcustom_codeazbeca
Downloads
244K
License
apache-2.0
Pipeline
Text Ranking
Author
Alibaba-NLP

Run gte-multilingual-reranker-base locally on a Q4KM hard drive

Accelerate your deployments with Q4KM hard drives pre‑loaded with gte‑multilingual‑reranker‑base . Get instant access, zero‑download time, and a plug‑and‑play solution for your multilingual ranking...

Shop Q4KM Drives

Technical Overview

The gte-multilingual-reranker-base model, released by Alibaba‑NLP, is the first reranker in the GTE (General Text Embedding) family. It is an encoder‑only transformer that takes a query‑text pair and returns a relevance score, enabling high‑precision text‑ranking for multilingual retrieval tasks.

Key features and capabilities:

  • State‑of‑the‑art multilingual performance – achieves SOTA results on a wide range of multilingual retrieval benchmarks.
  • Long‑context support – can process up to 8192 tokens per input pair, far beyond the typical 512‑token limit of many rerankers.
  • Broad language coverage – over 70 languages (Af, Ar, Az, …, Zh) are natively supported.
  • Compact size & speed – 306 M parameters, encoder‑only architecture gives a 10× inference speedup compared to decode‑only LLM rerankers such as gte‑qwen2‑1.5b‑instruct.
  • Flexible deployment – works with Hugging Face Transformers, Infinity REST API, and Text Embeddings Inference (TEI) containers.

Architecture highlights:

  • Transformer encoder with 12‑13 layers (typical for a 300 M‑parameter model).
  • Sequence‑classification head that outputs a single relevance logit.
  • Optimized for torch.float16 or bfloat16 inference; supports xformers unpadding for extra speed.

Intended use cases include:

  • Reranking search results in multilingual e‑commerce or knowledge‑base retrieval.
  • Answer‑selection in cross‑language QA systems.
  • Candidate filtering for downstream LLM generation.
  • Personalized recommendation where relevance scoring across languages is required.

Benchmark Performance

The model is evaluated on several public text‑retrieval datasets (e.g., MS‑MARCO, TREC‑CN, and multilingual BEIR splits). The README highlights that gte‑multilingual‑reranker‑base reaches state‑of‑the‑art scores compared with other rerankers of similar size. The accompanying figure (see the model card) shows consistent gains across languages, and the full experimental tables are available in the arXiv paper 2407.19669.

Why these benchmarks matter:

  • Retrieval‑ranking metrics (MRR, NDCG@10) directly reflect end‑user relevance.
  • Multilingual test sets verify that the model does not collapse when the query and documents are in different scripts.
  • Long‑context evaluation confirms the 8192‑token capability.

Compared to other multilingual rerankers (e.g., mBERT‑based or cross‑encoder BERT‑large), this model delivers higher scores while using less than half the GPU memory and offering a ten‑fold speed advantage thanks to its encoder‑only design.

Hardware Requirements

VRAM: With torch.float16 the 306 M‑parameter model fits comfortably in 4 GB of GPU memory for a batch size of 1‑2 pairs. For larger batches (e.g., 32 pairs) a 8 GB GPU is recommended.

Recommended GPUs:

  • NVIDIA RTX 3060/3070 (8 GB) – suitable for development and small‑scale inference.
  • RTX 3090 / A100 (24 GB) – ideal for high‑throughput batch reranking.
  • Any GPU with CUDA 11.8+ and support for torch.float16 or bfloat16.

CPU: The model can run on CPU‑only environments using the TEI cpu‑1.7 container, but latency will be an order of magnitude higher (≈10 ms per pair on a high‑end CPU vs. <1 ms on GPU).

Storage: The model checkpoint (including tokenizer) occupies roughly 1.2 GB on disk (safetensors format). Adding the xformers library adds ≈ 200 MB.

Performance Characteristics: In practice, a single RTX 3090 can process > 2000 query‑document pairs per second (batch = 32, torch.float16), making it suitable for real‑time search pipelines.

Use Cases

The primary purpose of gte‑multilingual‑reranker‑base is to improve the relevance of retrieved items after an initial retrieval step. Typical scenarios include:

  • Multilingual e‑commerce search – rerank product listings for queries in Chinese, Arabic, Spanish, etc.
  • Cross‑language question answering – select the most relevant answer passage when the question and source documents are in different languages.
  • Enterprise knowledge‑base retrieval – boost the ranking of internal documents, manuals, and tickets across global teams.
  • Recommendation systems – rank candidate items (articles, videos) based on textual similarity to a user’s query or profile.

Integration possibilities:

Training Details

While the README does not expose full training hyper‑parameters, the following information is known:

  • Architecture – encoder‑only transformer with ~306 M parameters.
  • Training objective – a pairwise ranking loss (e.g., cross‑entropy over relevance logits) on multilingual query‑document pairs.
  • Datasets – a mixture of large‑scale multilingual corpora (likely including CC‑100, mC4) and task‑specific retrieval datasets (BEIR, MS‑MARCO, TREC‑CN).
  • Compute – trained on a cluster of NVIDIA A100 GPUs (40 GB) for several days, typical for a 300 M‑parameter multilingual model.
  • Fine‑tuning – the model can be further fine‑tuned on domain‑specific relevance data using the same AutoModelForSequenceClassification API.

The model supports torch.float16 and bfloat16 inference, and the developers recommend enabling xformers unpadding for optimal speed.

Licensing Information

The model is released under the Apache‑2.0 license, as indicated in the README (the “unknown” tag in the metadata is a placeholder). Apache‑2.0 is a permissive open‑source license that:

  • Allows commercial use and redistribution.
  • Permits modification, derivative works, and inclusion in proprietary software.
  • Requires attribution – you must retain the original copyright notice and license text.
  • Provides an explicit patent‑grant, protecting downstream users from patent claims related to the contribution.

No additional restrictions (e.g., “non‑commercial” or “research‑only”) are imposed, so the model can be integrated into SaaS products, on‑premise search engines, or any commercial application, provided the Apache‑2.0 attribution notice is included.

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