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

  • Log In
  • Sign Up

teslov
/
reranker

Text Classification
Transformers
PyTorch
Transformers.js
multilingual
reranker
cross-encoder
custom_code
Model card Files Files and versions
xet
Community
1

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

  • Libraries
  • Transformers

    How to use teslov/reranker with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="teslov/reranker", trust_remote_code=True)
    # Load model directly
    from transformers import AutoModelForSequenceClassification
    model = AutoModelForSequenceClassification.from_pretrained("teslov/reranker", trust_remote_code=True, dtype="auto")
  • Transformers.js

    How to use teslov/reranker with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('text-classification', 'teslov/reranker');
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

Update model metadata to set pipeline tag to the new `text-ranking` and tags to `sentence-transformers`

#1 opened about 1 year ago by
tomaarsen
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs