🤖 zero-shot-classification

nli-MiniLM2-L6-H768

cross-encoder/nli-MiniLM2-L6-H768

Get AI Model →
⬇
246.5K
Downloads
❤️
16
Likes
🏷️
18
Tags
📦
sentence-transformers
Library
Model Details
Full Model IDcross-encoder/nli-MiniLM2-L6-H768
Pipeline / Taskzero-shot-classification
Librarysentence-transformers
Downloads (all-time)246.5K
Likes16
Last Modified4/15/2025
Author / Orgcross-encoder
PrivateNo — public
⚡ Quick Usage (Python)

Using the 🤗 Transformers library. Install with pip install transformers

from transformers import pipeline

# Load the model
pipe = pipeline("zero-shot-classification", model="cross-encoder/nli-MiniLM2-L6-H768")

# Run inference
result = pipe("Your input here")
print(result)
🏷️ Tags
sentence-transformerspytorchonnxsafetensorsopenvinorobertatext-classificationtransformerszero-shot-classificationendataset:nyu-mll/multi_nlidataset:stanfordnlp/snlibase_model:nreimers/MiniLMv2-L6-H768-distilled-from-RoBERTa-Largebase_model:quantized:nreimers/MiniLMv2-L6-H768-distilled-from-RoBERTa-Largelicense:apache-2.0deploy:sagemakerdeploy:azureregion:us
More zero-shot-classification Models
See all →
bart-large-mnli

facebook/bart-large-mnli

⬇ 2.3M❤️ 1.6K
Get AI Model →
mDeBERTa-v3-base-xnli-multilingual-nli-2mil7

MoritzLaurer/mDeBERTa-v3-base-xnli-multilingual-nli-2mil7

⬇ 837.5K❤️ 406
Get AI Model →
distilbert-base-multilingual-cased-sentiments-student

lxyuan/distilbert-base-multilingual-cased-sentiments-student

⬇ 564.8K❤️ 316
Get AI Model →
🚀 Use This Model

Access model files, inference API, and full documentation on Hugging Face.

Open on Hugging Face →Browse Model Files ↗← Browse All Models
🤖 Task: zero-shot-classification

This model is designed for the zero-shot-classification task. Explore more models for this use case.

All zero-shot-classification Models →
📊 Popularity
⬇ Downloads246.5K
❤️ Community Likes16
🛠️ Requirements
  • →Install: pip install sentence-transformers
  • →Python 3.8+ recommended for Transformers.
  • →GPU (CUDA) speeds up inference significantly.
  • →Use model.half() for fp16 on limited VRAM.
👋 Need help with code?