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

naver
/
trecdl22-crossencoder-debertav3

Text Ranking
sentence-transformers
PyTorch
Safetensors
deberta-v2
Model card Files Files and versions
xet
Community
2

Instructions to use naver/trecdl22-crossencoder-debertav3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use naver/trecdl22-crossencoder-debertav3 with sentence-transformers:

    from sentence_transformers import CrossEncoder
    
    model = CrossEncoder("naver/trecdl22-crossencoder-debertav3")
    
    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
trecdl22-crossencoder-debertav3
1.74 GB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 4 commits
Herve's picture
Herve
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model (#1)
24f6a61 verified about 1 year ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • README.md
    96 Bytes
    Update model metadata to set pipeline tag to the new `text-ranking` and library name to `sentence-transformers` (#2) about 1 year ago
  • added_tokens.json
    18 Bytes
    add model over 3 years ago
  • config.json
    962 Bytes
    add model over 3 years ago
  • model.safetensors
    870 MB
    xet
    Adding `safetensors` variant of this model (#1) about 1 year ago
  • pytorch_model.bin
    870 MB
    xet
    add model over 3 years ago
  • special_tokens_map.json
    156 Bytes
    add model over 3 years ago
  • spm.model
    2.46 MB
    xet
    add model over 3 years ago
  • tokenizer_config.json
    369 Bytes
    add model over 3 years ago
  • training_args.bin

    Detected Pickle imports (8)

    • "transformers.training_args.OptimizerNames",
    • "torch.device",
    • "transformers.trainer_utils.IntervalStrategy",
    • "torch.float32",
    • "transformers.deepspeed.HfTrainerDeepSpeedConfig",
    • "reranker.arguments.RerankerTrainingArguments",
    • "transformers.trainer_utils.SchedulerType",
    • "transformers.trainer_utils.HubStrategy"

    How to fix it?

    4.4 kB
    xet
    add model over 3 years ago