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-tiny-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
13

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

  • Libraries
  • Transformers

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

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

    How to use jinaai/jina-reranker-v1-tiny-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-tiny-en');
  • sentence-transformers

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

    from sentence_transformers import CrossEncoder
    
    model = CrossEncoder("jinaai/jina-reranker-v1-tiny-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
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

quantising to opset 17 with static quant deterioirating quality a lot

#13 opened 3 months ago by
Boodhayana

Upgrade Transformers.js code snippet to use v3 imports

#12 opened about 1 year ago by
Xenova

Update `config.json` to make it compatible with TEI

#11 opened over 1 year ago by
alvarobartt

Add support for infinity reranking model.

1
#9 opened almost 2 years ago by
wirthual

Update config.json

#8 opened about 2 years ago by
JKONGTCHEU
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs