from sentence_transformers import CrossEncoder
# Download from the 🤗 Hub
model = CrossEncoder("cross-encoder-testing/mxbai-rerank-large-v2-v6")
# Get scores for pairs of texts
pairs = [
['How many calories in an egg', 'There are on average between 55 and 80 calories in an egg depending on its size.'],
['How many calories in an egg', 'Egg whites are very low in calories, have no fat, no cholesterol, and are loaded with protein.'],
['How many calories in an egg', 'Most of the calories in an egg come from the yellow yolk in the center.'],
]
scores = model.predict(pairs)
print(scores.shape)
# (3,)# Or rank different texts based on similarity to a single text
ranks = model.rank(
'How many calories in an egg',
[
'There are on average between 55 and 80 calories in an egg depending on its size.',
'Egg whites are very low in calories, have no fat, no cholesterol, and are loaded with protein.',
'Most of the calories in an egg come from the yellow yolk in the center.',
]
)
# [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]
Training Details
Framework Versions
Python: 3.11.6
Sentence Transformers: 5.3.0.dev0
Transformers: 4.57.3
PyTorch: 2.9.1+cu126
Accelerate: 1.6.0
Datasets: 4.2.0
Tokenizers: 0.22.1
Citation
BibTeX
Runs of cross-encoder-testing mxbai-rerank-large-v2-STv6 on huggingface.co
8
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
5
30-day runs
More Information About mxbai-rerank-large-v2-STv6 huggingface.co Model
mxbai-rerank-large-v2-STv6 huggingface.co
mxbai-rerank-large-v2-STv6 huggingface.co is an AI model on huggingface.co that provides mxbai-rerank-large-v2-STv6's model effect (), which can be used instantly with this cross-encoder-testing mxbai-rerank-large-v2-STv6 model. huggingface.co supports a free trial of the mxbai-rerank-large-v2-STv6 model, and also provides paid use of the mxbai-rerank-large-v2-STv6. Support call mxbai-rerank-large-v2-STv6 model through api, including Node.js, Python, http.
mxbai-rerank-large-v2-STv6 huggingface.co is an online trial and call api platform, which integrates mxbai-rerank-large-v2-STv6's modeling effects, including api services, and provides a free online trial of mxbai-rerank-large-v2-STv6, you can try mxbai-rerank-large-v2-STv6 online for free by clicking the link below.
cross-encoder-testing mxbai-rerank-large-v2-STv6 online free url in huggingface.co:
mxbai-rerank-large-v2-STv6 is an open source model from GitHub that offers a free installation service, and any user can find mxbai-rerank-large-v2-STv6 on GitHub to install. At the same time, huggingface.co provides the effect of mxbai-rerank-large-v2-STv6 install, users can directly use mxbai-rerank-large-v2-STv6 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
mxbai-rerank-large-v2-STv6 install url in huggingface.co: