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

inthedarkness
/
klue-roberta-small-cross-encoder

Text Ranking
sentence-transformers
Safetensors
Transformers
roberta
text-classification
feature-extraction
sentence-similarity
text-embeddings-inference
Model card Files Files and versions
xet
Community
1

Instructions to use inthedarkness/klue-roberta-small-cross-encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use inthedarkness/klue-roberta-small-cross-encoder with sentence-transformers:

    from sentence_transformers import CrossEncoder
    
    model = CrossEncoder("inthedarkness/klue-roberta-small-cross-encoder")
    
    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 inthedarkness/klue-roberta-small-cross-encoder with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("inthedarkness/klue-roberta-small-cross-encoder")
    model = AutoModelForSequenceClassification.from_pretrained("inthedarkness/klue-roberta-small-cross-encoder")
  • Notebooks
  • Google Colab
  • Kaggle
klue-roberta-small-cross-encoder
Ctrl+K
Ctrl+K
  • 3 contributors
History: 8 commits
tomaarsen's picture
tomaarsen HF Staff
Update model metadata to set pipeline tag to the new `text-ranking`
e8b0fa7 verified about 1 year ago
  • 1_Pooling
    Upload folder using huggingface_hub about 1 year ago
  • eval
    Upload folder using huggingface_hub about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    4.04 kB
    Update model metadata to set pipeline tag to the new `text-ranking` about 1 year ago
  • config.json
    877 Bytes
    ํ…Œ์ŠคํŠธ about 1 year ago
  • config_sentence_transformers.json
    179 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • model.safetensors
    272 MB
    xet
    ํ…Œ์ŠคํŠธ about 1 year ago
  • modules.json
    242 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • sentence_bert_config.json
    56 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • special_tokens_map.json
    1.02 kB
    Upload folder using huggingface_hub about 1 year ago
  • tokenizer.json
    752 kB
    Upload folder using huggingface_hub about 1 year ago
  • tokenizer_config.json
    1.34 kB
    Upload folder using huggingface_hub about 1 year ago
  • vocab.txt
    248 kB
    Upload folder using huggingface_hub about 1 year ago