Text Ranking
sentence-transformers
Safetensors
Transformers
multilingual
t5gemma2
text2text-generation
reranker
encoder-decoder
FBNL
matryoshka
retrieval
RAG
Instructions to use KaLM-Embedding/KaLM-Reranker-V1-Nano-R2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use KaLM-Embedding/KaLM-Reranker-V1-Nano-R2 with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("KaLM-Embedding/KaLM-Reranker-V1-Nano-R2") query = "Which planet is known as the Red Planet?" passages = [ "Venus is often called Earth's twin because of its similar size and proximity.", "Mars, known for its reddish appearance, is often referred to as the Red Planet.", "Jupiter, the largest planet in our solar system, has a prominent red spot.", "Saturn, famous for its rings, is sometimes mistaken for the Red Planet." ] scores = model.predict([(query, passage) for passage in passages]) print(scores) - Transformers
How to use KaLM-Embedding/KaLM-Reranker-V1-Nano-R2 with Transformers:
# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("KaLM-Embedding/KaLM-Reranker-V1-Nano-R2") model = AutoModelForMultimodalLM.from_pretrained("KaLM-Embedding/KaLM-Reranker-V1-Nano-R2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -165,6 +165,17 @@ Across all three model sizes and all seven compression ratios, performance on BE
|
|
| 165 |
|
| 166 |

|
| 167 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 168 |
### Acknowledgements
|
| 169 |
We sincerely thank `jina-reranker-v3` and `Qwen3-Reranker` for their valuable inspiration and contributions to the reranking community, from which we have learned a lot.
|
| 170 |
|
|
|
|
| 165 |
|
| 166 |

|
| 167 |
|
| 168 |
+
#### Potential of test-time compute scaling
|
| 169 |
+
Results show that this multi-stage strategy largely preserves reranking effectiveness while reducing the estimated online
|
| 170 |
+
computation cost by a factor of several. For example, on BEIR, KaLM-Reranker-V1-Small
|
| 171 |
+
achieves an average nDCG@10 of 61.11 under setting (c), compared with 61.17 under setting (a),
|
| 172 |
+
while reducing the estimated relative serving cost from 8.65x to 2.75x. Interestingly, settings (c)
|
| 173 |
+
and (d) outperform setting (a) on some tasks, suggesting that reranking more candidates at a low
|
| 174 |
+
compression ratio does not necessarily improve reranking quality.
|
| 175 |
+
|
| 176 |
+

|
| 177 |
+
|
| 178 |
+
|
| 179 |
### Acknowledgements
|
| 180 |
We sincerely thank `jina-reranker-v3` and `Qwen3-Reranker` for their valuable inspiration and contributions to the reranking community, from which we have learned a lot.
|
| 181 |
|