Instructions to use intfloat/simlm-msmarco-reranker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use intfloat/simlm-msmarco-reranker with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("intfloat/simlm-msmarco-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
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.861bcc6 -
Update model metadata to set pipeline tag to the new `text-ranking` and library name to `sentence-transformers` (#3)
Verified signature- Update model metadata to set pipeline tag to the new `text-ranking` and library name to `sentence-transformers` (3d8c5fd8682d497bb74a2f8aadf85c5180d739c3) Co-authored-by: Tom Aarsen <tomaarsen@users.noreply.huggingface.co>648ab8d
-
Update README.md
35b4786
-
Create README.md
b8d1338
-
add models
315af1b -
initial commit
8a5a6b9