Text Classification
sentence-transformers
PyTorch
ONNX
Safetensors
English
Chinese
xlm-roberta
mteb
text-embeddings-inference
Eval Results (legacy)
Instructions to use BAAI/bge-reranker-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use BAAI/bge-reranker-base with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("BAAI/bge-reranker-base") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Inference
- Notebooks
- Google Colab
- Kaggle
Using the Reranker with ONNX Files: How to Output the Normalized Score
#21
by ljz1992 - opened
I just checked about how to run the model on ONNX file, but is there any way to make sure the scores outputted are normalized by sigmoid function?
I just checked about how to run the model on ONNX file, but is there any way to make sure the scores outputted are normalized by sigmoid function?
how to run the model on onnx