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-m0

Text Classification
Transformers
Safetensors
sentence-transformers
multilingual
qwen2_vl
feature-extraction
vidore
reranker
custom_code
🇪🇺 Region: EU
Model card Files Files and versions
xet
Community
24

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

  • Libraries
  • Transformers

    How to use jinaai/jina-reranker-m0 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="jinaai/jina-reranker-m0", trust_remote_code=True)
    # Load model directly
    from transformers import AutoProcessor, AutoModel
    
    processor = AutoProcessor.from_pretrained("jinaai/jina-reranker-m0", trust_remote_code=True)
    model = AutoModel.from_pretrained("jinaai/jina-reranker-m0", trust_remote_code=True, device_map="auto")
  • sentence-transformers

    How to use jinaai/jina-reranker-m0 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("jinaai/jina-reranker-m0", trust_remote_code=True)
    
    sentences = [
        "The weather is lovely today.",
        "It's so sunny outside!",
        "He drove to the stadium."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [3, 3]
  • Notebooks
  • Google Colab
  • Kaggle
jina-reranker-m0
Ctrl+K
Ctrl+K
  • 3 contributors
History: 27 commits
Tom Aarsen
Remove trust_remote_code
c586261 5 months ago
  • .gitattributes
    1.57 kB
    init commit over 1 year ago
  • README.md
    24.3 kB
    Integrate with Sentence Transformers v5.4.0 5 months ago
  • added_tokens.json
    392 Bytes
    init commit over 1 year ago
  • chat_template.jinja
    808 Bytes
    Integrate with Sentence Transformers v5.4.0 5 months ago
  • config.json
    1.16 kB
    init commit over 1 year ago
  • config_sentence_transformers.json
    229 Bytes
    Integrate with Sentence Transformers v5.4.0 5 months ago
  • custom_transformer.py
    1.59 kB
    Integrate with Sentence Transformers v5.4.0 5 months ago
  • generation_config.json
    261 Bytes
    init commit over 1 year ago
  • merges.txt
    1.67 MB
    init commit over 1 year ago
  • model.safetensors
    4.89 GB
    xet
    init commit over 1 year ago
  • modeling.py
    10.1 kB
    Integrate with Sentence Transformers v5.4.0 5 months ago
  • modules.json
    115 Bytes
    Integrate with Sentence Transformers v5.4.0 5 months ago
  • preprocessor_config.json
    314 Bytes
    Integrate with Sentence Transformers v5.4.0 5 months ago
  • sentence_bert_config.json
    524 Bytes
    Remove trust_remote_code 5 months ago
  • special_tokens_map.json
    613 Bytes
    init commit over 1 year ago
  • tokenizer.json
    11.4 MB
    xet
    init commit over 1 year ago
  • tokenizer_config.json
    3.32 kB
    Integrate with Sentence Transformers v5.4.0 5 months ago
  • vocab.json
    2.78 MB
    init commit over 1 year ago