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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

tomaarsen
/
Qwen3-Reranker-8B-seq-cls

Text Ranking
sentence-transformers
Safetensors
Transformers
qwen3
text-classification
Model card Files Files and versions
xet
Community

Instructions to use tomaarsen/Qwen3-Reranker-8B-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-8B-seq-cls with sentence-transformers:

    from sentence_transformers import CrossEncoder
    
    model = CrossEncoder("tomaarsen/Qwen3-Reranker-8B-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-8B-seq-cls with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("tomaarsen/Qwen3-Reranker-8B-seq-cls")
    model = AutoModelForSequenceClassification.from_pretrained("tomaarsen/Qwen3-Reranker-8B-seq-cls")
  • Notebooks
  • Google Colab
  • Kaggle
Qwen3-Reranker-8B-seq-cls
15.2 GB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 13 commits
Tom Aarsen
Convert the model to a SequenceClassification variant
1493faf 12 months ago
  • .gitattributes
    1.57 kB
    Upload folder using huggingface_hub 12 months ago
  • README.md
    14.9 kB
    Convert the model to a SequenceClassification variant 12 months ago
  • config.json
    847 Bytes
    Convert the model to a SequenceClassification variant 12 months ago
  • generation_config.json
    214 Bytes
    Upload folder using huggingface_hub 12 months ago
  • merges.txt
    1.67 MB
    Upload folder using huggingface_hub 12 months ago
  • model-00001-of-00004.safetensors
    4.9 GB
    xet
    Convert the model to a SequenceClassification variant 12 months ago
  • model-00002-of-00004.safetensors
    4.92 GB
    xet
    Convert the model to a SequenceClassification variant 12 months ago
  • model-00003-of-00004.safetensors
    4.98 GB
    xet
    Convert the model to a SequenceClassification variant 12 months ago
  • model-00004-of-00004.safetensors
    336 MB
    xet
    Convert the model to a SequenceClassification variant 12 months ago
  • model.safetensors.index.json
    32.9 kB
    Convert the model to a SequenceClassification variant 12 months ago
  • tokenizer.json
    11.4 MB
    xet
    Upload folder using huggingface_hub 12 months ago
  • tokenizer_config.json
    9.71 kB
    Upload folder using huggingface_hub 12 months ago
  • vocab.json
    2.78 MB
    Upload folder using huggingface_hub 12 months ago