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-base-mse

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

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

  • Libraries
  • sentence-transformers

    How to use sdadas/polish-reranker-base-mse with sentence-transformers:

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

    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("sdadas/polish-reranker-base-mse")
    model = AutoModelForSequenceClassification.from_pretrained("sdadas/polish-reranker-base-mse")
  • Notebooks
  • Google Colab
  • Kaggle
polish-reranker-base-mse
504 MB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 7 commits
sdadas's picture
sdadas
Update tokenizer_config.json
53d4dec verified 4 months ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    3.26 kB
    Update model metadata to set pipeline tag to the new `text-ranking` and library name to `sentence-transformers` (#2) about 1 year ago
  • config.json
    796 Bytes
    Upload 6 files over 2 years ago
  • model.safetensors
    249 MB
    xet
    Adding `safetensors` variant of this model (#1) over 1 year ago
  • pytorch_model.bin
    249 MB
    xet
    Upload 6 files over 2 years ago
  • special_tokens_map.json
    280 Bytes
    Upload 6 files over 2 years ago
  • tokenizer.json
    3.36 MB
    Upload 6 files over 2 years ago
  • tokenizer_config.json
    354 Bytes
    Update tokenizer_config.json 4 months ago
  • unigram.json
    2.95 MB
    Upload 6 files over 2 years ago