Text Ranking
sentence-transformers
Safetensors
English
qwen3
finance
legal
code
stem
medical
custom_code
Instructions to use zeroentropy/zerank-1-small-reranker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use zeroentropy/zerank-1-small-reranker with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("zeroentropy/zerank-1-small-reranker", 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) - Notebooks
- Google Colab
- Kaggle
Missing weights in architecture
#2
by m-ric - opened
When initialising the model using the instructions provided in model card, I get:
Some weights of Qwen3ForSequenceClassification were not initialized from the model checkpoint at zeroentropy/zerank-1-small and are newly initialized: ['score.weight']
You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
This tells that some weights from the original Qwen model were not used in your model : maybe it's not a bug and they're not needed, but in that case, it's generally still advised to fill weights with dummy values, if not too large, or to change the original architecture if it's not suited.
Internal note: make variant https://huggingface.co/zeroentropy/ze-rerank-small-v0.3.0-seq opently available?
I am seeing this as well. Any update?
Internal note: make variant https://huggingface.co/zeroentropy/ze-rerank-small-v0.3.0-seq opently available?
Is there any update regarding the missing weights?