Text Ranking
sentence-transformers
Safetensors
Transformers
bert
mteb
custom_code
Eval Results (legacy)
Instructions to use ByteDance/ListConRanker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use ByteDance/ListConRanker with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("ByteDance/ListConRanker", trust_remote_code=True) 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 ByteDance/ListConRanker with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, ListConRanker tokenizer = AutoTokenizer.from_pretrained("ByteDance/ListConRanker", trust_remote_code=True) model = ListConRanker.from_pretrained("ByteDance/ListConRanker", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update config.json
Verified signature95ae6a5
-
rm ood files
Verified signatureb3e02f6 -
support mteb evaluation and update readme
Verified signatureb05bf4f -
Integrate with Transformers & SentenceTransformers (#3)
Verified signature- start implementing (5c7e47869b7f8731d4199450bfa40bbac01cd5e5) - fix config (ea396ea727a2d4f1a669dfc1529cd3a9956dfffd) - fix shapes (8c3030b059b7128c7514780d6e74f5da6584c312) - fix dimenstions again (f7a361f8bb06bdc7d9599868e31b6a73266b3504) - finish integration (c3e4b3b4cfe19308992d37f84bebceb0657f7b93) - fix prob (d61356a9a00e4ad6d785f5cdb98e00587adebe3b) - update probs readme (dc62085c89f486bbd0d47b1711e29094c7d9a017) - update after review (1d0f0eae01e96e2c57171a3dd9c91bb0610d2458)d0deb70
-
reformat metadata and reorg ckp path
2852d45 -
reformat metadata and reorg ckp path
46d30f8
-
upload codes and model weights
5697681 -
upload codes and model weights
dd0b4f3 -
initial commit
Verified signature2d4729d