Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

sdadas
/
polish-reranker-roberta-v3

Text Ranking
sentence-transformers
Safetensors
Transformers
Polish
roberta
text-classification
information-retrieval
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use sdadas/polish-reranker-roberta-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use sdadas/polish-reranker-roberta-v3 with sentence-transformers:

    from sentence_transformers import CrossEncoder
    
    model = CrossEncoder("sdadas/polish-reranker-roberta-v3")
    
    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)
  • Transformers

    How to use sdadas/polish-reranker-roberta-v3 with Transformers:

    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("sdadas/polish-reranker-roberta-v3")
    model = AutoModelForSequenceClassification.from_pretrained("sdadas/polish-reranker-roberta-v3", device_map="auto")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
polish-reranker-roberta-v3
1.79 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 10 commits
sdadas's picture
sdadas
Update tokenizer_config.json
8943df3 verified about 1 month ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    8.57 kB
    Transformers V5 fix 9 months ago
  • added_tokens.json
    1.84 kB
    Upload 9 files over 1 year ago
  • config.json
    732 Bytes
    Transformers V5 fix 9 months ago
  • model.safetensors
    1.77 GB
    xet
    Upload 9 files over 1 year ago
  • special_tokens_map.json
    964 Bytes
    Upload 9 files over 1 year ago
  • tokenizer.json
    8.6 MB
    Upload 9 files over 1 year ago
  • tokenizer_config.json
    12.7 kB
    Update tokenizer_config.json about 1 month ago
  • unigram.json
    7.56 MB
    Upload 9 files over 1 year ago