Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

cross-encoder
/
nli-deberta-base

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

Instructions to use cross-encoder/nli-deberta-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-base with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("cross-encoder/nli-deberta-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-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-base")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("cross-encoder/nli-deberta-base")
    model = AutoModelForSequenceClassification.from_pretrained("cross-encoder/nli-deberta-base")
  • Notebooks
  • Google Colab
  • Kaggle
nli-deberta-base / onnx
3.08 GB
Ctrl+K
Ctrl+K
  • 5 contributors
History: 9 commits
tomaarsen's picture
tomaarsen HF Staff
Add exported onnx model 'model_qint8_avx512_vnni.onnx'
f4f417e verified about 1 year ago
  • model.onnx
    557 MB
    xet
    Add new CrossEncoder model about 1 year ago
  • model_O1.onnx
    557 MB
    xet
    Add exported onnx model 'model_O1.onnx' about 1 year ago
  • model_O2.onnx
    557 MB
    xet
    Add exported onnx model 'model_O2.onnx' about 1 year ago
  • model_O3.onnx
    557 MB
    xet
    Add exported onnx model 'model_O3.onnx' about 1 year ago
  • model_O4.onnx
    279 MB
    xet
    Add exported onnx model 'model_O4.onnx' about 1 year ago
  • model_qint8_arm64.onnx
    143 MB
    xet
    Add exported onnx model 'model_qint8_arm64.onnx' about 1 year ago
  • model_qint8_avx512.onnx
    143 MB
    xet
    Add exported onnx model 'model_qint8_avx512.onnx' about 1 year ago
  • model_qint8_avx512_vnni.onnx
    143 MB
    xet
    Add exported onnx model 'model_qint8_avx512_vnni.onnx' about 1 year ago
  • model_quint8_avx2.onnx
    143 MB
    xet
    Add exported onnx model 'model_quint8_avx2.onnx' about 1 year ago