Instructions to use tomaarsen/Qwen3-Reranker-0.6B-seq-cls with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use tomaarsen/Qwen3-Reranker-0.6B-seq-cls with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("tomaarsen/Qwen3-Reranker-0.6B-seq-cls") 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 tomaarsen/Qwen3-Reranker-0.6B-seq-cls with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("tomaarsen/Qwen3-Reranker-0.6B-seq-cls") model = AutoModelForSequenceClassification.from_pretrained("tomaarsen/Qwen3-Reranker-0.6B-seq-cls", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Remove the chat_template from the tokenizer (#3)
Verified signature- Remove the chat_template from the tokenizer (67eafe7152189a1d22597627719a64f43f70144d)6a5829f
-
Rename the model to add -seq-cls for clarity
Tom Aarsence72927 -
Convert the model to a SequenceClassification variant
Tom Aarsen395ad23
-
Update README.md
Verified signaturead4c588 -
Update README.md
Verified signatureea4c160 -
Update README.md
Verified signature5340c02 -
Delete special_tokens_map.json
Verified signatureadcdb2a -
Delete added_tokens.json
Verified signature3861be7 -
Update README.md
Verified signature9748b7a -
Update README.md
Verified signaturefd9fb1d
-
Update README.md
Verified signature204631f -
Upload folder using huggingface_hub
Verified signaturec97ad57 -
initial commit
Verified signature0b048c5