Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

ByteDance
/
ListConRanker

Text Ranking
sentence-transformers
Safetensors
Transformers
bert
mteb
custom_code
Eval Results (legacy)
Model card Files Files and versions
xet
Community
3

Instructions to use ByteDance/ListConRanker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use ByteDance/ListConRanker with sentence-transformers:

    from sentence_transformers import CrossEncoder
    
    model = CrossEncoder("ByteDance/ListConRanker", 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)
  • Transformers

    How to use ByteDance/ListConRanker with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, ListConRanker
    
    tokenizer = AutoTokenizer.from_pretrained("ByteDance/ListConRanker", trust_remote_code=True)
    model = ListConRanker.from_pretrained("ByteDance/ListConRanker", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
ListConRanker
1.6 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 9 commits
ianma2024's picture
ianma2024
Update config.json
95ae6a5 verified about 1 year ago
  • modules
    upload codes and model weights over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • LICENSE
    1.07 kB
    upload codes and model weights over 1 year ago
  • README.md
    8.41 kB
    support mteb evaluation and update readme about 1 year ago
  • config.json
    1.18 kB
    Update config.json about 1 year ago
  • configuration_listconranker.py
    1.92 kB
    support mteb evaluation and update readme about 1 year ago
  • eval_listconranker.py
    2.08 kB
    reformat metadata and reorg ckp path over 1 year ago
  • eval_listconranker_iterative_inference.py
    2.09 kB
    reformat metadata and reorg ckp path over 1 year ago
  • linear_in_embedding.pt
    7.35 MB
    xet
    reformat metadata and reorg ckp path over 1 year ago
  • list_transformer.pt
    294 MB
    xet
    reformat metadata and reorg ckp path over 1 year ago
  • model.safetensors
    1.3 GB
    xet
    reformat metadata and reorg ckp path over 1 year ago
  • modeling_listconranker.py
    20.2 kB
    support mteb evaluation and update readme about 1 year ago
  • requirements.txt
    59 Bytes
    upload codes and model weights over 1 year ago
  • special_tokens_map.json
    695 Bytes
    reformat metadata and reorg ckp path over 1 year ago
  • tokenizer_config.json
    1.43 kB
    Integrate with Transformers & SentenceTransformers (#3) about 1 year ago
  • vocab.txt
    110 kB
    reformat metadata and reorg ckp path over 1 year ago