Text Ranking
Transformers
Safetensors
sentence-transformers
Arabic
bert
text-classification
reranking
text-embeddings-inference
Instructions to use NAMAA-Space/Namaa-Reranker-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NAMAA-Space/Namaa-Reranker-v1 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("NAMAA-Space/Namaa-Reranker-v1") model = AutoModelForSequenceClassification.from_pretrained("NAMAA-Space/Namaa-Reranker-v1", device_map="auto") - sentence-transformers
How to use NAMAA-Space/Namaa-Reranker-v1 with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("NAMAA-Space/Namaa-Reranker-v1") 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
-
Update model metadata to set pipeline tag to the new `text-ranking`
Verified signatureHello! ## Pull Request overview * Update metadata to set pipeline tag to the new `text-ranking` ## Changes This is an automated pull request to update the metadata of the model card. We recently introduced the [`text-ranking`](https://huggingface.co/models?pipeline_tag=text-ranking) pipeline tag for models that are used for ranking tasks, and we have a suspicion that this model is one of them. Feel free to respond if you have questions or concerns. - Tom Aarsen8423ff6
-
Update README.md
Verified signaturee316d3e -
Upload 2 files
Verified signaturee5565e2 -
Update README.md
Verified signatureae41c8d -
Update README.md
Verified signature17e8334 -
Upload 2 files
Verified signature7fc2237 -
Update README.md
Verified signature33b0354 -
Update README.md
Verified signature39fa12e
-
update readme.md
Verified signature74e01dc
-
upload files
Verified signaturea7b6802 -
initial commit
Verified signature46edf1d