Text Ranking
Transformers
Safetensors
sentence-transformers
Arabic
bert
text-classification
reranking
text-embeddings-inference
Instructions to use NAMAA-Space/GATE-Reranker-V1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NAMAA-Space/GATE-Reranker-V1 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("NAMAA-Space/GATE-Reranker-V1") model = AutoModelForSequenceClassification.from_pretrained("NAMAA-Space/GATE-Reranker-V1", device_map="auto") - sentence-transformers
How to use NAMAA-Space/GATE-Reranker-V1 with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("NAMAA-Space/GATE-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 Aarsen0f50923
-
Add https://huggingface.co/ to URL (#1)
Verified signature- Add https://huggingface.co/ to URL (0f0db8db3b3d352b0ab45ee9538b9d88e5a0d761) Co-authored-by: Tom Aarsen <tomaarsen@users.noreply.huggingface.co>7ac681c
-
Update README.md
Verified signature355673b -
Update README.md
Verified signature2826a9d -
Upload Dataset2_Evaluation.jpg
Verified signature3a3d0ea -
Update README.md
Verified signature4e7ce0a -
Upload Dataset1_Evaluation.jpg
Verified signature07e978b -
Upload Dataset2_Evaluation.jpg
Verified signature549065e -
Update README.md
Verified signaturedfd15f6 -
Update README.md
Verified signature05d3718 -
Upload Dataset1_Evaluation.jpg
Verified signaturee27890b -
Update README.md
Verified signature0b63ffc -
Upload Dataset1_Evaluation.jpg
Verified signaturea2e8f55 -
Update README.md
Verified signature3af1c95 -
Update README.md
Verified signaturef4b1f49 -
Update README.md
Verified signaturee1b791a -
Update README.md
Verified signaturea691bc5 -
Update README.md
Verified signatureb26500c
-
update readme.md
Verified signatureb40c329 -
update readme.md
Verified signature160ebb6
-
update readme.md
Verified signature82596c8 -
uplaod 7 files
Verified signaturec5cba78 -
initial commit
Verified signature3c42a3a