Zero-Shot Classification
sentence-transformers
PyTorch
ONNX
Safetensors
Transformers
English
deberta
text-classification
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
- Xet hash:
- 6f1e3b8325fa22f5f851463880b24ee4149c159379f2005122649f1fc9f9cc2a
- Size of remote file:
- 557 MB
- SHA256:
- 9eeedc383e1233cdff985aab798fd099c8444a2208620a95101395938cd5c307
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.