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

sdadas
/
polish-reranker-roberta-v2

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

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

  • Libraries
  • sentence-transformers

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

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

    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("sdadas/polish-reranker-roberta-v2")
    model = AutoModelForSequenceClassification.from_pretrained("sdadas/polish-reranker-roberta-v2", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
polish-reranker-roberta-v2
886 MB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 19 commits
sdadas's picture
sdadas
Update tokenizer_config.json
7bb5286 verified 18 days ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    2.73 kB
    Update README.md 9 months ago
  • added_tokens.json
    23 Bytes
    Upload 9 files about 2 years ago
  • config.json
    731 Bytes
    Update config.json 9 months ago
  • model.safetensors
    870 MB
    xet
    Upload 9 files about 2 years ago
  • special_tokens_map.json
    964 Bytes
    Upload 9 files about 2 years ago
  • tokenizer.json
    8.59 MB
    Upload 9 files about 2 years ago
  • tokenizer_config.json
    1.42 kB
    Update tokenizer_config.json 18 days ago
  • unigram.json
    7.56 MB
    Upload 9 files about 2 years ago