Text Classification
sentence-transformers
Safetensors
English
multilingual
bert
cross-encoder
reranker
ror
affiliation-matching
text-embeddings-inference
Run this model with HF Jobs
Run cometadata/ms-marco-ror-reranker on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/cometadata/ms-marco-ror-reranker. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/cometadata/ms-marco-ror-reranker on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use cometadata/ms-marco-ror-reranker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use cometadata/ms-marco-ror-reranker with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("cometadata/ms-marco-ror-reranker") 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) - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse filesFiles changed (3)
14 unmodified lines151617181920215 unmodified lines2728293031323334353625 unmodified lines6263646514 unmodified linespipeline_tag: text-classification---# MS-MARCO MiniLM Reranker for ROR Affiliation MatchingA cross-encoder reranker fine-tuned for Research Organization Registry (ROR) affiliation matching.5 unmodified lines## Training- **Base model**: cross-encoder/ms-marco-MiniLM-L-12-v2- **Training examples**: 127,011- **Training traces**: 2,004- **Negative sampling**: Hard negatives from retrieval candidates- **Epochs**: 5- **Batch size**: 16- **Learning rate**: 2e-05- **Max sequence length**: 25625 unmodified lines## Timestamp2026-01-07T02:10:33.651817+00:0014 unmodified lines151617181920215 unmodified lines2728293031323334353625 unmodified lines6263646514 unmodified linespipeline_tag: text-classification---# ms-marco-ror-rerankerA cross-encoder reranker fine-tuned for Research Organization Registry (ROR) affiliation matching.5 unmodified lines## Training- **Base model**: cross-encoder/ms-marco-MiniLM-L-12-v2- **Training examples**: 45,061- **Training traces**: 2,004- **Negative sampling**: Hard negatives from retrieval candidates- **Epochs**: 3- **Batch size**: 16- **Learning rate**: 2e-05- **Max sequence length**: 25625 unmodified lines## Timestamp2026-01-07T21:35:26.376404+00:00
123456epoch,steps,Accuracy,Accuracy_Threshold,F1,F1_Threshold,Precision,Recall,Average_Precision1.0,7145,0.9849618140303913,3.103402,0.8828939301042306,1.4461942,0.9314359637774903,0.8391608391608392,0.92461210337897912.0,14290,0.9900795212975356,1.1970022,0.9252669039145908,1.1970022,0.9420289855072463,0.9090909090909091,0.9687908570634433.0,21435,0.9933076135737343,0.2688725,0.9496743635287153,0.2688725,0.9651022864019254,0.9347319347319347,0.9819941412427294.0,28580,0.9943311550271632,0.829528,0.9576968272620446,-1.8397098,0.9656398104265402,0.9498834498834499,0.98493155964498885.0,35725,0.9947248248169436,3.630054,0.9598562013181545,3.630054,0.9876695437731196,0.9335664335664335,0.98739707214842851234epoch,steps,Accuracy,Accuracy_Threshold,F1,F1_Threshold,Precision,Recall,Average_Precision1.0,2535,0.9600532623169108,1.5958042,0.9225473321858864,0.9742241,0.9387040280210157,0.9069373942470389,0.96503560331320762.0,5070,0.9742565468264536,-0.18050016,0.9508057675996607,-0.18050016,0.9532312925170068,0.9483925549915397,0.98387729735297453.0,7605,0.9806924101198402,-0.44254795,0.9633992427429533,-1.1051955,0.9581589958158996,0.9686971235194586,0.9893681914571891
123version https://git-lfs.github.com/spec/v1oid sha256:11073e87658df34d5ec27729a30ff9ed62e88154bd43285c34486344f0b185fbsize 133464836123version https://git-lfs.github.com/spec/v1oid sha256:5ca34208e0046e77cc5f072acd6ff12c4bd800c018a2a472962dfcdc1392d2e7size 133464836
README.md+4-4
eval/CrossEncoderClassificationEvaluator_val_results.csv+3-5
model.safetensors+1-1