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

  • Log In
  • Sign Up

fred-baseten
/
zerank-1-small-seq

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

Instructions to use fred-baseten/zerank-1-small-seq with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use fred-baseten/zerank-1-small-seq with sentence-transformers:

    from sentence_transformers import CrossEncoder
    
    model = CrossEncoder("fred-baseten/zerank-1-small-seq")
    
    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-1-small-seq
3.46 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
fred-baseten's picture
fred-baseten
Update config.json
6529282 verified 7 months ago
  • .gitattributes
    1.57 kB
    Upload folder using huggingface_hub 7 months ago
  • README.md
    2.91 kB
    Upload folder using huggingface_hub 7 months ago
  • added_tokens.json
    707 Bytes
    Upload folder using huggingface_hub 7 months ago
  • config.json
    1.45 kB
    Update config.json 7 months ago
  • generation_config.json
    214 Bytes
    Upload folder using huggingface_hub 7 months ago
  • merges.txt
    1.67 MB
    Upload folder using huggingface_hub 7 months ago
  • model.safetensors
    3.44 GB
    xet
    Upload folder using huggingface_hub 7 months ago
  • modeling_zeranker.py
    6.44 kB
    Upload folder using huggingface_hub 7 months ago
  • special_tokens_map.json
    613 Bytes
    Upload folder using huggingface_hub 7 months ago
  • tokenizer.json
    11.4 MB
    xet
    Upload folder using huggingface_hub 7 months ago
  • tokenizer_config.json
    9.79 kB
    Upload folder using huggingface_hub 7 months ago
  • vocab.json
    2.78 MB
    Upload folder using huggingface_hub 7 months ago