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

safora
/
reranker-xlm-roberta-large

Sentence Similarity
sentence-transformers
Safetensors
Persian
xlm-roberta
cross-encoder
reranker
persian
farsi
scientific-qa
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use safora/reranker-xlm-roberta-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use safora/reranker-xlm-roberta-large with sentence-transformers:

    from sentence_transformers import CrossEncoder
    
    model = CrossEncoder("safora/reranker-xlm-roberta-large")
    
    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)
  • Notebooks
  • Google Colab
  • Kaggle
reranker-xlm-roberta-large
2.26 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
safora's picture
safora
Update README.md
98ef47b verified 11 months ago
  • .ipynb_checkpoints
    Initial commit: Upload fine-tuned XLM-R Large reranker for PersianSciQA 11 months ago
  • eval
    Initial commit: Upload fine-tuned XLM-R Large reranker for PersianSciQA 11 months ago
  • .gitattributes
    1.57 kB
    Initial commit: Upload fine-tuned XLM-R Large reranker for PersianSciQA 11 months ago
  • README.md
    5.32 kB
    Update README.md 11 months ago
  • config.json
    878 Bytes
    Initial commit: Upload fine-tuned XLM-R Large reranker for PersianSciQA 11 months ago
  • model.safetensors
    2.24 GB
    xet
    Initial commit: Upload fine-tuned XLM-R Large reranker for PersianSciQA 11 months ago
  • sentencepiece.bpe.model
    5.07 MB
    xet
    Initial commit: Upload fine-tuned XLM-R Large reranker for PersianSciQA 11 months ago
  • special_tokens_map.json
    280 Bytes
    Initial commit: Upload fine-tuned XLM-R Large reranker for PersianSciQA 11 months ago
  • tokenizer.json
    17.1 MB
    xet
    Initial commit: Upload fine-tuned XLM-R Large reranker for PersianSciQA 11 months ago
  • tokenizer_config.json
    1.18 kB
    Initial commit: Upload fine-tuned XLM-R Large reranker for PersianSciQA 11 months ago