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-v1-turbo-en

Text Ranking
Transformers
PyTorch
ONNX
Safetensors
Transformers.js
sentence-transformers
English
bert
feature-extraction
reranker
cross-encoder
custom_code
text-embeddings-inference
🇪🇺 Region: EU
Model card Files Files and versions
xet
Community
14

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

  • Libraries
  • Transformers

    How to use jinaai/jina-reranker-v1-turbo-en with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("jinaai/jina-reranker-v1-turbo-en", trust_remote_code=True)
    model = AutoModel.from_pretrained("jinaai/jina-reranker-v1-turbo-en", trust_remote_code=True, device_map="auto")
  • Transformers.js

    How to use jinaai/jina-reranker-v1-turbo-en with Transformers.js:

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

    How to use jinaai/jina-reranker-v1-turbo-en with sentence-transformers:

    from sentence_transformers import CrossEncoder
    
    model = CrossEncoder("jinaai/jina-reranker-v1-turbo-en", 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-v1-turbo-en
703 MB
Ctrl+K
Ctrl+K
  • 7 contributors
History: 26 commits
numb3r3's picture
numb3r3
tomaarsen's picture
tomaarsen HF Staff
Update model metadata to set pipeline tag to the new `text-ranking` and tags to `sentence-transformers` (#12)
b8c14f4 verified 11 months ago
  • onnx
    Upload more ONNX weights (#5) over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    10.7 kB
    Update model metadata to set pipeline tag to the new `text-ranking` and tags to `sentence-transformers` (#12) 11 months ago
  • config.json
    1.21 kB
    chore: add model over 2 years ago
  • configuration_bert.py
    8.24 kB
    chore: add bert code over 2 years ago
  • merges.txt
    336 kB
    chore: add model over 2 years ago
  • model.safetensors
    75.6 MB
    xet
    Adding `safetensors` variant of this model (#1) over 2 years ago
  • modeling_bert.py
    99.3 kB
    implement compute_score api over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "torch._utils._rebuild_tensor_v2",
    • "torch.BFloat16Storage",
    • "collections.OrderedDict"

    What is a pickle import?

    76.2 MB
    xet
    chore: add model over 2 years ago
  • special_tokens_map.json
    280 Bytes
    chore: add model over 2 years ago
  • tokenizer.json
    2.03 MB
    chore: add model over 2 years ago
  • tokenizer_config.json
    1.22 kB
    chore: add model over 2 years ago
  • vocab.json
    854 kB
    chore: add model over 2 years ago