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

cross-encoder
/
nli-deberta-v3-base

Zero-Shot Classification
sentence-transformers
PyTorch
ONNX
Safetensors
Transformers
English
deberta-v2
text-classification
Model card Files Files and versions
xet
Community
4

Instructions to use cross-encoder/nli-deberta-v3-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use cross-encoder/nli-deberta-v3-base with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("cross-encoder/nli-deberta-v3-base")
    
    sentences = [
        "The weather is lovely today.",
        "It's so sunny outside!",
        "He drove to the stadium."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [3, 3]
  • Transformers

    How to use cross-encoder/nli-deberta-v3-base with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-classification", model="cross-encoder/nli-deberta-v3-base")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("cross-encoder/nli-deberta-v3-base")
    model = AutoModelForSequenceClassification.from_pretrained("cross-encoder/nli-deberta-v3-base")
  • Notebooks
  • Google Colab
  • Kaggle
nli-deberta-v3-base
1.48 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 4 commits
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model
e020082 about 3 years ago
  • .gitattributes
    1.23 kB
    Adding `safetensors` variant of this model about 3 years ago
  • CESoftmaxAccuracyEvaluator_AllNLI-dev_results.csv
    682 Bytes
    upload over 4 years ago
  • README.md
    2.78 kB
    upload over 4 years ago
  • added_tokens.json
    18 Bytes
    upload over 4 years ago
  • config.json
    1.05 kB
    update config over 4 years ago
  • model.safetensors
    738 MB
    xet
    Adding `safetensors` variant of this model about 3 years ago
  • pytorch_model.bin
    738 MB
    xet
    upload over 4 years ago
  • special_tokens_map.json
    156 Bytes
    upload over 4 years ago
  • spm.model
    2.46 MB
    xet
    upload over 4 years ago
  • tokenizer_config.json
    417 Bytes
    upload over 4 years ago