BAAI bge-reranker-v2.5-gemma2-lightweight logo

BAAI bge-reranker-v2.5-gemma2-lightweight

Visit

BAAI bge-reranker-v2.5-gemma2-lightweight is a roughly 9B multilingual reranker on Gemma 2 9B with token compression and layer cutoffs.

Share:
View alternatives

bge-reranker-v2.5-gemma2-lightweight is a multilingual reranker from the Beijing Academy of Artificial Intelligence (BAAI). Unlike an embedding model, it reads a query and a passage together and returns a relevance score directly; a sigmoid maps the score to a value between 0 and 1. According to its Hugging Face model card, it is built on google/gemma-2-9b, has about 9B parameters, is released under the Gemma license, and is aimed at multilingual retrieval with strong English and Chinese results.

Key features

  • Lightweight options: per the model card, you can reduce compute with token compression, layerwise cutoffs, or both. Supported cutoff layers range from 8 to 42, compress ratios are 1, 2, 4 and 8, and compress layers are 8, 16, 24, 32 and 40.
  • Documented savings: the card's 60% FLOPs-savings setting uses compress ratio 2, compress layer 8 and cutoff layer 25. BAAI reports a BEIR mean nDCG of 63.67 at 60% savings versus 64.04 with none, and a MIRACL average of 77.1 versus 77.3. These are vendor figures.
  • Beyond query-passage ranking: the card lists prompts for judging whether two passages mean the same thing, whether two queries ask the same thing, and whether two arguments contradict each other.
  • Gemma 2 base: the model inherits the Gemma license terms, so check them before commercial use.

Use cases

  • Reranking the top results from a first-stage retriever in RAG and search systems.
  • Multilingual search where English and Chinese quality matter.
  • Cost-tuned reranking, using compression or fewer layers when latency is tight.

Pricing and availability

The weights are free to download from Hugging Face under the Gemma license; your cost is the GPU time to run a roughly 9B model. The card reports about 145,800 downloads in the last month at the time we checked on 2026-10-29. BAAI says a technical report for this lightweight reranker is still forthcoming, so treat the numbers above as card claims, not a peer-reviewed result.

Getting started

  1. Install FlagEmbedding and load LightWeightFlagLLMReranker('BAAI/bge-reranker-v2.5-gemma2-lightweight', use_fp16=True).
  2. Call compute_score with [query, passage] pairs. The card's example uses cutoff_layers=[28], compress_ratio=2 and compress_layer=[24, 40], with max_length 1024.
  3. Compare a lighter setting against the full model on your own queries before you ship.

FAQ

What is a reranker?

It scores each query and passage pair together, which is usually more precise than comparing embeddings, but costs more per pair. Use it on the short list a retriever returns.

What is the base model?

google/gemma-2-9b, according to the model card, with about 9B parameters.

What is its context length?

The card does not state one. Its example code uses a max_length of 1024 tokens.

What license does it use?

The Gemma license, per the model card.

Alternatives

Conclusion

If you need a self-hosted multilingual reranker with tunable cost, bge-reranker-v2.5-gemma2-lightweight is worth testing against your own data. Start from the model card and browse similar tools in the models category.

Comments

No comments yet. Be the first to comment!