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

mixedbread-ai
/
mxbai-rerank-large-v2

Text Ranking
Transformers
Safetensors
sentence-transformers
qwen2
text-generation
text-embeddings-inference
Model card Files Files and versions
xet
Community
11

Instructions to use mixedbread-ai/mxbai-rerank-large-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use mixedbread-ai/mxbai-rerank-large-v2 with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("mixedbread-ai/mxbai-rerank-large-v2")
    model = AutoModelForCausalLM.from_pretrained("mixedbread-ai/mxbai-rerank-large-v2")
  • sentence-transformers

    How to use mixedbread-ai/mxbai-rerank-large-v2 with sentence-transformers:

    from sentence_transformers import CrossEncoder
    
    model = CrossEncoder("mixedbread-ai/mxbai-rerank-large-v2")
    
    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
mxbai-rerank-large-v2
3.1 GB
Ctrl+K
Ctrl+K
  • 7 contributors
History: 20 commits
SeanLee97's picture
SeanLee97
Integrate with Sentence Transformers v5.4 (#12)
ca7e1ee about 2 months ago
  • 1_LogitScore
    Integrate with Sentence Transformers v5.4 (#12) about 2 months ago
  • .gitattributes
    1.57 kB
    initial commit about 1 year ago
  • LICENSE
    10.8 kB
    initial commit about 1 year ago
  • README.md
    46.8 kB
    Integrate with Sentence Transformers v5.4 (#12) about 2 months ago
  • added_tokens.json
    605 Bytes
    initial commit about 1 year ago
  • chat_template.jinja
    576 Bytes
    Integrate with Sentence Transformers v5.4 (#12) about 2 months ago
  • config.json
    768 Bytes
    Update config.json (#11) 9 months ago
  • config_sentence_transformers.json
    204 Bytes
    Integrate with Sentence Transformers v5.4 (#12) about 2 months ago
  • generation_config.json
    242 Bytes
    initial commit about 1 year ago
  • merges.txt
    1.67 MB
    initial commit about 1 year ago
  • model.safetensors
    3.09 GB
    xet
    initial commit about 1 year ago
  • modules.json
    281 Bytes
    Integrate with Sentence Transformers v5.4 (#12) about 2 months ago
  • sentence_bert_config.json
    309 Bytes
    Integrate with Sentence Transformers v5.4 (#12) about 2 months ago
  • special_tokens_map.json
    613 Bytes
    initial commit about 1 year ago
  • tokenizer.json
    11.4 MB
    xet
    initial commit about 1 year ago
  • tokenizer_config.json
    4.69 kB
    Integrate with Sentence Transformers v5.4 (#12) about 2 months ago
  • vocab.json
    2.78 MB
    initial commit about 1 year ago