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

Ashishkr
/
paraphrase_diversity_ranker

Text Ranking
sentence-transformers
PyTorch
JAX
roberta
salesken
Model card Files Files and versions
xet
Community
3

Instructions to use Ashishkr/paraphrase_diversity_ranker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use Ashishkr/paraphrase_diversity_ranker with sentence-transformers:

    from sentence_transformers import CrossEncoder
    
    model = CrossEncoder("Ashishkr/paraphrase_diversity_ranker")
    
    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
paraphrase_diversity_ranker
1 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 13 commits
Ashishkr's picture
Ashishkr
tomaarsen's picture
tomaarsen HF Staff
Update model metadata to set pipeline tag to the new `text-ranking` and library name to `sentence-transformers` (#2)
4102ed5 verified about 1 year ago
  • .gitattributes
    736 Bytes
    allow flax about 5 years ago
  • README.md
    4.96 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
    662 Bytes
    uploading models over 5 years ago
  • flax_model.msgpack
    499 MB
    xet
    upload flax model about 5 years ago
  • merges.txt
    456 kB
    uploading models over 5 years ago
  • model_args.json
    2.56 kB
    uploading models over 5 years ago
  • pytorch_model.bin
    501 MB
    xet
    uploading models over 5 years ago
  • special_tokens_map.json
    239 Bytes
    uploading models over 5 years ago
  • tokenizer_config.json
    312 Bytes
    uploading models over 5 years ago
  • training_args.bin

    Detected Pickle imports (1)

    • "simpletransformers.config.model_args.ClassificationArgs"

    How to fix it?

    3.12 kB
    xet
    uploading models over 5 years ago
  • vocab.json
    798 kB
    uploading models over 5 years ago