Text Ranking
sentence-transformers
Safetensors
Transformers
Russian
bert
text-classification
rubert
cross-encoder
reranker
msmarco
text-embeddings-inference
Instructions to use DiTy/cross-encoder-russian-msmarco with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use DiTy/cross-encoder-russian-msmarco with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("DiTy/cross-encoder-russian-msmarco") 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 DiTy/cross-encoder-russian-msmarco with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("DiTy/cross-encoder-russian-msmarco") model = AutoModelForSequenceClassification.from_pretrained("DiTy/cross-encoder-russian-msmarco", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Update model metadata to set pipeline tag to the new `text-ranking` (#1)
Verified signature- Update model metadata to set pipeline tag to the new `text-ranking` (f52ba37f48f19cd8de133e924a9b71dae2b34691) Co-authored-by: Tom Aarsen <tomaarsen@users.noreply.huggingface.co>9029bab
-
Update README.md
Verified signature73edc86
-
Update README.md
Verified signaturec2628ab
-
Update README.md
Verified signature4127514 -
Update README.md
Verified signatureb3c2c48
-
Update README.md
Verified signature6698ac0
-
Upload tokenizer
Verified signatureefe8268
-
Update README.md
Verified signature7e7867c -
Update README.md
Verified signature0927c23 -
Update README.md
Verified signature761ee1c -
Update README.md
Verified signature24096c1
-
Init cross-encoder
Verified signature873e89c -
initial commit
Verified signatureebf839f