Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • 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)
  • 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: 22 commits
numb3r3's picture
numb3r3
update readme
f461b93 verified about 1 year ago
  • .gitattributes
    1.57 kB
    init commit about 1 year ago
  • README.md
    18.2 kB
    update readme about 1 year ago
  • added_tokens.json
    392 Bytes
    init commit about 1 year ago
  • chat_template.json
    1.05 kB
    init commit about 1 year ago
  • config.json
    1.16 kB
    init commit about 1 year ago
  • generation_config.json
    261 Bytes
    init commit about 1 year ago
  • merges.txt
    1.67 MB
    init commit about 1 year ago
  • model.safetensors
    4.89 GB
    xet
    init commit about 1 year ago
  • modeling.py
    8.18 kB
    fix logit bias about 1 year ago
  • preprocessor_config.json
    316 Bytes
    init commit about 1 year ago
  • special_tokens_map.json
    613 Bytes
    init commit about 1 year ago
  • tokenizer.json
    11.4 MB
    xet
    init commit about 1 year ago
  • tokenizer_config.json
    4.33 kB
    init commit about 1 year ago
  • vocab.json
    2.78 MB
    init commit about 1 year ago