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

jinaai
/
jina-reranker-v2-base-multilingual

Text Ranking
Transformers
PyTorch
ONNX
Safetensors
Transformers.js
sentence-transformers
multilingual
text-classification
reranker
cross-encoder
custom_code
🇪🇺 Region: EU
Model card Files Files and versions
xet
Community
42

Instructions to use jinaai/jina-reranker-v2-base-multilingual with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use jinaai/jina-reranker-v2-base-multilingual with Transformers:

    # Load model directly
    from transformers import AutoModelForSequenceClassification
    model = AutoModelForSequenceClassification.from_pretrained("jinaai/jina-reranker-v2-base-multilingual", trust_remote_code=True, device_map="auto")
  • Transformers.js

    How to use jinaai/jina-reranker-v2-base-multilingual with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('text-ranking', 'jinaai/jina-reranker-v2-base-multilingual');
  • sentence-transformers

    How to use jinaai/jina-reranker-v2-base-multilingual with sentence-transformers:

    from sentence_transformers import CrossEncoder
    
    model = CrossEncoder("jinaai/jina-reranker-v2-base-multilingual", 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)
  • Notebooks
  • Google Colab
  • Kaggle
jina-reranker-v2-base-multilingual / onnx
4.16 GB
Ctrl+K
Ctrl+K
  • 9 contributors
History: 1 commit
numb3r3's picture
numb3r3
Upload ONNX weights (+ Transformers.js integration) (#9)
298e48c verified about 2 years ago
  • model.onnx
    1.11 GB
    xet
    Upload ONNX weights (+ Transformers.js integration) (#9) about 2 years ago
  • model_bnb4.onnx
    822 MB
    xet
    Upload ONNX weights (+ Transformers.js integration) (#9) about 2 years ago
  • model_fp16.onnx
    557 MB
    xet
    Upload ONNX weights (+ Transformers.js integration) (#9) about 2 years ago
  • model_int8.onnx
    280 MB
    xet
    Upload ONNX weights (+ Transformers.js integration) (#9) about 2 years ago
  • model_q4.onnx
    827 MB
    xet
    Upload ONNX weights (+ Transformers.js integration) (#9) about 2 years ago
  • model_quantized.onnx
    280 MB
    xet
    Upload ONNX weights (+ Transformers.js integration) (#9) about 2 years ago
  • model_uint8.onnx
    280 MB
    xet
    Upload ONNX weights (+ Transformers.js integration) (#9) about 2 years ago