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
      • 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:

    # 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")
  • Notebooks
  • Google Colab
  • Kaggle
polish-reranker-roberta-v3
1.79 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 9 commits
Sławomir Dadas
Transformers V5 fix
e6471da 4 months ago
  • .gitattributes
    1.52 kB
    initial commit 11 months ago
  • README.md
    8.57 kB
    Transformers V5 fix 4 months ago
  • added_tokens.json
    1.84 kB
    Upload 9 files 11 months ago
  • config.json
    732 Bytes
    Transformers V5 fix 4 months ago
  • model.safetensors
    1.77 GB
    xet
    Upload 9 files 11 months ago
  • special_tokens_map.json
    964 Bytes
    Upload 9 files 11 months ago
  • tokenizer.json
    8.6 MB
    Upload 9 files 11 months ago
  • tokenizer_config.json
    12.7 kB
    Transformers V5 fix 4 months ago
  • unigram.json
    7.56 MB
    Upload 9 files 11 months ago