Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

zeroentropy
/
zerank-2

Text Ranking
sentence-transformers
Safetensors
English
qwen3
finance
legal
code
stem
medical
Model card Files Files and versions
xet
Community
9

Instructions to use zeroentropy/zerank-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use zeroentropy/zerank-2 with sentence-transformers:

    from sentence_transformers import CrossEncoder
    
    model = CrossEncoder("zeroentropy/zerank-2")
    
    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
zerank-2
8.06 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 4 commits
dilawarm's picture
dilawarm
Add model_max_length (32768) to YAML and Model Details section
4011747 verified about 2 months ago
  • .gitattributes
    1.57 kB
    releasing zerank-2 6 months ago
  • README.md
    3.06 kB
    Add model_max_length (32768) to YAML and Model Details section about 2 months ago
  • added_tokens.json
    707 Bytes
    releasing zerank-2 6 months ago
  • chat_template.jinja
    4.17 kB
    releasing zerank-2 6 months ago
  • config.json
    1.54 kB
    releasing zerank-2 6 months ago
  • generation_config.json
    214 Bytes
    releasing zerank-2 6 months ago
  • merges.txt
    1.67 MB
    releasing zerank-2 6 months ago
  • model-00001-of-00002.safetensors
    4.97 GB
    xet
    releasing zerank-2 6 months ago
  • model-00002-of-00002.safetensors
    3.08 GB
    xet
    releasing zerank-2 6 months ago
  • model.safetensors.index.json
    32.9 kB
    releasing zerank-2 6 months ago
  • modeling_zeranker.py
    6.44 kB
    releasing zerank-2 6 months ago
  • special_tokens_map.json
    613 Bytes
    releasing zerank-2 6 months ago
  • tokenizer.json
    11.4 MB
    xet
    releasing zerank-2 6 months ago
  • tokenizer_config.json
    5.43 kB
    releasing zerank-2 6 months ago
  • vocab.json
    2.78 MB
    releasing zerank-2 6 months ago