How to use from the
Use from the
sentence-transformers library
from sentence_transformers import SentenceTransformer

model = SentenceTransformer("turingevo/bge-reranker-base-openvino")

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]

This model was converted to OpenVINO from BAAI/bge-reranker-base using optimum-intel via the export space.

First make sure you have optimum-intel installed:

pip install optimum[openvino]

To load your model you can do as follows:

from optimum.intel import OVModelForSequenceClassification

model_id = "turingevo/bge-reranker-base-openvino"
model = OVModelForSequenceClassification.from_pretrained(model_id)
Downloads last month
9
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for turingevo/bge-reranker-base-openvino

Finetuned
(24)
this model

Collection including turingevo/bge-reranker-base-openvino

Evaluation results